xml_obj 168 include/crm/common/xml.h xmlNode *get_xpath_object(const char *xpath, xmlNode * xml_obj, int error_level); xml_obj 169 include/crm/common/xml.h xmlNode *get_xpath_object_relative(const char *xpath, xmlNode * xml_obj, int error_level); xml_obj 580 include/crm/pengine/internal.h void pe__unpack_dataset_nvpairs(const xmlNode *xml_obj, const char *set_name, xml_obj 51 include/crm/pengine/rules.h void pe_eval_nvpairs(xmlNode *top, const xmlNode *xml_obj, const char *set_name, xml_obj 56 include/crm/pengine/rules.h void pe_unpack_nvpairs(xmlNode *top, const xmlNode *xml_obj, xml_obj 63 include/crm/pengine/rules_compat.h void unpack_instance_attributes(xmlNode *top, xmlNode *xml_obj, xml_obj 180 lib/cib/cib_attrs.c xmlNode *xml_obj = NULL; xml_obj 219 lib/cib/cib_attrs.c xml_top = create_xml_node(xml_obj, XML_CIB_TAG_STATUS); xml_obj 220 lib/cib/cib_attrs.c xml_obj = create_xml_node(xml_top, XML_CIB_TAG_TICKETS); xml_obj 229 lib/cib/cib_attrs.c xml_top = create_xml_node(xml_obj, XML_CIB_TAG_NODES); xml_obj 230 lib/cib/cib_attrs.c xml_obj = create_xml_node(xml_top, XML_CIB_TAG_NODE); xml_obj 231 lib/cib/cib_attrs.c crm_xml_add(xml_obj, XML_ATTR_TYPE, "remote"); xml_obj 232 lib/cib/cib_attrs.c crm_xml_add(xml_obj, XML_ATTR_ID, node_uuid); xml_obj 233 lib/cib/cib_attrs.c crm_xml_add(xml_obj, XML_ATTR_UNAME, node_uuid); xml_obj 244 lib/cib/cib_attrs.c xml_top = create_xml_node(xml_obj, XML_CIB_TAG_STATE); xml_obj 246 lib/cib/cib_attrs.c xml_obj = xml_top; xml_obj 288 lib/cib/cib_attrs.c xml_obj = create_xml_node(xml_obj, tag); xml_obj 289 lib/cib/cib_attrs.c crm_xml_add(xml_obj, XML_ATTR_ID, node_uuid); xml_obj 291 lib/cib/cib_attrs.c xml_top = xml_obj; xml_obj 297 lib/cib/cib_attrs.c xml_obj = create_xml_node(xml_obj, XML_CIB_TAG_PROPSET); xml_obj 299 lib/cib/cib_attrs.c xml_obj = create_xml_node(xml_obj, XML_TAG_META_SETS); xml_obj 303 lib/cib/cib_attrs.c xml_obj = create_xml_node(xml_obj, set_type); xml_obj 306 lib/cib/cib_attrs.c xml_obj = create_xml_node(xml_obj, XML_TAG_ATTR_SETS); xml_obj 308 lib/cib/cib_attrs.c crm_xml_add(xml_obj, XML_ATTR_ID, set_name); xml_obj 311 lib/cib/cib_attrs.c xml_top = xml_obj; xml_obj 316 lib/cib/cib_attrs.c xml_obj = crm_create_nvpair_xml(xml_obj, attr_id, attr_name, attr_value); xml_obj 318 lib/cib/cib_attrs.c xml_top = xml_obj; xml_obj 375 lib/cib/cib_attrs.c xmlNode *xml_obj = NULL; xml_obj 396 lib/cib/cib_attrs.c xml_obj = crm_create_nvpair_xml(NULL, attr_id, attr_name, attr_value); xml_obj 398 lib/cib/cib_attrs.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_DELETE, NULL, section, xml_obj, xml_obj 411 lib/cib/cib_attrs.c free_xml(xml_obj); xml_obj 665 lib/cib/cib_attrs.c xmlNode *xml_obj = NULL; xml_obj 678 lib/cib/cib_attrs.c xml_obj = fragment; xml_obj 679 lib/cib/cib_attrs.c CRM_CHECK(pcmk__xe_is(xml_obj, XML_CIB_TAG_NODES), return -ENOMSG); xml_obj 680 lib/cib/cib_attrs.c crm_log_xml_trace(xml_obj, "Result section"); xml_obj 685 lib/cib/cib_attrs.c for (a_child = pcmk__xml_first_child(xml_obj); a_child != NULL; xml_obj 212 lib/cib/cib_ops.c update_counter(xmlNode *xml_obj, const char *field, bool reset) xml_obj 218 lib/cib/cib_ops.c if (!reset && crm_element_value(xml_obj, field) != NULL) { xml_obj 219 lib/cib/cib_ops.c old_value = crm_element_value_copy(xml_obj, field); xml_obj 231 lib/cib/cib_ops.c crm_xml_add(xml_obj, field, new_value); xml_obj 877 lib/common/xml.c xmlNode *xml_obj = NULL; xml_obj 893 lib/common/xml.c xml_obj = string2xml(xml_buffer); xml_obj 896 lib/common/xml.c crm_log_xml_trace(xml_obj, "Created fragment"); xml_obj 897 lib/common/xml.c return xml_obj; xml_obj 189 lib/common/xpath.c get_xpath_object_relative(const char *xpath, xmlNode * xml_obj, int error_level) xml_obj 195 lib/common/xpath.c if (xml_obj == NULL || xpath == NULL) { xml_obj 199 lib/common/xpath.c xpath_prefix = (char *)xmlGetNodePath(xml_obj); xml_obj 203 lib/common/xpath.c result = get_xpath_object(xpath_full, xml_obj, error_level); xml_obj 211 lib/common/xpath.c get_xpath_object(const char *xpath, xmlNode * xml_obj, int error_level) xml_obj 220 lib/common/xpath.c return xml_obj; /* or return NULL? */ xml_obj 223 lib/common/xpath.c xpathObj = xpath_search(xml_obj, xpath); xml_obj 224 lib/common/xpath.c nodePath = (char *)xmlGetNodePath(xml_obj); xml_obj 231 lib/common/xpath.c crm_log_xml_explicit(xml_obj, "Unexpected Input"); xml_obj 253 lib/common/xpath.c crm_log_xml_explicit(xml_obj, "Bad Input"); xml_obj 452 lib/pacemaker/libpacemaker_private.h xmlNode *pcmk__expand_tags_in_sets(xmlNode *xml_obj, xml_obj 461 lib/pacemaker/libpacemaker_private.h bool pcmk__tag_to_set(xmlNode *xml_obj, xmlNode **rsc_set, const char *attr, xml_obj 471 lib/pacemaker/libpacemaker_private.h void pcmk__unpack_location(xmlNode *xml_obj, pcmk_scheduler_t *scheduler); xml_obj 559 lib/pacemaker/libpacemaker_private.h void pcmk__unpack_colocation(xmlNode *xml_obj, pcmk_scheduler_t *scheduler); xml_obj 648 lib/pacemaker/libpacemaker_private.h void pcmk__unpack_ordering(xmlNode *xml_obj, pcmk_scheduler_t *scheduler); xml_obj 695 lib/pacemaker/libpacemaker_private.h void pcmk__unpack_rsc_ticket(xmlNode *xml_obj, pcmk_scheduler_t *scheduler); xml_obj 524 lib/pacemaker/pcmk_injections.c xmlNode *xml_obj = NULL; xml_obj 527 lib/pacemaker/pcmk_injections.c xml_obj = create_xml_node(xml_top, XML_CIB_TAG_TICKETS); xml_obj 528 lib/pacemaker/pcmk_injections.c ticket_state_xml = create_xml_node(xml_obj, XML_CIB_TAG_TICKET_STATE); xml_obj 710 lib/pacemaker/pcmk_sched_colocation.c unpack_simple_colocation(xmlNode *xml_obj, const char *id, xml_obj 716 lib/pacemaker/pcmk_sched_colocation.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); xml_obj 717 lib/pacemaker/pcmk_sched_colocation.c const char *dependent_id = crm_element_value(xml_obj, xml_obj 719 lib/pacemaker/pcmk_sched_colocation.c const char *primary_id = crm_element_value(xml_obj, XML_COLOC_ATTR_TARGET); xml_obj 720 lib/pacemaker/pcmk_sched_colocation.c const char *dependent_role = crm_element_value(xml_obj, xml_obj 722 lib/pacemaker/pcmk_sched_colocation.c const char *primary_role = crm_element_value(xml_obj, xml_obj 724 lib/pacemaker/pcmk_sched_colocation.c const char *attr = crm_element_value(xml_obj, XML_COLOC_ATTR_NODE_ATTR); xml_obj 736 lib/pacemaker/pcmk_sched_colocation.c primary_instance = crm_element_value(xml_obj, xml_obj 738 lib/pacemaker/pcmk_sched_colocation.c dependent_instance = crm_element_value(xml_obj, xml_obj 794 lib/pacemaker/pcmk_sched_colocation.c if (pcmk__xe_attr_is_true(xml_obj, XML_CONS_ATTR_SYMMETRICAL)) { xml_obj 811 lib/pacemaker/pcmk_sched_colocation.c unpack_colocation_tags(xmlNode *xml_obj, xmlNode **expanded_xml, xml_obj 832 lib/pacemaker/pcmk_sched_colocation.c CRM_CHECK(xml_obj != NULL, return EINVAL); xml_obj 834 lib/pacemaker/pcmk_sched_colocation.c id = ID(xml_obj); xml_obj 837 lib/pacemaker/pcmk_sched_colocation.c xml_obj->name); xml_obj 842 lib/pacemaker/pcmk_sched_colocation.c *expanded_xml = pcmk__expand_tags_in_sets(xml_obj, scheduler); xml_obj 848 lib/pacemaker/pcmk_sched_colocation.c dependent_id = crm_element_value(xml_obj, XML_COLOC_ATTR_SOURCE); xml_obj 849 lib/pacemaker/pcmk_sched_colocation.c primary_id = crm_element_value(xml_obj, XML_COLOC_ATTR_TARGET); xml_obj 880 lib/pacemaker/pcmk_sched_colocation.c dependent_role = crm_element_value(xml_obj, XML_COLOC_ATTR_SOURCE_ROLE); xml_obj 881 lib/pacemaker/pcmk_sched_colocation.c primary_role = crm_element_value(xml_obj, XML_COLOC_ATTR_TARGET_ROLE); xml_obj 883 lib/pacemaker/pcmk_sched_colocation.c *expanded_xml = copy_xml(xml_obj); xml_obj 937 lib/pacemaker/pcmk_sched_colocation.c pcmk__unpack_colocation(xmlNode *xml_obj, pcmk_scheduler_t *scheduler) xml_obj 946 lib/pacemaker/pcmk_sched_colocation.c const char *id = crm_element_value(xml_obj, XML_ATTR_ID); xml_obj 956 lib/pacemaker/pcmk_sched_colocation.c if (unpack_colocation_tags(xml_obj, &expanded_xml, xml_obj 961 lib/pacemaker/pcmk_sched_colocation.c orig_xml = xml_obj; xml_obj 962 lib/pacemaker/pcmk_sched_colocation.c xml_obj = expanded_xml; xml_obj 965 lib/pacemaker/pcmk_sched_colocation.c score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); xml_obj 969 lib/pacemaker/pcmk_sched_colocation.c influence_s = crm_element_value(xml_obj, XML_COLOC_ATTR_INFLUENCE); xml_obj 971 lib/pacemaker/pcmk_sched_colocation.c for (set = first_named_child(xml_obj, XML_CONS_TAG_RSC_SET); set != NULL; xml_obj 997 lib/pacemaker/pcmk_sched_colocation.c xml_obj = orig_xml; xml_obj 1001 lib/pacemaker/pcmk_sched_colocation.c unpack_simple_colocation(xml_obj, id, influence_s, scheduler); xml_obj 61 lib/pacemaker/pcmk_sched_constraints.c for (xmlNode *xml_obj = pcmk__xe_first_child(xml_constraints); xml_obj 62 lib/pacemaker/pcmk_sched_constraints.c xml_obj != NULL; xml_obj = pcmk__xe_next(xml_obj)) { xml_obj 65 lib/pacemaker/pcmk_sched_constraints.c const char *id = crm_element_value(xml_obj, XML_ATTR_ID); xml_obj 66 lib/pacemaker/pcmk_sched_constraints.c const char *tag = (const char *) xml_obj->name; xml_obj 76 lib/pacemaker/pcmk_sched_constraints.c lifetime = first_named_child(xml_obj, "lifetime"); xml_obj 88 lib/pacemaker/pcmk_sched_constraints.c pcmk__unpack_ordering(xml_obj, scheduler); xml_obj 91 lib/pacemaker/pcmk_sched_constraints.c pcmk__unpack_colocation(xml_obj, scheduler); xml_obj 95 lib/pacemaker/pcmk_sched_constraints.c pcmk__unpack_location(xml_obj, scheduler); xml_obj 98 lib/pacemaker/pcmk_sched_constraints.c pcmk__unpack_rsc_ticket(xml_obj, scheduler); xml_obj 217 lib/pacemaker/pcmk_sched_constraints.c pcmk__expand_tags_in_sets(xmlNode *xml_obj, const pcmk_scheduler_t *scheduler) xml_obj 223 lib/pacemaker/pcmk_sched_constraints.c if (first_named_child(xml_obj, XML_CONS_TAG_RSC_SET) == NULL) { xml_obj 227 lib/pacemaker/pcmk_sched_constraints.c new_xml = copy_xml(xml_obj); xml_obj 245 lib/pacemaker/pcmk_sched_constraints.c ID(xml_obj), ID(xml_rsc)); xml_obj 335 lib/pacemaker/pcmk_sched_constraints.c pcmk__tag_to_set(xmlNode *xml_obj, xmlNode **rsc_set, const char *attr, xml_obj 346 lib/pacemaker/pcmk_sched_constraints.c CRM_CHECK((xml_obj != NULL) && (attr != NULL), return false); xml_obj 348 lib/pacemaker/pcmk_sched_constraints.c cons_id = ID(xml_obj); xml_obj 351 lib/pacemaker/pcmk_sched_constraints.c xml_obj->name); xml_obj 355 lib/pacemaker/pcmk_sched_constraints.c id = crm_element_value(xml_obj, attr); xml_obj 370 lib/pacemaker/pcmk_sched_constraints.c *rsc_set = create_xml_node(xml_obj, XML_CONS_TAG_RSC_SET); xml_obj 391 lib/pacemaker/pcmk_sched_constraints.c *rsc_set = create_xml_node(xml_obj, XML_CONS_TAG_RSC_SET); xml_obj 403 lib/pacemaker/pcmk_sched_constraints.c xml_remove_prop(xml_obj, attr); xml_obj 201 lib/pacemaker/pcmk_sched_location.c unpack_rsc_location(xmlNode *xml_obj, pcmk_resource_t *rsc, const char *role, xml_obj 205 lib/pacemaker/pcmk_sched_location.c const char *rsc_id = crm_element_value(xml_obj, XML_LOC_ATTR_SOURCE); xml_obj 206 lib/pacemaker/pcmk_sched_location.c const char *id = crm_element_value(xml_obj, XML_ATTR_ID); xml_obj 207 lib/pacemaker/pcmk_sched_location.c const char *node = crm_element_value(xml_obj, XML_CIB_TAG_NODE); xml_obj 208 lib/pacemaker/pcmk_sched_location.c const char *discovery = crm_element_value(xml_obj, xml_obj 218 lib/pacemaker/pcmk_sched_location.c score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); xml_obj 238 lib/pacemaker/pcmk_sched_location.c for (xmlNode *rule_xml = first_named_child(xml_obj, XML_TAG_RULE); xml_obj 265 lib/pacemaker/pcmk_sched_location.c role = crm_element_value(xml_obj, XML_RULE_ATTR_ROLE); xml_obj 291 lib/pacemaker/pcmk_sched_location.c unpack_simple_location(xmlNode *xml_obj, pcmk_scheduler_t *scheduler) xml_obj 293 lib/pacemaker/pcmk_sched_location.c const char *id = crm_element_value(xml_obj, XML_ATTR_ID); xml_obj 294 lib/pacemaker/pcmk_sched_location.c const char *value = crm_element_value(xml_obj, XML_LOC_ATTR_SOURCE); xml_obj 300 lib/pacemaker/pcmk_sched_location.c unpack_rsc_location(xml_obj, rsc, NULL, NULL, NULL); xml_obj 303 lib/pacemaker/pcmk_sched_location.c value = crm_element_value(xml_obj, XML_LOC_ATTR_SOURCE_PATTERN); xml_obj 346 lib/pacemaker/pcmk_sched_location.c unpack_rsc_location(xml_obj, r, NULL, NULL, &re_match_data); xml_obj 351 lib/pacemaker/pcmk_sched_location.c unpack_rsc_location(xml_obj, r, NULL, NULL, NULL); xml_obj 367 lib/pacemaker/pcmk_sched_location.c unpack_location_tags(xmlNode *xml_obj, xmlNode **expanded_xml, xml_obj 379 lib/pacemaker/pcmk_sched_location.c CRM_CHECK(xml_obj != NULL, return EINVAL); xml_obj 381 lib/pacemaker/pcmk_sched_location.c id = ID(xml_obj); xml_obj 384 lib/pacemaker/pcmk_sched_location.c xml_obj->name); xml_obj 389 lib/pacemaker/pcmk_sched_location.c *expanded_xml = pcmk__expand_tags_in_sets(xml_obj, scheduler); xml_obj 395 lib/pacemaker/pcmk_sched_location.c rsc_id = crm_element_value(xml_obj, XML_LOC_ATTR_SOURCE); xml_obj 410 lib/pacemaker/pcmk_sched_location.c state = crm_element_value(xml_obj, XML_RULE_ATTR_ROLE); xml_obj 412 lib/pacemaker/pcmk_sched_location.c *expanded_xml = copy_xml(xml_obj); xml_obj 481 lib/pacemaker/pcmk_sched_location.c pcmk__unpack_location(xmlNode *xml_obj, pcmk_scheduler_t *scheduler) xml_obj 489 lib/pacemaker/pcmk_sched_location.c if (unpack_location_tags(xml_obj, &expanded_xml, scheduler) != pcmk_rc_ok) { xml_obj 494 lib/pacemaker/pcmk_sched_location.c orig_xml = xml_obj; xml_obj 495 lib/pacemaker/pcmk_sched_location.c xml_obj = expanded_xml; xml_obj 498 lib/pacemaker/pcmk_sched_location.c for (set = first_named_child(xml_obj, XML_CONS_TAG_RSC_SET); set != NULL; xml_obj 504 lib/pacemaker/pcmk_sched_location.c || (unpack_location_set(xml_obj, set, scheduler) != pcmk_rc_ok)) { xml_obj 515 lib/pacemaker/pcmk_sched_location.c xml_obj = orig_xml; xml_obj 519 lib/pacemaker/pcmk_sched_location.c unpack_simple_location(xml_obj, scheduler); xml_obj 73 lib/pacemaker/pcmk_sched_ordering.c get_ordering_type(const xmlNode *xml_obj) xml_obj 76 lib/pacemaker/pcmk_sched_ordering.c const char *kind = crm_element_value(xml_obj, XML_ORDER_ATTR_KIND); xml_obj 79 lib/pacemaker/pcmk_sched_ordering.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); xml_obj 108 lib/pacemaker/pcmk_sched_ordering.c pcmk__s(ID(xml_obj), "missing ID"), kind); xml_obj 125 lib/pacemaker/pcmk_sched_ordering.c get_ordering_symmetry(const xmlNode *xml_obj, enum pe_order_kind parent_kind, xml_obj 133 lib/pacemaker/pcmk_sched_ordering.c if ((crm_element_value(xml_obj, XML_ORDER_ATTR_KIND) != NULL) xml_obj 134 lib/pacemaker/pcmk_sched_ordering.c || (crm_element_value(xml_obj, XML_RULE_ATTR_SCORE) != NULL)) { xml_obj 135 lib/pacemaker/pcmk_sched_ordering.c kind = get_ordering_type(xml_obj); xml_obj 139 lib/pacemaker/pcmk_sched_ordering.c rc = pcmk__xe_get_bool_attr(xml_obj, XML_CONS_ATTR_SYMMETRICAL, &symmetric); xml_obj 152 lib/pacemaker/pcmk_sched_ordering.c ID(xml_obj)); xml_obj 423 lib/pacemaker/pcmk_sched_ordering.c unpack_simple_rsc_order(xmlNode *xml_obj, pcmk_scheduler_t *scheduler) xml_obj 436 lib/pacemaker/pcmk_sched_ordering.c CRM_CHECK(xml_obj != NULL, return); xml_obj 438 lib/pacemaker/pcmk_sched_ordering.c id = crm_element_value(xml_obj, XML_ATTR_ID); xml_obj 441 lib/pacemaker/pcmk_sched_ordering.c xml_obj->name); xml_obj 445 lib/pacemaker/pcmk_sched_ordering.c rsc_first = get_ordering_resource(xml_obj, XML_ORDER_ATTR_FIRST, xml_obj 452 lib/pacemaker/pcmk_sched_ordering.c rsc_then = get_ordering_resource(xml_obj, XML_ORDER_ATTR_THEN, xml_obj 459 lib/pacemaker/pcmk_sched_ordering.c action_first = crm_element_value(xml_obj, XML_ORDER_ATTR_FIRST_ACTION); xml_obj 464 lib/pacemaker/pcmk_sched_ordering.c action_then = crm_element_value(xml_obj, XML_ORDER_ATTR_THEN_ACTION); xml_obj 469 lib/pacemaker/pcmk_sched_ordering.c kind = get_ordering_type(xml_obj); xml_obj 471 lib/pacemaker/pcmk_sched_ordering.c symmetry = get_ordering_symmetry(xml_obj, kind, NULL); xml_obj 481 lib/pacemaker/pcmk_sched_ordering.c min_required_before = get_minimum_first_instances(rsc_first, xml_obj); xml_obj 894 lib/pacemaker/pcmk_sched_ordering.c unpack_order_tags(xmlNode *xml_obj, xmlNode **expanded_xml, xml_obj 912 lib/pacemaker/pcmk_sched_ordering.c *expanded_xml = pcmk__expand_tags_in_sets(xml_obj, scheduler); xml_obj 918 lib/pacemaker/pcmk_sched_ordering.c id_first = crm_element_value(xml_obj, XML_ORDER_ATTR_FIRST); xml_obj 919 lib/pacemaker/pcmk_sched_ordering.c id_then = crm_element_value(xml_obj, XML_ORDER_ATTR_THEN); xml_obj 927 lib/pacemaker/pcmk_sched_ordering.c "valid resource or tag", ID(xml_obj), id_first); xml_obj 934 lib/pacemaker/pcmk_sched_ordering.c "valid resource or tag", ID(xml_obj), id_then); xml_obj 943 lib/pacemaker/pcmk_sched_ordering.c action_first = crm_element_value(xml_obj, XML_ORDER_ATTR_FIRST_ACTION); xml_obj 944 lib/pacemaker/pcmk_sched_ordering.c action_then = crm_element_value(xml_obj, XML_ORDER_ATTR_THEN_ACTION); xml_obj 946 lib/pacemaker/pcmk_sched_ordering.c *expanded_xml = copy_xml(xml_obj); xml_obj 1000 lib/pacemaker/pcmk_sched_ordering.c pcmk__unpack_ordering(xmlNode *xml_obj, pcmk_scheduler_t *scheduler) xml_obj 1008 lib/pacemaker/pcmk_sched_ordering.c const char *id = crm_element_value(xml_obj, XML_ATTR_ID); xml_obj 1009 lib/pacemaker/pcmk_sched_ordering.c const char *invert = crm_element_value(xml_obj, XML_CONS_ATTR_SYMMETRICAL); xml_obj 1010 lib/pacemaker/pcmk_sched_ordering.c enum pe_order_kind kind = get_ordering_type(xml_obj); xml_obj 1012 lib/pacemaker/pcmk_sched_ordering.c enum ordering_symmetry symmetry = get_ordering_symmetry(xml_obj, kind, xml_obj 1016 lib/pacemaker/pcmk_sched_ordering.c if (unpack_order_tags(xml_obj, &expanded_xml, scheduler) != pcmk_rc_ok) { xml_obj 1020 lib/pacemaker/pcmk_sched_ordering.c orig_xml = xml_obj; xml_obj 1021 lib/pacemaker/pcmk_sched_ordering.c xml_obj = expanded_xml; xml_obj 1025 lib/pacemaker/pcmk_sched_ordering.c for (set = first_named_child(xml_obj, XML_CONS_TAG_RSC_SET); xml_obj 1063 lib/pacemaker/pcmk_sched_ordering.c xml_obj = orig_xml; xml_obj 1068 lib/pacemaker/pcmk_sched_ordering.c return unpack_simple_rsc_order(xml_obj, scheduler); xml_obj 276 lib/pacemaker/pcmk_sched_tickets.c unpack_simple_rsc_ticket(xmlNode *xml_obj, pcmk_scheduler_t *scheduler) xml_obj 279 lib/pacemaker/pcmk_sched_tickets.c const char *ticket_str = crm_element_value(xml_obj, XML_TICKET_ATTR_TICKET); xml_obj 280 lib/pacemaker/pcmk_sched_tickets.c const char *loss_policy = crm_element_value(xml_obj, xml_obj 285 lib/pacemaker/pcmk_sched_tickets.c const char *rsc_id = crm_element_value(xml_obj, XML_COLOC_ATTR_SOURCE); xml_obj 286 lib/pacemaker/pcmk_sched_tickets.c const char *state = crm_element_value(xml_obj, xml_obj 290 lib/pacemaker/pcmk_sched_tickets.c const char *instance = crm_element_value(xml_obj, xml_obj 301 lib/pacemaker/pcmk_sched_tickets.c CRM_CHECK(xml_obj != NULL, return); xml_obj 303 lib/pacemaker/pcmk_sched_tickets.c id = ID(xml_obj); xml_obj 306 lib/pacemaker/pcmk_sched_tickets.c xml_obj->name); xml_obj 358 lib/pacemaker/pcmk_sched_tickets.c unpack_rsc_ticket_tags(xmlNode *xml_obj, xmlNode **expanded_xml, xml_obj 372 lib/pacemaker/pcmk_sched_tickets.c CRM_CHECK(xml_obj != NULL, return EINVAL); xml_obj 374 lib/pacemaker/pcmk_sched_tickets.c id = ID(xml_obj); xml_obj 377 lib/pacemaker/pcmk_sched_tickets.c xml_obj->name); xml_obj 382 lib/pacemaker/pcmk_sched_tickets.c *expanded_xml = pcmk__expand_tags_in_sets(xml_obj, scheduler); xml_obj 388 lib/pacemaker/pcmk_sched_tickets.c rsc_id = crm_element_value(xml_obj, XML_COLOC_ATTR_SOURCE); xml_obj 403 lib/pacemaker/pcmk_sched_tickets.c state = crm_element_value(xml_obj, XML_COLOC_ATTR_SOURCE_ROLE); xml_obj 405 lib/pacemaker/pcmk_sched_tickets.c *expanded_xml = copy_xml(xml_obj); xml_obj 431 lib/pacemaker/pcmk_sched_tickets.c pcmk__unpack_rsc_ticket(xmlNode *xml_obj, pcmk_scheduler_t *scheduler) xml_obj 444 lib/pacemaker/pcmk_sched_tickets.c CRM_CHECK(xml_obj != NULL, return); xml_obj 446 lib/pacemaker/pcmk_sched_tickets.c id = ID(xml_obj); xml_obj 449 lib/pacemaker/pcmk_sched_tickets.c xml_obj->name); xml_obj 457 lib/pacemaker/pcmk_sched_tickets.c ticket_str = crm_element_value(xml_obj, XML_TICKET_ATTR_TICKET); xml_obj 472 lib/pacemaker/pcmk_sched_tickets.c if (unpack_rsc_ticket_tags(xml_obj, &expanded_xml, xml_obj 477 lib/pacemaker/pcmk_sched_tickets.c orig_xml = xml_obj; xml_obj 478 lib/pacemaker/pcmk_sched_tickets.c xml_obj = expanded_xml; xml_obj 481 lib/pacemaker/pcmk_sched_tickets.c for (set = first_named_child(xml_obj, XML_CONS_TAG_RSC_SET); set != NULL; xml_obj 488 lib/pacemaker/pcmk_sched_tickets.c loss_policy = crm_element_value(xml_obj, XML_TICKET_ATTR_LOSS_POLICY); xml_obj 502 lib/pacemaker/pcmk_sched_tickets.c xml_obj = orig_xml; xml_obj 506 lib/pacemaker/pcmk_sched_tickets.c unpack_simple_rsc_ticket(xml_obj, scheduler); xml_obj 368 lib/pengine/bundle.c xmlNode *xml_obj = NULL; xml_obj 375 lib/pengine/bundle.c xml_obj = create_xml_node(xml_ip, XML_TAG_ATTR_SETS); xml_obj 376 lib/pengine/bundle.c crm_xml_set_id(xml_obj, "%s-attributes-%d", xml_obj 379 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "ip", replica->ipaddr); xml_obj 381 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "nic", data->host_network); xml_obj 385 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, xml_obj 389 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "cidr_netmask", "32"); xml_obj 392 lib/pengine/bundle.c xml_obj = create_xml_node(xml_ip, "operations"); xml_obj 393 lib/pengine/bundle.c crm_create_op_xml(xml_obj, ID(xml_ip), PCMK_ACTION_MONITOR, "60s", xml_obj 428 lib/pengine/bundle.c xmlNode *xml_obj = NULL; xml_obj 463 lib/pengine/bundle.c xml_obj = create_xml_node(xml_container, XML_TAG_ATTR_SETS); xml_obj 464 lib/pengine/bundle.c crm_xml_set_id(xml_obj, "%s-attributes-%d", data->prefix, replica->offset); xml_obj 466 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "image", data->image); xml_obj 467 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "allow_pull", XML_BOOLEAN_TRUE); xml_obj 468 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "force_kill", XML_BOOLEAN_FALSE); xml_obj 469 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "reuse", XML_BOOLEAN_FALSE); xml_obj 592 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "run_opts", xml_obj 596 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "mount_points", xml_obj 604 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "run_cmd", xml_obj 607 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "run_cmd", xml_obj 616 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "monitor_cmd", "/bin/true"); xml_obj 625 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "run_cmd", xml_obj 627 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "monitor_cmd", xml_obj 632 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "run_cmd", xml_obj 641 lib/pengine/bundle.c crm_create_nvpair_xml(xml_obj, NULL, "monitor_cmd", "/bin/true"); xml_obj 644 lib/pengine/bundle.c xml_obj = create_xml_node(xml_container, "operations"); xml_obj 645 lib/pengine/bundle.c crm_create_op_xml(xml_obj, ID(xml_container), PCMK_ACTION_MONITOR, "60s", xml_obj 987 lib/pengine/bundle.c xmlNode *xml_obj = NULL; xml_obj 999 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, PE__CONTAINER_AGENT_DOCKER_S); xml_obj 1000 lib/pengine/bundle.c if (xml_obj != NULL) { xml_obj 1003 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, PE__CONTAINER_AGENT_RKT_S); xml_obj 1004 lib/pengine/bundle.c if (xml_obj != NULL) { xml_obj 1007 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, PE__CONTAINER_AGENT_PODMAN_S); xml_obj 1008 lib/pengine/bundle.c if (xml_obj != NULL) { xml_obj 1017 lib/pengine/bundle.c value = crm_element_value(xml_obj, PCMK_META_PROMOTED_MAX); xml_obj 1020 lib/pengine/bundle.c value = crm_element_value(xml_obj, "masters"); xml_obj 1025 lib/pengine/bundle.c value = crm_element_value(xml_obj, "replicas"); xml_obj 1037 lib/pengine/bundle.c value = crm_element_value(xml_obj, "replicas-per-host"); xml_obj 1043 lib/pengine/bundle.c bundle_data->container_command = crm_element_value_copy(xml_obj, "run-command"); xml_obj 1044 lib/pengine/bundle.c bundle_data->launcher_options = crm_element_value_copy(xml_obj, "options"); xml_obj 1045 lib/pengine/bundle.c bundle_data->image = crm_element_value_copy(xml_obj, "image"); xml_obj 1046 lib/pengine/bundle.c bundle_data->container_network = crm_element_value_copy(xml_obj, "network"); xml_obj 1048 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, "network"); xml_obj 1049 lib/pengine/bundle.c if(xml_obj) { xml_obj 1051 lib/pengine/bundle.c bundle_data->ip_range_start = crm_element_value_copy(xml_obj, "ip-range-start"); xml_obj 1052 lib/pengine/bundle.c bundle_data->host_netmask = crm_element_value_copy(xml_obj, "host-netmask"); xml_obj 1053 lib/pengine/bundle.c bundle_data->host_network = crm_element_value_copy(xml_obj, "host-interface"); xml_obj 1054 lib/pengine/bundle.c bundle_data->control_port = crm_element_value_copy(xml_obj, "control-port"); xml_obj 1055 lib/pengine/bundle.c value = crm_element_value(xml_obj, "add-host"); xml_obj 1060 lib/pengine/bundle.c for (xmlNode *xml_child = pcmk__xe_first_child(xml_obj); xml_child != NULL; xml_obj 1085 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, "storage"); xml_obj 1086 lib/pengine/bundle.c for (xmlNode *xml_child = pcmk__xe_first_child(xml_obj); xml_child != NULL; xml_obj 1110 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, "primitive"); xml_obj 1111 lib/pengine/bundle.c if (xml_obj && valid_network(bundle_data)) { xml_obj 1152 lib/pengine/bundle.c add_node_copy(xml_resource, xml_obj); xml_obj 1154 lib/pengine/bundle.c } else if(xml_obj) { xml_obj 1156 lib/pengine/bundle.c rsc->id, ID(xml_obj)); xml_obj 329 lib/pengine/clone.c xmlNode *xml_obj = rsc->xml; xml_obj 390 lib/pengine/clone.c for (a_child = pcmk__xe_first_child(xml_obj); a_child != NULL; xml_obj 256 lib/pengine/complex.c unpack_template(xmlNode *xml_obj, xmlNode **expanded_xml, xml_obj 269 lib/pengine/complex.c if (xml_obj == NULL) { xml_obj 274 lib/pengine/complex.c template_ref = crm_element_value(xml_obj, XML_CIB_TAG_RSC_TEMPLATE); xml_obj 279 lib/pengine/complex.c id = ID(xml_obj); xml_obj 281 lib/pengine/complex.c pe_err("'%s' object must have a id", xml_obj->name); xml_obj 305 lib/pengine/complex.c xmlNodeSetName(new_xml, xml_obj->name); xml_obj 308 lib/pengine/complex.c clone = crm_element_value(xml_obj, XML_RSC_ATTR_INCARNATION); xml_obj 315 lib/pengine/complex.c for (child_xml = pcmk__xe_first_child(xml_obj); child_xml != NULL; xml_obj 372 lib/pengine/complex.c add_template_rsc(xmlNode *xml_obj, pcmk_scheduler_t *scheduler) xml_obj 377 lib/pengine/complex.c if (xml_obj == NULL) { xml_obj 382 lib/pengine/complex.c template_ref = crm_element_value(xml_obj, XML_CIB_TAG_RSC_TEMPLATE); xml_obj 387 lib/pengine/complex.c id = ID(xml_obj); xml_obj 389 lib/pengine/complex.c pe_err("'%s' object must have a id", xml_obj->name); xml_obj 603 lib/pengine/complex.c pe__unpack_resource(xmlNode *xml_obj, pcmk_resource_t **rsc, xml_obj 623 lib/pengine/complex.c CRM_CHECK((xml_obj != NULL) && (scheduler != NULL), xml_obj 629 lib/pengine/complex.c crm_log_xml_trace(xml_obj, "[raw XML]"); xml_obj 631 lib/pengine/complex.c id = crm_element_value(xml_obj, XML_ATTR_ID); xml_obj 634 lib/pengine/complex.c xml_obj->name); xml_obj 638 lib/pengine/complex.c if (unpack_template(xml_obj, &expanded_xml, scheduler) == FALSE) { xml_obj 652 lib/pengine/complex.c (*rsc)->orig_xml = xml_obj; xml_obj 655 lib/pengine/complex.c (*rsc)->xml = xml_obj; xml_obj 909 lib/pengine/complex.c if (add_template_rsc(xml_obj, scheduler) == FALSE) { xml_obj 182 lib/pengine/group.c xmlNode *xml_obj = rsc->xml; xml_obj 201 lib/pengine/group.c for (xml_native_rsc = pcmk__xe_first_child(xml_obj); xml_native_rsc != NULL; xml_obj 22 lib/pengine/pe_actions.c static void unpack_operation(pcmk_action_t *action, const xmlNode *xml_obj, xml_obj 567 lib/pengine/pe_actions.c unpack_interval_origin(const char *value, const xmlNode *xml_obj, xml_obj 585 lib/pengine/pe_actions.c (ID(xml_obj)? ID(xml_obj) : "(missing ID)"), value); xml_obj 600 lib/pengine/pe_actions.c (ID(xml_obj)? ID(xml_obj) : "(unspecified)")); xml_obj 1083 lib/pengine/pe_actions.c unpack_operation(pcmk_action_t *action, const xmlNode *xml_obj, xml_obj 1089 lib/pengine/pe_actions.c action->task, interval_ms, xml_obj); xml_obj 92 lib/pengine/pe_status_private.h gboolean pe__unpack_resource(xmlNode *xml_obj, pcmk_resource_t **rsc, xml_obj 450 lib/pengine/rules.c make_pairs(xmlNode *top, const xmlNode *xml_obj, const char *set_name, xml_obj 455 lib/pengine/rules.c if (xml_obj == NULL) { xml_obj 458 lib/pengine/rules.c for (xmlNode *attr_set = pcmk__xe_first_child(xml_obj); attr_set != NULL; xml_obj 500 lib/pengine/rules.c pe_eval_nvpairs(xmlNode *top, const xmlNode *xml_obj, const char *set_name, xml_obj 505 lib/pengine/rules.c GList *pairs = make_pairs(top, xml_obj, set_name, always_first, overwrite); xml_obj 535 lib/pengine/rules.c pe_unpack_nvpairs(xmlNode *top, const xmlNode *xml_obj, const char *set_name, xml_obj 549 lib/pengine/rules.c pe_eval_nvpairs(top, xml_obj, set_name, &rule_data, hash, xml_obj 1300 lib/pengine/rules.c unpack_instance_attributes(xmlNode *top, xmlNode *xml_obj, const char *set_name, xml_obj 1314 lib/pengine/rules.c pe_eval_nvpairs(top, xml_obj, set_name, &rule_data, hash, always_first, xml_obj 74 lib/pengine/unpack.c static void add_node_attrs(const xmlNode *xml_obj, pcmk_node_t *node, xml_obj 514 lib/pengine/unpack.c expand_remote_rsc_meta(xmlNode *xml_obj, xmlNode *parent, pcmk_scheduler_t *data) xml_obj 519 lib/pengine/unpack.c const char *container_id = ID(xml_obj); xml_obj 527 lib/pengine/unpack.c for (attr_set = pcmk__xe_first_child(xml_obj); attr_set != NULL; xml_obj 599 lib/pengine/unpack.c xmlNode *xml_obj = NULL; xml_obj 606 lib/pengine/unpack.c for (xml_obj = pcmk__xe_first_child(xml_nodes); xml_obj != NULL; xml_obj 607 lib/pengine/unpack.c xml_obj = pcmk__xe_next(xml_obj)) { xml_obj 609 lib/pengine/unpack.c if (pcmk__str_eq((const char *)xml_obj->name, XML_CIB_TAG_NODE, pcmk__str_none)) { xml_obj 612 lib/pengine/unpack.c id = crm_element_value(xml_obj, XML_ATTR_ID); xml_obj 613 lib/pengine/unpack.c uname = crm_element_value(xml_obj, XML_ATTR_UNAME); xml_obj 614 lib/pengine/unpack.c type = crm_element_value(xml_obj, XML_ATTR_TYPE); xml_obj 615 lib/pengine/unpack.c score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); xml_obj 631 lib/pengine/unpack.c add_node_attrs(xml_obj, new_node, FALSE, scheduler); xml_obj 633 lib/pengine/unpack.c crm_trace("Done with node %s", crm_element_value(xml_obj, XML_ATTR_UNAME)); xml_obj 676 lib/pengine/unpack.c xmlNode *xml_obj = NULL; xml_obj 681 lib/pengine/unpack.c for (xml_obj = pcmk__xe_first_child(xml_resources); xml_obj != NULL; xml_obj 682 lib/pengine/unpack.c xml_obj = pcmk__xe_next(xml_obj)) { xml_obj 689 lib/pengine/unpack.c if (xml_contains_remote_node(xml_obj)) { xml_obj 690 lib/pengine/unpack.c new_node_id = ID(xml_obj); xml_obj 696 lib/pengine/unpack.c new_node_id, ID(xml_obj)); xml_obj 706 lib/pengine/unpack.c if (pcmk__str_eq((const char *)xml_obj->name, XML_CIB_TAG_RESOURCE, pcmk__str_none)) { xml_obj 711 lib/pengine/unpack.c new_node_id = expand_remote_rsc_meta(xml_obj, xml_resources, xml_obj 716 lib/pengine/unpack.c new_node_id, ID(xml_obj)); xml_obj 726 lib/pengine/unpack.c if (pcmk__str_eq((const char *)xml_obj->name, XML_CIB_TAG_GROUP, pcmk__str_none)) { xml_obj 728 lib/pengine/unpack.c for (xml_obj2 = pcmk__xe_first_child(xml_obj); xml_obj2 != NULL; xml_obj 737 lib/pengine/unpack.c new_node_id, ID(xml_obj2), ID(xml_obj)); xml_obj 818 lib/pengine/unpack.c xmlNode *xml_obj = NULL; xml_obj 823 lib/pengine/unpack.c for (xml_obj = pcmk__xe_first_child(xml_resources); xml_obj != NULL; xml_obj 824 lib/pengine/unpack.c xml_obj = pcmk__xe_next(xml_obj)) { xml_obj 827 lib/pengine/unpack.c const char *id = ID(xml_obj); xml_obj 831 lib/pengine/unpack.c xml_obj->name); xml_obj 835 lib/pengine/unpack.c if (pcmk__str_eq((const char *) xml_obj->name, XML_CIB_TAG_RSC_TEMPLATE, xml_obj 847 lib/pengine/unpack.c xml_obj->name, id); xml_obj 848 lib/pengine/unpack.c if (pe__unpack_resource(xml_obj, &new_rsc, NULL, xml_obj 856 lib/pengine/unpack.c xml_obj->name, id); xml_obj 1003 lib/pengine/unpack.c xmlNode *xml_obj = NULL; xml_obj 1005 lib/pengine/unpack.c for (xml_obj = pcmk__xe_first_child(xml_tickets); xml_obj != NULL; xml_obj 1006 lib/pengine/unpack.c xml_obj = pcmk__xe_next(xml_obj)) { xml_obj 1008 lib/pengine/unpack.c if (!pcmk__str_eq((const char *)xml_obj->name, XML_CIB_TAG_TICKET_STATE, pcmk__str_none)) { xml_obj 1011 lib/pengine/unpack.c unpack_ticket_state(xml_obj, scheduler); xml_obj 4887 lib/pengine/unpack.c add_node_attrs(const xmlNode *xml_obj, pcmk_node_t *node, bool overwrite, xml_obj 4922 lib/pengine/unpack.c pe__unpack_dataset_nvpairs(xml_obj, XML_TAG_ATTR_SETS, &rule_data, xml_obj 4926 lib/pengine/unpack.c pe__unpack_dataset_nvpairs(xml_obj, XML_TAG_UTILIZATION, &rule_data, xml_obj 707 lib/pengine/utils.c pe__unpack_dataset_nvpairs(const xmlNode *xml_obj, const char *set_name, xml_obj 714 lib/pengine/utils.c pe_eval_nvpairs(scheduler->input, xml_obj, set_name, rule_data, hash, xml_obj 21 tools/crm_resource_print.c print_constraint(xmlNode *xml_obj, void *userdata) xml_obj 26 tools/crm_resource_print.c const char *id = crm_element_value(xml_obj, XML_ATTR_ID); xml_obj 33 tools/crm_resource_print.c lifetime = first_named_child(xml_obj, "lifetime"); xml_obj 38 tools/crm_resource_print.c if (!pcmk__xe_is(xml_obj, XML_CONS_TAG_RSC_DEPEND)) { xml_obj 43 tools/crm_resource_print.c xml_obj->name, xml_obj 44 tools/crm_resource_print.c cons_string(crm_element_value(xml_obj, XML_ATTR_ID)), xml_obj 45 tools/crm_resource_print.c cons_string(crm_element_value(xml_obj, XML_COLOC_ATTR_SOURCE)), xml_obj 46 tools/crm_resource_print.c cons_string(crm_element_value(xml_obj, XML_COLOC_ATTR_TARGET)), xml_obj 47 tools/crm_resource_print.c cons_string(crm_element_value(xml_obj, XML_RULE_ATTR_SCORE)), xml_obj 48 tools/crm_resource_print.c cons_string(crm_element_value(xml_obj, XML_COLOC_ATTR_SOURCE_ROLE)), xml_obj 49 tools/crm_resource_print.c cons_string(crm_element_value(xml_obj, XML_COLOC_ATTR_TARGET_ROLE))); xml_obj 338 tools/crm_resource_runtime.c xmlNode *xml_obj = NULL; xml_obj 369 tools/crm_resource_runtime.c xml_obj = create_xml_node(xml_top, attr_set_type); xml_obj 370 tools/crm_resource_runtime.c crm_xml_add(xml_obj, XML_ATTR_ID, rsc_attr_set); xml_obj 380 tools/crm_resource_runtime.c xml_obj = crm_create_nvpair_xml(xml_obj, rsc_attr_id, attr_name, xml_obj 383 tools/crm_resource_runtime.c xml_top = xml_obj; xml_obj 486 tools/crm_resource_runtime.c xmlNode *xml_obj = NULL; xml_obj 514 tools/crm_resource_runtime.c xml_obj = crm_create_nvpair_xml(NULL, rsc_attr_id, attr_name, NULL); xml_obj 515 tools/crm_resource_runtime.c crm_log_xml_debug(xml_obj, "Delete"); xml_obj 518 tools/crm_resource_runtime.c rc = cib->cmds->remove(cib, XML_CIB_TAG_RESOURCES, xml_obj, xml_obj 532 tools/crm_resource_runtime.c free_xml(xml_obj); xml_obj 595 tools/crm_ticket.c xmlNode *xml_obj = NULL; xml_obj 598 tools/crm_ticket.c xml_obj = create_xml_node(xml_top, XML_CIB_TAG_TICKETS); xml_obj 599 tools/crm_ticket.c ticket_state_xml = create_xml_node(xml_obj, XML_CIB_TAG_TICKET_STATE);