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;
1021 for (cursor = ctx->xmlChildrenNode; cursor != NULL;
1022 cursor = cursor->next) {
1023 if (lxml_ignorable_block(cursor))
1026 switch (lxml_xlate_element(cursor->name)) {
1028 (void) lxml_get_method_credential(pg, cursor);
1031 (void) lxml_get_method_profile(pg, cursor);
1034 (void) lxml_get_method_environment(pg, cursor);
1038 "context\n"), (char *)cursor);
1063 xmlNodePtr cursor;
1110 for (cursor = emeth->xmlChildrenNode; cursor != NULL;
1111 cursor = cursor->next) {
1112 if (lxml_ignorable_block(cursor))
1115 switch (lxml_xlate_element(cursor->name)) {
1117 if (lxml_get_pgroup_stability(pg, cursor) != 0)
1122 (void) lxml_get_method_context(pg, cursor);
1126 (void) lxml_get_propval(pg, cursor);
1130 (void) lxml_get_property(pg, cursor);
1135 "execution method \"%s\"\n"), cursor->name,
1153 xmlNodePtr cursor;
1189 for (cursor = dependency->xmlChildrenNode; cursor != NULL;
1190 cursor = cursor->next) {
1194 if (lxml_ignorable_block(cursor))
1197 switch (lxml_xlate_element(cursor->name)) {
1199 if (lxml_get_pgroup_stability(pg, cursor) != 0)
1204 value = xmlGetProp(cursor, (xmlChar *)value_attr);
1223 (void) lxml_get_propval(pg, cursor);
1227 (void) lxml_get_property(pg, cursor);
1232 "dependency group \"%s\"\n"), cursor->name, name);
1398 xmlNode *cursor;
1412 for (cursor = rstr->xmlChildrenNode; cursor != NULL;
1413 cursor = cursor->next) {
1414 if (lxml_ignorable_block(cursor))
1417 switch (lxml_xlate_element(cursor->name)) {
1419 restarter = xmlGetProp(cursor, (xmlChar *)value_attr);
1423 "element for \"%s\"\n"), cursor->name,
1478 xmlNodePtr cursor;
1490 for (cursor = type->xmlChildrenNode; cursor != NULL;
1491 cursor = cursor->next) {
1494 if (lxml_ignorable_block(cursor))
1497 pname = xmlGetProp(cursor, (xmlChar *)name_attr);
1508 switch (lxml_xlate_element(cursor->name)) {
1510 lxml_get_parameter(pgrp, propname, cursor);
1514 lxml_get_paramval(pgrp, propname, cursor);
1518 uu_die(gettext("unknown element %s\n"), cursor->name);
1544 xmlNodePtr cursor;
1549 for (cursor = np->xmlChildrenNode; cursor != NULL;
1550 cursor = cursor->next) {
1551 if (lxml_ignorable_block(cursor))
1554 switch (lxml_xlate_element(cursor->name)) {
1559 lxml_get_type(pgrp, cursor);
1564 "notification parameters\n"), cursor->name);
1576 xmlNodePtr cursor;
1582 for (count = 0, cursor = np->xmlChildrenNode; cursor != NULL;
1583 cursor = cursor->next) {
1584 if (lxml_ignorable_block(cursor))
1587 if (lxml_xlate_element(cursor->name) == SC_EVENT) {
1594 s = xmlGetProp(cursor, (xmlChar *)value_attr);
1670 xmlNodePtr cursor;
1696 for (cursor = loctext->xmlChildrenNode; cursor != NULL;
1697 cursor = cursor->next) {
1698 if (strcmp("text", (const char *)cursor->name) == 0) {
1700 } else if (strcmp("comment", (const char *)cursor->name) != 0) {
1702 "element for \"%s\"\n"), cursor->name,
1707 if (cursor == NULL) {
1715 stripped = safe_strdup((const char *)cursor->content);
1750 xmlNodePtr cursor;
1757 for (cursor = container->xmlChildrenNode; cursor != NULL;
1758 cursor = cursor->next) {
1759 if (lxml_ignorable_block(cursor))
1762 switch (lxml_xlate_element(cursor->name)) {
1764 if (lxml_get_loctext(service, pg, cursor, pn_format,
1770 "for \"%s\"\n"), cursor->name, container->name,
1789 lxml_get_cardinality_attribute(entity_t *service, xmlNodePtr cursor,
1800 val = xmlGetProp(cursor, (xmlChar *)attr_name);
1843 * The cardinality is specified by two attributes max and min at cursor.
1847 lxml_get_tm_cardinality(entity_t *service, pgroup_t *pg, xmlNodePtr cursor)
1857 r = lxml_get_cardinality_attribute(service, cursor, min_attr,
1863 r = lxml_get_cardinality_attribute(service, cursor, max_attr,
2052 xmlNodePtr cursor;
2056 for (cursor = seps->xmlChildrenNode; cursor != NULL;
2057 cursor = cursor->next) {
2058 if (strcmp("text", (const char *)cursor->name) == 0) {
2059 seps_to_prop_values(&prop, cursor->content);
2060 } else if (strcmp("comment", (const char *)cursor->name) != 0) {
2062 "for \"%s\"\n"), cursor->name, seps->name,
2179 xmlNodePtr cursor;
2181 for (cursor = documentation->xmlChildrenNode; cursor != NULL;
2182 cursor = cursor->next) {
2183 if (lxml_ignorable_block(cursor))
2186 switch (lxml_xlate_element(cursor->name)) {
2188 (void) lxml_get_tm_manpage(service, cursor);
2191 (void) lxml_get_tm_doclink(service, cursor);
2196 cursor->name, service->sc_name);
2204 lxml_get_prop_pattern_attributes(pgroup_t *pg, xmlNodePtr cursor)
2207 SCF_TYPE_ASTRING, cursor, name_attr, NULL) != 0) {
2211 SCF_TYPE_ASTRING, cursor, type_attr, "") != 0) {
2214 if (new_bool_prop_from_attr(pg, SCF_PROPERTY_TM_REQUIRED, cursor,
2433 xmlNodePtr cursor;
2485 for (cursor = value->xmlChildrenNode;
2486 cursor != NULL;
2487 cursor = cursor->next) {
2488 if (lxml_ignorable_block(cursor))
2490 switch (lxml_xlate_element(cursor->name)) {
2492 r = lxml_get_all_loctext(service, pg, cursor,
2493 common_name_fmt, (const char *)cursor->name);
2496 r = lxml_get_all_loctext(service, pg, cursor,
2497 description_fmt, (const char *)cursor->name);
2501 "of service %s\n"), (char *)cursor->name,
2521 xmlNodePtr cursor;
2526 for (cursor = choices->xmlChildrenNode;
2527 (cursor != NULL) && (r == 0);
2528 cursor = cursor->next) {
2529 if (lxml_ignorable_block(cursor))
2531 switch (lxml_xlate_element(cursor->name)) {
2533 (void) lxml_get_tm_include_values(service, pg, cursor,
2537 r = lxml_get_tm_range(service, pg, cursor,
2543 r = lxml_get_tm_value_element(service, pg, cursor,
2561 "choices for service %s.\n"), cursor->name,
2581 xmlNodePtr cursor;
2586 for (cursor = constraints->xmlChildrenNode;
2587 (cursor != NULL) && (r == 0);
2588 cursor = cursor->next) {
2589 if (lxml_ignorable_block(cursor))
2591 switch (lxml_xlate_element(cursor->name)) {
2593 r = lxml_get_tm_range(service, pg, cursor,
2599 r = lxml_get_tm_value_element(service, pg, cursor,
2617 "constraints for service %s.\n"), cursor->name,
2640 xmlNodePtr cursor;
2645 for (cursor = values->xmlChildrenNode;
2646 (cursor != NULL) && (r == 0);
2647 cursor = cursor->next) {
2648 if (lxml_ignorable_block(cursor))
2650 if (lxml_xlate_element(cursor->name) != SC_VALUE) {
2652 "%s element of %s\n"), (char *)cursor->name,
2655 r = lxml_get_tm_value_element(service, pg, cursor, &name_value);
2699 xmlNodePtr cursor;
2774 for (cursor = prop_pattern->xmlChildrenNode;
2775 cursor != NULL;
2776 cursor = cursor->next) {
2777 if (lxml_ignorable_block(cursor))
2780 switch (lxml_xlate_element(cursor->name)) {
2782 r = lxml_get_tm_cardinality(service, pg, cursor);
2787 r = lxml_get_tm_choices(service, pg, cursor);
2792 (void) lxml_get_all_loctext(service, pg, cursor,
2793 COMMON_NAME_FMT, (const char *)cursor->name);
2796 r = lxml_get_tm_constraints(service, pg, cursor);
2801 (void) lxml_get_all_loctext(service, pg, cursor,
2802 DESCRIPTION_FMT, (const char *)cursor->name);
2805 r = lxml_get_tm_internal_seps(service, pg, cursor);
2810 (void) lxml_get_all_loctext(service, pg, cursor,
2814 (void) lxml_get_tm_values(service, pg, cursor);
2823 cursor, value_attr);
2827 "for service \"%s\"\n"), cursor->name,
2844 lxml_get_pg_pattern_attributes(pgroup_t *pg, xmlNodePtr cursor)
2847 SCF_TYPE_ASTRING, cursor, name_attr, NULL) != 0) {
2851 SCF_TYPE_ASTRING, cursor, type_attr, NULL) != 0) {
2855 SCF_TYPE_ASTRING, cursor, target_attr, NULL) != 0) {
2858 if (new_bool_prop_from_attr(pg, SCF_PROPERTY_TM_REQUIRED, cursor,
2961 xmlNodePtr cursor;
3076 for (cursor = pg_pattern->xmlChildrenNode;
3077 cursor != NULL;
3078 cursor = cursor->next) {
3079 if (lxml_ignorable_block(cursor))
3082 switch (lxml_xlate_element(cursor->name)) {
3084 (void) lxml_get_all_loctext(service, pg, cursor,
3085 COMMON_NAME_FMT, (const char *)cursor->name);
3088 (void) lxml_get_all_loctext(service, pg, cursor,
3089 DESCRIPTION_FMT, (const char *)cursor->name);
3092 r = lxml_get_tm_prop_pattern(service, cursor,
3099 "for service \"%s\"\n"), cursor->name,
3119 xmlNodePtr cursor;
3121 for (cursor = templ->xmlChildrenNode; cursor != NULL;
3122 cursor = cursor->next) {
3123 if (lxml_ignorable_block(cursor))
3126 switch (lxml_xlate_element(cursor->name)) {
3128 (void) lxml_get_tm_common_name(service, cursor);
3131 (void) lxml_get_tm_description(service, cursor);
3134 (void) lxml_get_tm_documentation(service, cursor);
3137 if (lxml_get_tm_pg_pattern(service, cursor) != 0)
3143 cursor->name, service->sc_name);
3213 xmlNodePtr cursor;
3268 for (cursor = inst->xmlChildrenNode; cursor != NULL;
3269 cursor = cursor->next) {
3270 if (lxml_ignorable_block(cursor))
3273 switch (lxml_xlate_element(cursor->name)) {
3275 (void) lxml_get_restarter(i, cursor);
3278 (void) lxml_get_dependency(i, cursor);
3281 (void) lxml_get_dependent(i, cursor);
3284 (void) lxml_get_entity_method_context(i, cursor);
3287 (void) lxml_get_exec_method(i, cursor);
3290 (void) lxml_get_pgroup(i, cursor);
3301 if (lxml_get_template(i, cursor) != 0)
3305 if (lxml_get_notification_parameters(i, cursor) != 0)
3311 cursor->name, i->sc_name);
3414 xmlNodePtr cursor;
3486 for (cursor = svc->xmlChildrenNode; cursor != NULL;
3487 cursor = cursor->next) {
3488 if (lxml_ignorable_block(cursor))
3491 e = lxml_xlate_element(cursor->name);
3495 if (lxml_get_instance(s, cursor,
3508 if (lxml_get_template(s, cursor) != 0)
3512 if (lxml_get_notification_parameters(s, cursor) != 0)
3516 (void) lxml_get_entity_stability(s, cursor);
3519 (void) lxml_get_dependency(s, cursor);
3522 (void) lxml_get_dependent(s, cursor);
3525 (void) lxml_get_restarter(s, cursor);
3528 (void) lxml_get_exec_method(s, cursor);
3531 (void) lxml_get_entity_method_context(s, cursor);
3534 (void) lxml_get_pgroup(s, cursor);
3537 (void) lxml_get_default_instance(s, cursor);
3540 (void) lxml_get_single_instance(s, cursor);
3545 cursor->name, s->sc_name);
3589 xmlNodePtr cursor;
3636 for (cursor = subbundle->xmlChildrenNode; cursor != NULL;
3637 cursor = cursor->next) {
3638 if (lxml_ignorable_block(cursor))
3641 e = lxml_xlate_element(cursor->name);
3648 if (lxml_get_bundle(bundle, bundle_type, cursor, op))
3652 if (lxml_get_service(bundle, cursor, op) != 0)
3670 xmlNodePtr cursor;
3723 if ((cursor = xmlDocGetRootElement(document)) == NULL) {
3729 if (xmlStrcmp(cursor->name, (const xmlChar *)"service_bundle") != 0) {
3775 lxml_dump(0, cursor);
3778 r = lxml_get_bundle(bundle, SVCCFG_UNKNOWN_BUNDLE, cursor, op);