Lines Matching refs:pg

835 	pgroup_t *pg;  in lxml_get_pgroup()  local
846 pg = internal_pgroup_find_or_create(entity, (char *)name, (char *)type); in lxml_get_pgroup()
861 (void) lxml_get_pgroup_stability(pg, cursor); in lxml_get_pgroup()
864 (void) lxml_get_property(pg, cursor); in lxml_get_pgroup()
867 (void) lxml_get_propval(pg, cursor); in lxml_get_pgroup()
876 pg->sc_pgroup_delete = (xmlStrcmp(delete, (xmlChar *)true) == 0); in lxml_get_pgroup()
889 lxml_get_method_profile(pgroup_t *pg, xmlNodePtr profile) in lxml_get_method_profile() argument
895 if (internal_attach_property(pg, p) != 0) in lxml_get_method_profile()
898 return (new_str_prop_from_attr(pg, SCF_PROPERTY_PROFILE, in lxml_get_method_profile()
903 lxml_get_method_credential(pgroup_t *pg, xmlNodePtr cred) in lxml_get_method_credential() argument
909 if (internal_attach_property(pg, p) != 0) in lxml_get_method_credential()
912 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_USER, SCF_TYPE_ASTRING, in lxml_get_method_credential()
916 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_GROUP, SCF_TYPE_ASTRING, in lxml_get_method_credential()
920 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_SUPP_GROUPS, in lxml_get_method_credential()
924 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_PRIVILEGES, in lxml_get_method_credential()
928 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_LIMIT_PRIVILEGES, in lxml_get_method_credential()
959 lxml_get_method_environment(pgroup_t *pg, xmlNodePtr environment) in lxml_get_method_environment() argument
978 cursor->name, pg->sc_pgroup_name); in lxml_get_method_environment()
990 if (internal_attach_property(pg, p) != 0) { in lxml_get_method_environment()
999 lxml_get_method_context(pgroup_t *pg, xmlNodePtr ctx) in lxml_get_method_context() argument
1003 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_WORKING_DIRECTORY, in lxml_get_method_context()
1007 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_PROJECT, in lxml_get_method_context()
1011 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_RESOURCE_POOL, in lxml_get_method_context()
1022 (void) lxml_get_method_credential(pg, cursor); in lxml_get_method_context()
1025 (void) lxml_get_method_profile(pg, cursor); in lxml_get_method_context()
1028 (void) lxml_get_method_environment(pg, cursor); in lxml_get_method_context()
1043 pgroup_t *pg; in lxml_get_entity_method_context() local
1045 pg = internal_pgroup_find_or_create(entity, SCF_PG_METHOD_CONTEXT, in lxml_get_entity_method_context()
1048 return (lxml_get_method_context(pg, ctx)); in lxml_get_entity_method_context()
1054 pgroup_t *pg; in lxml_get_exec_method() local
1064 pg = internal_pgroup_find_or_create(entity, (char *)name, in lxml_get_exec_method()
1068 if (new_str_prop_from_attr(pg, SCF_PROPERTY_TYPE, SCF_TYPE_ASTRING, in lxml_get_exec_method()
1070 new_str_prop_from_attr(pg, SCF_PROPERTY_EXEC, SCF_TYPE_ASTRING, in lxml_get_exec_method()
1092 r = internal_attach_property(pg, p); in lxml_get_exec_method()
1110 if (lxml_get_pgroup_stability(pg, cursor) != 0) in lxml_get_exec_method()
1115 (void) lxml_get_method_context(pg, cursor); in lxml_get_exec_method()
1119 (void) lxml_get_propval(pg, cursor); in lxml_get_exec_method()
1123 (void) lxml_get_property(pg, cursor); in lxml_get_exec_method()
1129 pg->sc_pgroup_name); in lxml_get_exec_method()
1135 pg->sc_pgroup_delete = (xmlStrcmp(delete, (xmlChar *)true) == 0); in lxml_get_exec_method()
1144 pgroup_t *pg; in lxml_get_dependency() local
1162 pg = internal_pgroup_find_or_create(entity, (char *)name, in lxml_get_dependency()
1166 if (new_str_prop_from_attr(pg, SCF_PROPERTY_TYPE, SCF_TYPE_ASTRING, in lxml_get_dependency()
1170 if (new_str_prop_from_attr(pg, SCF_PROPERTY_RESTART_ON, in lxml_get_dependency()
1174 if (new_str_prop_from_attr(pg, SCF_PROPERTY_GROUPING, SCF_TYPE_ASTRING, in lxml_get_dependency()
1179 if (internal_attach_property(pg, p) != 0) in lxml_get_dependency()
1192 if (lxml_get_pgroup_stability(pg, cursor) != 0) in lxml_get_dependency()
1216 (void) lxml_get_propval(pg, cursor); in lxml_get_dependency()
1220 (void) lxml_get_property(pg, cursor); in lxml_get_dependency()
1231 pg->sc_pgroup_delete = (xmlStrcmp(delete, (xmlChar *)true) == 0); in lxml_get_dependency()
1249 pgroup_t *pg; in lxml_get_dependent() local
1268 pg = internal_pgroup_new(); in lxml_get_dependent()
1269 pg->sc_pgroup_name = (char *)name; in lxml_get_dependent()
1270 pg->sc_pgroup_type = (char *)SCF_GROUP_DEPENDENCY; in lxml_get_dependent()
1271 pg->sc_pgroup_override = (xmlStrcmp(or, (xmlChar *)true) == 0); in lxml_get_dependent()
1273 if (internal_attach_dependent(entity, pg) != 0) { in lxml_get_dependent()
1275 internal_pgroup_free(pg); in lxml_get_dependent()
1284 pg->sc_pgroup_fmri = (char *)fmri; in lxml_get_dependent()
1286 if (new_str_prop_from_attr(pg, SCF_PROPERTY_RESTART_ON, in lxml_get_dependent()
1290 if (new_str_prop_from_attr(pg, SCF_PROPERTY_GROUPING, SCF_TYPE_ASTRING, in lxml_get_dependent()
1308 if (internal_attach_property(pg, p) != 0) in lxml_get_dependent()
1314 if (internal_attach_property(pg, p) != 0) in lxml_get_dependent()
1323 if (new_str_prop_from_attr(pg, in lxml_get_dependent()
1330 (void) lxml_get_propval(pg, n); in lxml_get_dependent()
1334 (void) lxml_get_property(pg, n); in lxml_get_dependent()
1343 if (internal_property_find(pg, SCF_PROPERTY_TYPE) == NULL) { in lxml_get_dependent()
1346 if (internal_attach_property(pg, p) != 0) in lxml_get_dependent()
1351 pg->sc_pgroup_delete = (xmlStrcmp(delete, (xmlChar *)true) == 0); in lxml_get_dependent()
1354 pg = internal_pgroup_find_or_create(entity, "dependents", in lxml_get_dependent()
1357 if (internal_attach_property(pg, p) != 0) in lxml_get_dependent()
1366 pgroup_t *pg; in lxml_get_entity_stability() local
1376 pg = internal_pgroup_find_or_create(entity, (char *)scf_pg_general, in lxml_get_entity_stability()
1382 return (internal_attach_property(pg, p)); in lxml_get_entity_stability()
1388 pgroup_t *pg; in lxml_get_restarter() local
1399 pg = internal_pgroup_find_or_create(entity, (char *)scf_pg_general, in lxml_get_restarter()
1425 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
1722 r = internal_attach_property(pg, p); in lxml_get_loctext()
1743 lxml_get_all_loctext(entity_t *service, pgroup_t *pg, xmlNodePtr container, in lxml_get_all_loctext() argument
1760 if (lxml_get_loctext(service, pg, cursor, pn_format, in lxml_get_all_loctext()
1843 lxml_get_tm_cardinality(entity_t *service, pgroup_t *pg, xmlNodePtr cursor) in lxml_get_tm_cardinality() argument
1866 "the %s element in %s.\n"), pg->sc_pgroup_name, in lxml_get_tm_cardinality()
1874 if (internal_attach_property(pg, min_prop) == 0) { in lxml_get_tm_cardinality()
1881 if (internal_attach_property(pg, max_prop) != 0) { in lxml_get_tm_cardinality()
1883 internal_detach_property(pg, min_prop); in lxml_get_tm_cardinality()
1907 pgroup_t *pg; in lxml_get_tm_common_name() local
1912 pg = internal_pgroup_find_or_create(service, SCF_PG_TM_COMMON_NAME, in lxml_get_tm_common_name()
1915 return (lxml_get_all_loctext(service, pg, common_name, LOCALE_ONLY_FMT, in lxml_get_tm_common_name()
1929 pgroup_t *pg; in lxml_get_tm_description() local
1934 pg = internal_pgroup_find_or_create(service, SCF_PG_TM_DESCRIPTION, in lxml_get_tm_description()
1937 return (lxml_get_all_loctext(service, pg, description, in lxml_get_tm_description()
2053 lxml_get_tm_internal_seps(entity_t *service, pgroup_t *pg, xmlNodePtr seps) in lxml_get_tm_internal_seps() argument
2075 r = internal_attach_property(pg, prop); in lxml_get_tm_internal_seps()
2084 pgroup_t *pg; in lxml_get_tm_manpage() local
2097 pg = internal_pgroup_find_or_create(service, pgname, in lxml_get_tm_manpage()
2103 if (new_str_prop_from_attr(pg, SCF_PROPERTY_TM_TITLE, in lxml_get_tm_manpage()
2105 new_str_prop_from_attr(pg, SCF_PROPERTY_TM_SECTION, in lxml_get_tm_manpage()
2107 new_str_prop_from_attr(pg, SCF_PROPERTY_TM_MANPATH, in lxml_get_tm_manpage()
2117 pgroup_t *pg; in lxml_get_tm_doclink() local
2130 pg = internal_pgroup_find_or_create(service, pgname, in lxml_get_tm_doclink()
2137 if (new_str_prop_from_attr(pg, SCF_PROPERTY_TM_NAME, SCF_TYPE_ASTRING, in lxml_get_tm_doclink()
2139 new_str_prop_from_attr(pg, SCF_PROPERTY_TM_URI, SCF_TYPE_ASTRING, in lxml_get_tm_doclink()
2174 lxml_get_prop_pattern_attributes(pgroup_t *pg, xmlNodePtr cursor) in lxml_get_prop_pattern_attributes() argument
2176 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_TM_NAME, in lxml_get_prop_pattern_attributes()
2180 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_TM_TYPE, in lxml_get_prop_pattern_attributes()
2184 if (new_bool_prop_from_attr(pg, SCF_PROPERTY_TM_REQUIRED, cursor, in lxml_get_prop_pattern_attributes()
2191 lxml_get_tm_include_values(entity_t *service, pgroup_t *pg, in lxml_get_tm_include_values() argument
2208 p = internal_property_find(pg, prop_name); in lxml_get_tm_include_values()
2213 r = internal_attach_property(pg, p); in lxml_get_tm_include_values()
2301 lxml_get_tm_range(entity_t *service, pgroup_t *pg, xmlNodePtr range, in lxml_get_tm_range() argument
2344 p = internal_property_find(pg, prop_name); in lxml_get_tm_range()
2349 r = internal_attach_property(pg, p); in lxml_get_tm_range()
2399 lxml_get_tm_value_element(entity_t *service, pgroup_t *pg, xmlNodePtr value, in lxml_get_tm_value_element() argument
2462 r = lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_value_element()
2466 r = lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_value_element()
2489 lxml_get_tm_choices(entity_t *service, pgroup_t *pg, xmlNodePtr choices) in lxml_get_tm_choices() argument
2503 (void) lxml_get_tm_include_values(service, pg, cursor, in lxml_get_tm_choices()
2507 r = lxml_get_tm_range(service, pg, cursor, in lxml_get_tm_choices()
2513 r = lxml_get_tm_value_element(service, pg, cursor, in lxml_get_tm_choices()
2539 r = internal_attach_property(pg, name_prop); in lxml_get_tm_choices()
2549 lxml_get_tm_constraints(entity_t *service, pgroup_t *pg, xmlNodePtr constraints) in lxml_get_tm_constraints() argument
2563 r = lxml_get_tm_range(service, pg, cursor, in lxml_get_tm_constraints()
2569 r = lxml_get_tm_value_element(service, pg, cursor, in lxml_get_tm_constraints()
2595 r = internal_attach_property(pg, name_prop); in lxml_get_tm_constraints()
2608 lxml_get_tm_values(entity_t *service, pgroup_t *pg, xmlNodePtr values) in lxml_get_tm_values() argument
2625 r = lxml_get_tm_value_element(service, pg, cursor, &name_value); in lxml_get_tm_values()
2641 r = internal_attach_property(pg, name_prop); in lxml_get_tm_values()
2671 pgroup_t *pg; in lxml_get_tm_prop_pattern() local
2717 pg = internal_pgroup_create_strict(service, pg_name, in lxml_get_tm_prop_pattern()
2719 if (pg == NULL) { in lxml_get_tm_prop_pattern()
2733 if (internal_attach_property(pg, p) != 0) in lxml_get_tm_prop_pattern()
2737 r = lxml_get_prop_pattern_attributes(pg, prop_pattern); in lxml_get_tm_prop_pattern()
2752 r = lxml_get_tm_cardinality(service, pg, cursor); in lxml_get_tm_prop_pattern()
2757 r = lxml_get_tm_choices(service, pg, cursor); in lxml_get_tm_prop_pattern()
2762 (void) lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_prop_pattern()
2766 r = lxml_get_tm_constraints(service, pg, cursor); in lxml_get_tm_prop_pattern()
2771 (void) lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_prop_pattern()
2775 r = lxml_get_tm_internal_seps(service, pg, cursor); in lxml_get_tm_prop_pattern()
2780 (void) lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_prop_pattern()
2784 (void) lxml_get_tm_values(service, pg, cursor); in lxml_get_tm_prop_pattern()
2791 (void) new_str_prop_from_attr(pg, in lxml_get_tm_prop_pattern()
2814 lxml_get_pg_pattern_attributes(pgroup_t *pg, xmlNodePtr cursor) in lxml_get_pg_pattern_attributes() argument
2816 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_TM_NAME, in lxml_get_pg_pattern_attributes()
2820 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_TM_TYPE, in lxml_get_pg_pattern_attributes()
2824 if (new_opt_str_prop_from_attr(pg, SCF_PROPERTY_TM_TARGET, in lxml_get_pg_pattern_attributes()
2828 if (new_bool_prop_from_attr(pg, SCF_PROPERTY_TM_REQUIRED, cursor, in lxml_get_pg_pattern_attributes()
2851 verify_pg_pattern_attributes(entity_t *s, pgroup_t *pg) in verify_pg_pattern_attributes() argument
2858 target = internal_property_find(pg, SCF_PROPERTY_TM_TARGET); in verify_pg_pattern_attributes()
2934 pgroup_t *pg = NULL; in lxml_get_tm_pg_pattern() local
3002 pg = internal_pgroup_create_strict(service, pg_name, in lxml_get_tm_pg_pattern()
3004 if (pg == NULL) { in lxml_get_tm_pg_pattern()
3033 r = lxml_get_pg_pattern_attributes(pg, pg_pattern); in lxml_get_tm_pg_pattern()
3036 if (verify_pg_pattern_attributes(service, pg) != 0) { in lxml_get_tm_pg_pattern()
3054 (void) lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_pg_pattern()
3058 (void) lxml_get_all_loctext(service, pg, cursor, in lxml_get_tm_pg_pattern()
3075 if ((r != 0) && (pg != NULL)) { in lxml_get_tm_pg_pattern()
3076 internal_detach_pgroup(service, pg); in lxml_get_tm_pg_pattern()
3077 internal_pgroup_free(pg); in lxml_get_tm_pg_pattern()
3125 pgroup_t *pg; in lxml_get_default_instance() local
3143 pg = internal_pgroup_new(); in lxml_get_default_instance()
3144 (void) internal_attach_pgroup(i, pg); in lxml_get_default_instance()
3146 pg->sc_pgroup_name = (char *)scf_pg_general; in lxml_get_default_instance()
3147 pg->sc_pgroup_type = (char *)scf_group_framework; in lxml_get_default_instance()
3148 pg->sc_pgroup_flags = 0; in lxml_get_default_instance()
3153 (void) internal_attach_property(pg, p); in lxml_get_default_instance()
3162 (void) internal_attach_property(pg, p); in lxml_get_default_instance()
3181 pgroup_t *pg; in lxml_get_instance() local
3217 pg = internal_pgroup_new(); in lxml_get_instance()
3218 (void) internal_attach_pgroup(i, pg); in lxml_get_instance()
3220 pg->sc_pgroup_name = (char *)scf_pg_general; in lxml_get_instance()
3221 pg->sc_pgroup_type = (char *)scf_group_framework; in lxml_get_instance()
3222 pg->sc_pgroup_flags = 0; in lxml_get_instance()
3230 (void) internal_attach_property(pg, p); in lxml_get_instance()
3293 pgroup_t *pg; in lxml_get_single_instance() local
3297 pg = internal_pgroup_find_or_create(entity, (char *)scf_pg_general, in lxml_get_single_instance()
3303 r = internal_attach_property(pg, p); in lxml_get_single_instance()
3335 scf_propertygroup_t *pg = NULL; in lxml_check_upgrade() local
3341 (pg = scf_pg_create(h)) == NULL) in lxml_check_upgrade()
3357 if (scf_service_get_pg(svc, SCF_PG_MANIFESTFILES, pg) != SCF_SUCCESS) in lxml_check_upgrade()
3362 scf_pg_destroy(pg); in lxml_check_upgrade()
3380 pgroup_t *pg; in lxml_get_service() local
3438 pg = internal_pgroup_create_strict(s, SCF_PG_MANIFESTFILES, in lxml_get_service()
3441 if (pg == NULL) { in lxml_get_service()
3449 (void) internal_attach_property(pg, p); in lxml_get_service()