Lines Matching refs:pg
837 pgroup_t *pg; in lxml_get_pgroup() local
848 pg = internal_pgroup_find_or_create(entity, (char *)name, (char *)type); in lxml_get_pgroup()
863 (void) lxml_get_pgroup_stability(pg, cursor); in lxml_get_pgroup()
866 (void) lxml_get_property(pg, cursor); in lxml_get_pgroup()
869 (void) lxml_get_propval(pg, cursor); in lxml_get_pgroup()
878 pg->sc_pgroup_delete = (xmlStrcmp(delete, (xmlChar *)true) == 0); in lxml_get_pgroup()
891 lxml_get_method_profile(pgroup_t *pg, xmlNodePtr profile) in lxml_get_method_profile() argument
897 if (internal_attach_property(pg, p) != 0) in lxml_get_method_profile()
900 return (new_str_prop_from_attr(pg, SCF_PROPERTY_PROFILE, in lxml_get_method_profile()
905 lxml_get_method_credential(pgroup_t *pg, xmlNodePtr cred) in lxml_get_method_credential() argument
911 if (internal_attach_property(pg, p) != 0) in lxml_get_method_credential()
914 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_USER, SCF_TYPE_ASTRING, in lxml_get_method_credential()
918 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_GROUP, SCF_TYPE_ASTRING, in lxml_get_method_credential()
922 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_SUPP_GROUPS, in lxml_get_method_credential()
926 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_PRIVILEGES, in lxml_get_method_credential()
930 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_LIMIT_PRIVILEGES, in lxml_get_method_credential()
961 lxml_get_method_environment(pgroup_t *pg, xmlNodePtr environment) in lxml_get_method_environment() argument
980 cursor->name, pg->sc_pgroup_name); in lxml_get_method_environment()
992 if (internal_attach_property(pg, p) != 0) { in lxml_get_method_environment()
1001 lxml_get_method_context(pgroup_t *pg, xmlNodePtr ctx) in lxml_get_method_context() argument
1005 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_WORKING_DIRECTORY, in lxml_get_method_context()
1009 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_PROJECT, in lxml_get_method_context()
1013 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_RESOURCE_POOL, in lxml_get_method_context()
1024 (void) lxml_get_method_credential(pg, cursor); in lxml_get_method_context()
1027 (void) lxml_get_method_profile(pg, cursor); in lxml_get_method_context()
1030 (void) lxml_get_method_environment(pg, cursor); in lxml_get_method_context()
1045 pgroup_t *pg; in lxml_get_entity_method_context() local
1047 pg = internal_pgroup_find_or_create(entity, SCF_PG_METHOD_CONTEXT, in lxml_get_entity_method_context()
1050 return (lxml_get_method_context(pg, ctx)); in lxml_get_entity_method_context()
1056 pgroup_t *pg; in lxml_get_exec_method() local
1066 pg = internal_pgroup_find_or_create(entity, (char *)name, in lxml_get_exec_method()
1070 if (new_str_prop_from_attr(pg, SCF_PROPERTY_TYPE, SCF_TYPE_ASTRING, in lxml_get_exec_method()
1072 new_str_prop_from_attr(pg, SCF_PROPERTY_EXEC, SCF_TYPE_ASTRING, in lxml_get_exec_method()
1094 r = internal_attach_property(pg, p); in lxml_get_exec_method()
1112 if (lxml_get_pgroup_stability(pg, cursor) != 0) in lxml_get_exec_method()
1117 (void) lxml_get_method_context(pg, cursor); in lxml_get_exec_method()
1121 (void) lxml_get_propval(pg, cursor); in lxml_get_exec_method()
1125 (void) lxml_get_property(pg, cursor); in lxml_get_exec_method()
1131 pg->sc_pgroup_name); in lxml_get_exec_method()
1137 pg->sc_pgroup_delete = (xmlStrcmp(delete, (xmlChar *)true) == 0); in lxml_get_exec_method()
1146 pgroup_t *pg; in lxml_get_dependency() local
1164 pg = internal_pgroup_find_or_create(entity, (char *)name, in lxml_get_dependency()
1168 if (new_str_prop_from_attr(pg, SCF_PROPERTY_TYPE, SCF_TYPE_ASTRING, in lxml_get_dependency()
1172 if (new_str_prop_from_attr(pg, SCF_PROPERTY_RESTART_ON, in lxml_get_dependency()
1176 if (new_str_prop_from_attr(pg, SCF_PROPERTY_GROUPING, SCF_TYPE_ASTRING, in lxml_get_dependency()
1181 if (internal_attach_property(pg, p) != 0) in lxml_get_dependency()
1194 if (lxml_get_pgroup_stability(pg, cursor) != 0) in lxml_get_dependency()
1218 (void) lxml_get_propval(pg, cursor); in lxml_get_dependency()
1222 (void) lxml_get_property(pg, cursor); in lxml_get_dependency()
1233 pg->sc_pgroup_delete = (xmlStrcmp(delete, (xmlChar *)true) == 0); in lxml_get_dependency()
1251 pgroup_t *pg; in lxml_get_dependent() local
1270 pg = internal_pgroup_new(); in lxml_get_dependent()
1271 pg->sc_pgroup_name = (char *)name; in lxml_get_dependent()
1272 pg->sc_pgroup_type = (char *)SCF_GROUP_DEPENDENCY; in lxml_get_dependent()
1273 pg->sc_pgroup_override = (xmlStrcmp(or, (xmlChar *)true) == 0); in lxml_get_dependent()
1275 if (internal_attach_dependent(entity, pg) != 0) { in lxml_get_dependent()
1277 internal_pgroup_free(pg); in lxml_get_dependent()
1286 pg->sc_pgroup_fmri = (char *)fmri; in lxml_get_dependent()
1288 if (new_str_prop_from_attr(pg, SCF_PROPERTY_RESTART_ON, in lxml_get_dependent()
1292 if (new_str_prop_from_attr(pg, SCF_PROPERTY_GROUPING, SCF_TYPE_ASTRING, in lxml_get_dependent()
1310 if (internal_attach_property(pg, p) != 0) in lxml_get_dependent()
1316 if (internal_attach_property(pg, p) != 0) in lxml_get_dependent()
1325 if (new_str_prop_from_attr(pg, in lxml_get_dependent()
1332 (void) lxml_get_propval(pg, n); in lxml_get_dependent()
1336 (void) lxml_get_property(pg, n); in lxml_get_dependent()
1345 if (internal_property_find(pg, SCF_PROPERTY_TYPE) == NULL) { in lxml_get_dependent()
1348 if (internal_attach_property(pg, p) != 0) in lxml_get_dependent()
1353 pg->sc_pgroup_delete = (xmlStrcmp(delete, (xmlChar *)true) == 0); in lxml_get_dependent()
1356 pg = internal_pgroup_find_or_create(entity, "dependents", in lxml_get_dependent()
1359 if (internal_attach_property(pg, p) != 0) in lxml_get_dependent()
1368 pgroup_t *pg; in lxml_get_entity_stability() local
1378 pg = internal_pgroup_find_or_create(entity, (char *)scf_pg_general, in lxml_get_entity_stability()
1384 return (internal_attach_property(pg, p)); in lxml_get_entity_stability()
1390 pgroup_t *pg; in lxml_get_restarter() local
1401 pg = internal_pgroup_find_or_create(entity, (char *)scf_pg_general, in lxml_get_restarter()
1427 r = internal_attach_property(pg, p); in lxml_get_restarter()
1661 lxml_get_loctext(entity_t *service, pgroup_t *pg, xmlNodePtr loctext, in lxml_get_loctext() argument
1721 r = internal_attach_property(pg, p); in lxml_get_loctext()
1742 lxml_get_all_loctext(entity_t *service, pgroup_t *pg, xmlNodePtr container, in lxml_get_all_loctext() argument
1759 if (lxml_get_loctext(service, pg, cursor, pn_format, in lxml_get_all_loctext()
1842 lxml_get_tm_cardinality(entity_t *service, pgroup_t *pg, xmlNodePtr cursor) in lxml_get_tm_cardinality() argument
1865 "the %s element in %s.\n"), pg->sc_pgroup_name, in lxml_get_tm_cardinality()
1873 if (internal_attach_property(pg, min_prop) == 0) { in lxml_get_tm_cardinality()
1880 if (internal_attach_property(pg, max_prop) != 0) { in lxml_get_tm_cardinality()
1882 internal_detach_property(pg, min_prop); in lxml_get_tm_cardinality()
1906 pgroup_t *pg; in lxml_get_tm_common_name() local
1911 pg = internal_pgroup_find_or_create(service, SCF_PG_TM_COMMON_NAME, in lxml_get_tm_common_name()
1914 return (lxml_get_all_loctext(service, pg, common_name, LOCALE_ONLY_FMT, in lxml_get_tm_common_name()
1928 pgroup_t *pg; in lxml_get_tm_description() local
1933 pg = internal_pgroup_find_or_create(service, SCF_PG_TM_DESCRIPTION, in lxml_get_tm_description()
1936 return (lxml_get_all_loctext(service, pg, description, in lxml_get_tm_description()
2045 lxml_get_tm_internal_seps(entity_t *service, pgroup_t *pg, xmlNodePtr seps) in lxml_get_tm_internal_seps() argument
2067 r = internal_attach_property(pg, prop); in lxml_get_tm_internal_seps()
2076 pgroup_t *pg; in lxml_get_tm_manpage() local
2100 pg = internal_pgroup_find(service, pgname, SCF_GROUP_TEMPLATE); in lxml_get_tm_manpage()
2106 if (pg == NULL) { in lxml_get_tm_manpage()
2107 pg = internal_pgroup_find_or_create(service, pgname, in lxml_get_tm_manpage()
2111 free((char *)pg->sc_pgroup_name); in lxml_get_tm_manpage()
2112 pg->sc_pgroup_name = safe_strdup(pgname); in lxml_get_tm_manpage()
2124 if (new_str_prop_from_attr(pg, SCF_PROPERTY_TM_TITLE, in lxml_get_tm_manpage()
2126 new_str_prop_from_attr(pg, SCF_PROPERTY_TM_SECTION, in lxml_get_tm_manpage()
2128 new_str_prop_from_attr(pg, SCF_PROPERTY_TM_MANPATH, in lxml_get_tm_manpage()
2138 pgroup_t *pg; in lxml_get_tm_doclink() local
2153 pg = internal_pgroup_find_or_create(service, pgname, in lxml_get_tm_doclink()
2162 if (new_str_prop_from_attr(pg, SCF_PROPERTY_TM_NAME, SCF_TYPE_ASTRING, in lxml_get_tm_doclink()
2164 new_str_prop_from_attr(pg, SCF_PROPERTY_TM_URI, SCF_TYPE_ASTRING, in lxml_get_tm_doclink()
2199 lxml_get_prop_pattern_attributes(pgroup_t *pg, xmlNodePtr cursor) in lxml_get_prop_pattern_attributes() argument
2201 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_TM_NAME, in lxml_get_prop_pattern_attributes()
2205 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_TM_TYPE, in lxml_get_prop_pattern_attributes()
2209 if (new_bool_prop_from_attr(pg, SCF_PROPERTY_TM_REQUIRED, cursor, in lxml_get_prop_pattern_attributes()
2216 lxml_get_tm_include_values(entity_t *service, pgroup_t *pg, in lxml_get_tm_include_values() argument
2233 p = internal_property_find(pg, prop_name); in lxml_get_tm_include_values()
2238 r = internal_attach_property(pg, p); in lxml_get_tm_include_values()
2326 lxml_get_tm_range(entity_t *service, pgroup_t *pg, xmlNodePtr range, in lxml_get_tm_range() argument
2369 p = internal_property_find(pg, prop_name); in lxml_get_tm_range()
2374 r = internal_attach_property(pg, p); in lxml_get_tm_range()
2424 lxml_get_tm_value_element(entity_t *service, pgroup_t *pg, xmlNodePtr value, in lxml_get_tm_value_element() argument
2487 r = lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_value_element()
2491 r = lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_value_element()
2514 lxml_get_tm_choices(entity_t *service, pgroup_t *pg, xmlNodePtr choices) in lxml_get_tm_choices() argument
2528 (void) lxml_get_tm_include_values(service, pg, cursor, in lxml_get_tm_choices()
2532 r = lxml_get_tm_range(service, pg, cursor, in lxml_get_tm_choices()
2538 r = lxml_get_tm_value_element(service, pg, cursor, in lxml_get_tm_choices()
2564 r = internal_attach_property(pg, name_prop); in lxml_get_tm_choices()
2574 lxml_get_tm_constraints(entity_t *service, pgroup_t *pg, xmlNodePtr constraints) in lxml_get_tm_constraints() argument
2588 r = lxml_get_tm_range(service, pg, cursor, in lxml_get_tm_constraints()
2594 r = lxml_get_tm_value_element(service, pg, cursor, in lxml_get_tm_constraints()
2620 r = internal_attach_property(pg, name_prop); in lxml_get_tm_constraints()
2633 lxml_get_tm_values(entity_t *service, pgroup_t *pg, xmlNodePtr values) in lxml_get_tm_values() argument
2650 r = lxml_get_tm_value_element(service, pg, cursor, &name_value); in lxml_get_tm_values()
2666 r = internal_attach_property(pg, name_prop); in lxml_get_tm_values()
2696 pgroup_t *pg; in lxml_get_tm_prop_pattern() local
2742 pg = internal_pgroup_create_strict(service, pg_name, in lxml_get_tm_prop_pattern()
2744 if (pg == NULL) { in lxml_get_tm_prop_pattern()
2758 if (internal_attach_property(pg, p) != 0) in lxml_get_tm_prop_pattern()
2762 r = lxml_get_prop_pattern_attributes(pg, prop_pattern); in lxml_get_tm_prop_pattern()
2777 r = lxml_get_tm_cardinality(service, pg, cursor); in lxml_get_tm_prop_pattern()
2782 r = lxml_get_tm_choices(service, pg, cursor); in lxml_get_tm_prop_pattern()
2787 (void) lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_prop_pattern()
2791 r = lxml_get_tm_constraints(service, pg, cursor); in lxml_get_tm_prop_pattern()
2796 (void) lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_prop_pattern()
2800 r = lxml_get_tm_internal_seps(service, pg, cursor); in lxml_get_tm_prop_pattern()
2805 (void) lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_prop_pattern()
2809 (void) lxml_get_tm_values(service, pg, cursor); in lxml_get_tm_prop_pattern()
2816 (void) new_str_prop_from_attr(pg, in lxml_get_tm_prop_pattern()
2839 lxml_get_pg_pattern_attributes(pgroup_t *pg, xmlNodePtr cursor) in lxml_get_pg_pattern_attributes() argument
2841 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_TM_NAME, in lxml_get_pg_pattern_attributes()
2845 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_TM_TYPE, in lxml_get_pg_pattern_attributes()
2849 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_TM_TARGET, in lxml_get_pg_pattern_attributes()
2853 if (new_bool_prop_from_attr(pg, SCF_PROPERTY_TM_REQUIRED, cursor, in lxml_get_pg_pattern_attributes()
2876 verify_pg_pattern_attributes(entity_t *s, pgroup_t *pg) in verify_pg_pattern_attributes() argument
2883 target = internal_property_find(pg, SCF_PROPERTY_TM_TARGET); in verify_pg_pattern_attributes()
2959 pgroup_t *pg = NULL; in lxml_get_tm_pg_pattern() local
3027 pg = internal_pgroup_create_strict(service, pg_name, in lxml_get_tm_pg_pattern()
3029 if (pg == NULL) { in lxml_get_tm_pg_pattern()
3058 r = lxml_get_pg_pattern_attributes(pg, pg_pattern); in lxml_get_tm_pg_pattern()
3061 if (verify_pg_pattern_attributes(service, pg) != 0) { in lxml_get_tm_pg_pattern()
3079 (void) lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_pg_pattern()
3083 (void) lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_pg_pattern()
3100 if ((r != 0) && (pg != NULL)) { in lxml_get_tm_pg_pattern()
3101 internal_detach_pgroup(service, pg); in lxml_get_tm_pg_pattern()
3102 internal_pgroup_free(pg); in lxml_get_tm_pg_pattern()
3150 pgroup_t *pg; in lxml_get_default_instance() local
3168 pg = internal_pgroup_new(); in lxml_get_default_instance()
3169 (void) internal_attach_pgroup(i, pg); in lxml_get_default_instance()
3171 pg->sc_pgroup_name = (char *)scf_pg_general; in lxml_get_default_instance()
3172 pg->sc_pgroup_type = (char *)scf_group_framework; in lxml_get_default_instance()
3173 pg->sc_pgroup_flags = 0; in lxml_get_default_instance()
3178 (void) internal_attach_property(pg, p); in lxml_get_default_instance()
3187 (void) internal_attach_property(pg, p); in lxml_get_default_instance()
3206 pgroup_t *pg; in lxml_get_instance() local
3242 pg = internal_pgroup_new(); in lxml_get_instance()
3243 (void) internal_attach_pgroup(i, pg); in lxml_get_instance()
3245 pg->sc_pgroup_name = (char *)scf_pg_general; in lxml_get_instance()
3246 pg->sc_pgroup_type = (char *)scf_group_framework; in lxml_get_instance()
3247 pg->sc_pgroup_flags = 0; in lxml_get_instance()
3255 (void) internal_attach_property(pg, p); in lxml_get_instance()
3318 pgroup_t *pg; in lxml_get_single_instance() local
3322 pg = internal_pgroup_find_or_create(entity, (char *)scf_pg_general, in lxml_get_single_instance()
3328 r = internal_attach_property(pg, p); in lxml_get_single_instance()
3360 scf_propertygroup_t *pg = NULL; in lxml_check_upgrade() local
3366 (pg = scf_pg_create(h)) == NULL) in lxml_check_upgrade()
3382 if (scf_service_get_pg(svc, SCF_PG_MANIFESTFILES, pg) != SCF_SUCCESS) in lxml_check_upgrade()
3387 scf_pg_destroy(pg); in lxml_check_upgrade()
3405 pgroup_t *pg; in lxml_get_service() local
3463 pg = internal_pgroup_create_strict(s, SCF_PG_MANIFESTFILES, in lxml_get_service()
3466 if (pg == NULL) { in lxml_get_service()
3474 (void) internal_attach_property(pg, p); in lxml_get_service()