Lines Matching defs:cursor

627 	xmlNodePtr cursor;
629 for (cursor = value->xmlChildrenNode; cursor != NULL;
630 cursor = cursor->next) {
634 if (lxml_ignorable_block(cursor))
637 switch (lxml_xlate_element(cursor->name)) {
639 if ((assigned_value = xmlGetProp(cursor,
645 "\'%s\'\n"), cursor->name);
726 xmlNodePtr cursor;
766 for (cursor = property->xmlChildrenNode; cursor != NULL;
767 cursor = cursor->next) {
768 if (lxml_ignorable_block(cursor))
771 switch (r = lxml_xlate_element(cursor->name)) {
803 (void) lxml_get_value(p, r, cursor);
807 cursor->name);
838 xmlNodePtr cursor;
856 for (cursor = pgroup->xmlChildrenNode; cursor != NULL;
857 cursor = cursor->next) {
858 if (lxml_ignorable_block(cursor))
861 switch (lxml_xlate_element(cursor->name)) {
863 (void) lxml_get_pgroup_stability(pg, cursor);
866 (void) lxml_get_property(pg, cursor);
869 (void) lxml_get_propval(pg, cursor);
964 xmlNodePtr cursor;
970 for (cursor = environment->xmlChildrenNode; cursor != NULL;
971 cursor = cursor->next) {
974 if (lxml_ignorable_block(cursor))
977 if (lxml_xlate_element(cursor->name) != SC_METHOD_ENVVAR)
980 cursor->name, pg->sc_pgroup_name);
982 if ((tmp = lxml_get_envvar(cursor)) == NULL)
1003 xmlNodePtr cursor;
1017 for (cursor = ctx->xmlChildrenNode; cursor != NULL;
1018 cursor = cursor->next) {
1019 if (lxml_ignorable_block(cursor))
1022 switch (lxml_xlate_element(cursor->name)) {
1024 (void) lxml_get_method_credential(pg, cursor);
1027 (void) lxml_get_method_profile(pg, cursor);
1030 (void) lxml_get_method_environment(pg, cursor);
1034 "context\n"), (char *)cursor);
1059 xmlNodePtr cursor;
1105 for (cursor = emeth->xmlChildrenNode; cursor != NULL;
1106 cursor = cursor->next) {
1107 if (lxml_ignorable_block(cursor))
1110 switch (lxml_xlate_element(cursor->name)) {
1112 if (lxml_get_pgroup_stability(pg, cursor) != 0)
1117 (void) lxml_get_method_context(pg, cursor);
1121 (void) lxml_get_propval(pg, cursor);
1125 (void) lxml_get_property(pg, cursor);
1130 "execution method \"%s\"\n"), cursor->name,
1148 xmlNodePtr cursor;
1184 for (cursor = dependency->xmlChildrenNode; cursor != NULL;
1185 cursor = cursor->next) {
1189 if (lxml_ignorable_block(cursor))
1192 switch (lxml_xlate_element(cursor->name)) {
1194 if (lxml_get_pgroup_stability(pg, cursor) != 0)
1199 value = xmlGetProp(cursor, (xmlChar *)value_attr);
1218 (void) lxml_get_propval(pg, cursor);
1222 (void) lxml_get_property(pg, cursor);
1227 "dependency group \"%s\"\n"), cursor->name, name);
1393 xmlNode *cursor;
1407 for (cursor = rstr->xmlChildrenNode; cursor != NULL;
1408 cursor = cursor->next) {
1409 if (lxml_ignorable_block(cursor))
1412 switch (lxml_xlate_element(cursor->name)) {
1414 restarter = xmlGetProp(cursor, (xmlChar *)value_attr);
1418 "element for \"%s\"\n"), cursor->name,
1473 xmlNodePtr cursor;
1485 for (cursor = type->xmlChildrenNode; cursor != NULL;
1486 cursor = cursor->next) {
1489 if (lxml_ignorable_block(cursor))
1492 pname = xmlGetProp(cursor, (xmlChar *)name_attr);
1503 switch (lxml_xlate_element(cursor->name)) {
1505 lxml_get_parameter(pgrp, propname, cursor);
1509 lxml_get_paramval(pgrp, propname, cursor);
1513 uu_die(gettext("unknown element %s\n"), cursor->name);
1539 xmlNodePtr cursor;
1544 for (cursor = np->xmlChildrenNode; cursor != NULL;
1545 cursor = cursor->next) {
1546 if (lxml_ignorable_block(cursor))
1549 switch (lxml_xlate_element(cursor->name)) {
1554 lxml_get_type(pgrp, cursor);
1559 "notification parameters\n"), cursor->name);
1571 xmlNodePtr cursor;
1577 for (count = 0, cursor = np->xmlChildrenNode; cursor != NULL;
1578 cursor = cursor->next) {
1579 if (lxml_ignorable_block(cursor))
1582 if (lxml_xlate_element(cursor->name) == SC_EVENT) {
1589 s = xmlGetProp(cursor, (xmlChar *)value_attr);
1665 xmlNodePtr cursor;
1691 for (cursor = loctext->xmlChildrenNode; cursor != NULL;
1692 cursor = cursor->next) {
1693 if (strcmp("text", (const char *)cursor->name) == 0) {
1695 } else if (strcmp("comment", (const char *)cursor->name) != 0) {
1697 "element for \"%s\"\n"), cursor->name,
1702 if (cursor == NULL) {
1710 stripped = safe_strdup((const char *)cursor->content);
1745 xmlNodePtr cursor;
1752 for (cursor = container->xmlChildrenNode; cursor != NULL;
1753 cursor = cursor->next) {
1754 if (lxml_ignorable_block(cursor))
1757 switch (lxml_xlate_element(cursor->name)) {
1759 if (lxml_get_loctext(service, pg, cursor, pn_format,
1765 "for \"%s\"\n"), cursor->name, container->name,
1784 lxml_get_cardinality_attribute(entity_t *service, xmlNodePtr cursor,
1795 val = xmlGetProp(cursor, (xmlChar *)attr_name);
1838 * The cardinality is specified by two attributes max and min at cursor.
1842 lxml_get_tm_cardinality(entity_t *service, pgroup_t *pg, xmlNodePtr cursor)
1852 r = lxml_get_cardinality_attribute(service, cursor, min_attr,
1858 r = lxml_get_cardinality_attribute(service, cursor, max_attr,
2047 xmlNodePtr cursor;
2051 for (cursor = seps->xmlChildrenNode; cursor != NULL;
2052 cursor = cursor->next) {
2053 if (strcmp("text", (const char *)cursor->name) == 0) {
2054 seps_to_prop_values(&prop, cursor->content);
2055 } else if (strcmp("comment", (const char *)cursor->name) != 0) {
2057 "for \"%s\"\n"), cursor->name, seps->name,
2174 xmlNodePtr cursor;
2176 for (cursor = documentation->xmlChildrenNode; cursor != NULL;
2177 cursor = cursor->next) {
2178 if (lxml_ignorable_block(cursor))
2181 switch (lxml_xlate_element(cursor->name)) {
2183 (void) lxml_get_tm_manpage(service, cursor);
2186 (void) lxml_get_tm_doclink(service, cursor);
2191 cursor->name, service->sc_name);
2199 lxml_get_prop_pattern_attributes(pgroup_t *pg, xmlNodePtr cursor)
2202 SCF_TYPE_ASTRING, cursor, name_attr, NULL) != 0) {
2206 SCF_TYPE_ASTRING, cursor, type_attr, "") != 0) {
2209 if (new_bool_prop_from_attr(pg, SCF_PROPERTY_TM_REQUIRED, cursor,
2428 xmlNodePtr cursor;
2480 for (cursor = value->xmlChildrenNode;
2481 cursor != NULL;
2482 cursor = cursor->next) {
2483 if (lxml_ignorable_block(cursor))
2485 switch (lxml_xlate_element(cursor->name)) {
2487 r = lxml_get_all_loctext(service, pg, cursor,
2488 common_name_fmt, (const char *)cursor->name);
2491 r = lxml_get_all_loctext(service, pg, cursor,
2492 description_fmt, (const char *)cursor->name);
2496 "of service %s\n"), (char *)cursor->name,
2516 xmlNodePtr cursor;
2521 for (cursor = choices->xmlChildrenNode;
2522 (cursor != NULL) && (r == 0);
2523 cursor = cursor->next) {
2524 if (lxml_ignorable_block(cursor))
2526 switch (lxml_xlate_element(cursor->name)) {
2528 (void) lxml_get_tm_include_values(service, pg, cursor,
2532 r = lxml_get_tm_range(service, pg, cursor,
2538 r = lxml_get_tm_value_element(service, pg, cursor,
2556 "choices for service %s.\n"), cursor->name,
2576 xmlNodePtr cursor;
2581 for (cursor = constraints->xmlChildrenNode;
2582 (cursor != NULL) && (r == 0);
2583 cursor = cursor->next) {
2584 if (lxml_ignorable_block(cursor))
2586 switch (lxml_xlate_element(cursor->name)) {
2588 r = lxml_get_tm_range(service, pg, cursor,
2594 r = lxml_get_tm_value_element(service, pg, cursor,
2612 "constraints for service %s.\n"), cursor->name,
2635 xmlNodePtr cursor;
2640 for (cursor = values->xmlChildrenNode;
2641 (cursor != NULL) && (r == 0);
2642 cursor = cursor->next) {
2643 if (lxml_ignorable_block(cursor))
2645 if (lxml_xlate_element(cursor->name) != SC_VALUE) {
2647 "%s element of %s\n"), (char *)cursor->name,
2650 r = lxml_get_tm_value_element(service, pg, cursor, &name_value);
2694 xmlNodePtr cursor;
2769 for (cursor = prop_pattern->xmlChildrenNode;
2770 cursor != NULL;
2771 cursor = cursor->next) {
2772 if (lxml_ignorable_block(cursor))
2775 switch (lxml_xlate_element(cursor->name)) {
2777 r = lxml_get_tm_cardinality(service, pg, cursor);
2782 r = lxml_get_tm_choices(service, pg, cursor);
2787 (void) lxml_get_all_loctext(service, pg, cursor,
2788 COMMON_NAME_FMT, (const char *)cursor->name);
2791 r = lxml_get_tm_constraints(service, pg, cursor);
2796 (void) lxml_get_all_loctext(service, pg, cursor,
2797 DESCRIPTION_FMT, (const char *)cursor->name);
2800 r = lxml_get_tm_internal_seps(service, pg, cursor);
2805 (void) lxml_get_all_loctext(service, pg, cursor,
2809 (void) lxml_get_tm_values(service, pg, cursor);
2818 cursor, value_attr);
2822 "for service \"%s\"\n"), cursor->name,
2839 lxml_get_pg_pattern_attributes(pgroup_t *pg, xmlNodePtr cursor)
2842 SCF_TYPE_ASTRING, cursor, name_attr, NULL) != 0) {
2846 SCF_TYPE_ASTRING, cursor, type_attr, NULL) != 0) {
2850 SCF_TYPE_ASTRING, cursor, target_attr, NULL) != 0) {
2853 if (new_bool_prop_from_attr(pg, SCF_PROPERTY_TM_REQUIRED, cursor,
2956 xmlNodePtr cursor;
3071 for (cursor = pg_pattern->xmlChildrenNode;
3072 cursor != NULL;
3073 cursor = cursor->next) {
3074 if (lxml_ignorable_block(cursor))
3077 switch (lxml_xlate_element(cursor->name)) {
3079 (void) lxml_get_all_loctext(service, pg, cursor,
3080 COMMON_NAME_FMT, (const char *)cursor->name);
3083 (void) lxml_get_all_loctext(service, pg, cursor,
3084 DESCRIPTION_FMT, (const char *)cursor->name);
3087 r = lxml_get_tm_prop_pattern(service, cursor,
3094 "for service \"%s\"\n"), cursor->name,
3114 xmlNodePtr cursor;
3116 for (cursor = templ->xmlChildrenNode; cursor != NULL;
3117 cursor = cursor->next) {
3118 if (lxml_ignorable_block(cursor))
3121 switch (lxml_xlate_element(cursor->name)) {
3123 (void) lxml_get_tm_common_name(service, cursor);
3126 (void) lxml_get_tm_description(service, cursor);
3129 (void) lxml_get_tm_documentation(service, cursor);
3132 if (lxml_get_tm_pg_pattern(service, cursor) != 0)
3138 cursor->name, service->sc_name);
3208 xmlNodePtr cursor;
3263 for (cursor = inst->xmlChildrenNode; cursor != NULL;
3264 cursor = cursor->next) {
3265 if (lxml_ignorable_block(cursor))
3268 switch (lxml_xlate_element(cursor->name)) {
3270 (void) lxml_get_restarter(i, cursor);
3273 (void) lxml_get_dependency(i, cursor);
3276 (void) lxml_get_dependent(i, cursor);
3279 (void) lxml_get_entity_method_context(i, cursor);
3282 (void) lxml_get_exec_method(i, cursor);
3285 (void) lxml_get_pgroup(i, cursor);
3296 if (lxml_get_template(i, cursor) != 0)
3300 if (lxml_get_notification_parameters(i, cursor) != 0)
3306 cursor->name, i->sc_name);
3408 xmlNodePtr cursor;
3480 for (cursor = svc->xmlChildrenNode; cursor != NULL;
3481 cursor = cursor->next) {
3482 if (lxml_ignorable_block(cursor))
3485 e = lxml_xlate_element(cursor->name);
3489 if (lxml_get_instance(s, cursor,
3502 if (lxml_get_template(s, cursor) != 0)
3506 if (lxml_get_notification_parameters(s, cursor) != 0)
3510 (void) lxml_get_entity_stability(s, cursor);
3513 (void) lxml_get_dependency(s, cursor);
3516 (void) lxml_get_dependent(s, cursor);
3519 (void) lxml_get_restarter(s, cursor);
3522 (void) lxml_get_exec_method(s, cursor);
3525 (void) lxml_get_entity_method_context(s, cursor);
3528 (void) lxml_get_pgroup(s, cursor);
3531 (void) lxml_get_default_instance(s, cursor);
3534 (void) lxml_get_single_instance(s, cursor);
3539 cursor->name, s->sc_name);
3583 xmlNodePtr cursor;
3630 for (cursor = subbundle->xmlChildrenNode; cursor != NULL;
3631 cursor = cursor->next) {
3632 if (lxml_ignorable_block(cursor))
3635 e = lxml_xlate_element(cursor->name);
3642 if (lxml_get_bundle(bundle, bundle_type, cursor, op))
3646 if (lxml_get_service(bundle, cursor, op) != 0)
3664 xmlNodePtr cursor;
3717 if ((cursor = xmlDocGetRootElement(document)) == NULL) {
3723 if (xmlStrcmp(cursor->name, (const xmlChar *)"service_bundle") != 0) {
3769 lxml_dump(0, cursor);
3772 r = lxml_get_bundle(bundle, SVCCFG_UNKNOWN_BUNDLE, cursor, op);