xml 58 attrd/commands.c void attrd_peer_update(crm_node_t *peer, xmlNode *xml, const char *host, bool filter); xml 59 attrd/commands.c void attrd_peer_sync(crm_node_t *peer, xmlNode *xml); xml 115 attrd/commands.c xmlNode *xml = create_xml_node(parent, __FUNCTION__); xml 117 attrd/commands.c crm_xml_add(xml, F_ATTRD_ATTRIBUTE, name); xml 118 attrd/commands.c crm_xml_add(xml, F_ATTRD_SET, set); xml 119 attrd/commands.c crm_xml_add(xml, F_ATTRD_KEY, uuid); xml 120 attrd/commands.c crm_xml_add(xml, F_ATTRD_USER, user); xml 121 attrd/commands.c crm_xml_add(xml, F_ATTRD_HOST, peer); xml 122 attrd/commands.c crm_xml_add_int(xml, F_ATTRD_HOST_ID, peerid); xml 123 attrd/commands.c crm_xml_add(xml, F_ATTRD_VALUE, value); xml 124 attrd/commands.c crm_xml_add_int(xml, F_ATTRD_DAMPEN, timeout_ms/1000); xml 125 attrd/commands.c crm_xml_add_int(xml, F_ATTRD_IS_PRIVATE, is_private); xml 127 attrd/commands.c return xml; xml 131 attrd/commands.c create_attribute(xmlNode *xml) xml 134 attrd/commands.c const char *value = crm_element_value(xml, F_ATTRD_DAMPEN); xml 137 attrd/commands.c a->id = crm_element_value_copy(xml, F_ATTRD_ATTRIBUTE); xml 138 attrd/commands.c a->set = crm_element_value_copy(xml, F_ATTRD_SET); xml 139 attrd/commands.c a->uuid = crm_element_value_copy(xml, F_ATTRD_KEY); xml 142 attrd/commands.c crm_element_value_int(xml, F_ATTRD_IS_PRIVATE, &a->is_private); xml 146 attrd/commands.c a->user = crm_element_value_copy(xml, F_ATTRD_USER); xml 177 attrd/commands.c attrd_client_peer_remove(const char *client_name, xmlNode *xml) xml 179 attrd/commands.c const char *host = crm_element_value(xml, F_ATTRD_HOST); xml 184 attrd/commands.c send_attrd_message(NULL, xml); /* ends up at attrd_peer_message() */ xml 200 attrd/commands.c attrd_client_update(xmlNode *xml) xml 203 attrd/commands.c char *host = crm_element_value_copy(xml, F_ATTRD_HOST); xml 204 attrd/commands.c const char *attr = crm_element_value(xml, F_ATTRD_ATTRIBUTE); xml 205 attrd/commands.c const char *value = crm_element_value(xml, F_ATTRD_VALUE); xml 206 attrd/commands.c const char *regex = crm_element_value(xml, F_ATTRD_REGEX); xml 224 attrd/commands.c crm_xml_add(xml, F_ATTRD_ATTRIBUTE, attr); xml 225 attrd/commands.c send_attrd_message(NULL, xml); xml 244 attrd/commands.c crm_xml_add(xml, F_ATTRD_HOST, host); xml 245 attrd/commands.c crm_xml_add_int(xml, F_ATTRD_HOST_ID, attrd_cluster->nodeid); xml 262 attrd/commands.c crm_xml_add_int(xml, F_ATTRD_VALUE, int_value); xml 265 attrd/commands.c value = crm_element_value(xml, F_ATTRD_VALUE); xml 279 attrd/commands.c send_attrd_message(NULL, xml); /* ends up at attrd_peer_message() */ xml 289 attrd/commands.c attrd_client_clear_failure(xmlNode *xml) xml 300 attrd/commands.c send_attrd_message(NULL, xml); xml 305 attrd/commands.c const char *rsc = crm_element_value(xml, F_ATTRD_RESOURCE); xml 306 attrd/commands.c const char *op = crm_element_value(xml, F_ATTRD_OPERATION); xml 307 attrd/commands.c const char *interval_s = crm_element_value(xml, F_ATTRD_INTERVAL); xml 310 attrd/commands.c crm_xml_add(xml, F_ATTRD_TASK, ATTRD_OP_UPDATE); xml 327 attrd/commands.c crm_xml_add(xml, F_ATTRD_REGEX, pattern); xml 331 attrd/commands.c crm_xml_add(xml, F_ATTRD_REGEX, ATTRD_RE_CLEAR_ALL); xml 335 attrd/commands.c if (crm_element_value(xml, F_ATTRD_ATTRIBUTE)) { xml 336 attrd/commands.c crm_xml_replace(xml, F_ATTRD_ATTRIBUTE, NULL); xml 338 attrd/commands.c if (crm_element_value(xml, F_ATTRD_VALUE)) { xml 339 attrd/commands.c crm_xml_replace(xml, F_ATTRD_VALUE, NULL); xml 342 attrd/commands.c attrd_client_update(xml); xml 490 attrd/commands.c attrd_peer_clear_failure(crm_node_t *peer, xmlNode *xml) xml 492 attrd/commands.c const char *rsc = crm_element_value(xml, F_ATTRD_RESOURCE); xml 493 attrd/commands.c const char *host = crm_element_value(xml, F_ATTRD_HOST); xml 494 attrd/commands.c const char *op = crm_element_value(xml, F_ATTRD_OPERATION); xml 495 attrd/commands.c const char *interval_s = crm_element_value(xml, F_ATTRD_INTERVAL); xml 507 attrd/commands.c crm_xml_add(xml, F_ATTRD_TASK, ATTRD_OP_UPDATE); xml 510 attrd/commands.c if (crm_element_value(xml, F_ATTRD_VALUE)) { xml 511 attrd/commands.c crm_xml_replace(xml, F_ATTRD_VALUE, NULL); xml 519 attrd/commands.c crm_xml_add(xml, F_ATTRD_ATTRIBUTE, attr); xml 520 attrd/commands.c attrd_peer_update(peer, xml, host, FALSE); xml 527 attrd/commands.c attrd_peer_message(crm_node_t *peer, xmlNode *xml) xml 530 attrd/commands.c const char *v = crm_element_value(xml, F_ATTRD_VERSION); xml 531 attrd/commands.c const char *op = crm_element_value(xml, F_ATTRD_TASK); xml 532 attrd/commands.c const char *election_op = crm_element_value(xml, F_CRM_TASK); xml 533 attrd/commands.c const char *host = crm_element_value(xml, F_ATTRD_HOST); xml 538 attrd/commands.c crm_xml_add(xml, F_CRM_HOST_FROM, peer->uname); xml 539 attrd/commands.c rc = election_count_vote(writer, xml, TRUE); xml 559 attrd/commands.c const char *name = crm_element_value(xml, F_ATTRD_ATTRIBUTE); xml 562 attrd/commands.c attrd_peer_update(peer, xml, host, FALSE); xml 565 attrd/commands.c const char *name = crm_element_value(xml, F_ATTRD_ATTRIBUTE); xml 585 attrd/commands.c crm_element_value_int(xml, F_ATTRD_WRITER, &peer_state); xml 605 attrd/commands.c attrd_peer_update(peer, xml, host, FALSE); xml 608 attrd/commands.c attrd_peer_sync(peer, xml); xml 617 attrd/commands.c attrd_peer_clear_failure(peer, xml); xml 624 attrd/commands.c for (child = __xml_first_child(xml); child != NULL; child = __xml_next(child)) { xml 632 attrd/commands.c attrd_peer_sync(crm_node_t *peer, xmlNode *xml) xml 699 attrd/commands.c attrd_lookup_or_create_value(GHashTable *values, const char *host, xmlNode *xml) xml 704 attrd/commands.c crm_element_value_int(xml, F_ATTRD_IS_REMOTE, &is_remote); xml 733 attrd/commands.c attrd_peer_update(crm_node_t *peer, xmlNode *xml, const char *host, bool filter) xml 739 attrd/commands.c const char *op = crm_element_value(xml, F_ATTRD_TASK); xml 740 attrd/commands.c const char *attr = crm_element_value(xml, F_ATTRD_ATTRIBUTE); xml 741 attrd/commands.c const char *value = crm_element_value(xml, F_ATTRD_VALUE); xml 755 attrd/commands.c a = create_attribute(xml); xml 764 attrd/commands.c const char *dvalue = crm_element_value(xml, F_ATTRD_DAMPEN); xml 810 attrd/commands.c xml_remove_prop(xml, F_ATTRD_HOST_ID); xml 813 attrd/commands.c attrd_peer_update(peer, xml, host, filter); xml 820 attrd/commands.c v = attrd_lookup_or_create_value(a->values, host, xml); xml 862 attrd/commands.c && (crm_element_value_int(xml, F_ATTRD_HOST_ID, (int*)&v->nodeid) == 0)) { xml 57 attrd/internal.h void attrd_client_peer_remove(const char *client_name, xmlNode *xml); xml 58 attrd/internal.h void attrd_client_clear_failure(xmlNode *xml); xml 59 attrd/internal.h void attrd_client_update(xmlNode *xml); xml 239 attrd/legacy.c local_clear_failure(xmlNode *xml) xml 241 attrd/legacy.c const char *rsc = crm_element_value(xml, F_ATTRD_RESOURCE); xml 243 attrd/legacy.c const char *op = crm_element_value(xml, F_ATTRD_OPERATION); xml 244 attrd/legacy.c const char *interval_s = crm_element_value(xml, F_ATTRD_INTERVAL); xml 258 attrd/legacy.c if (crm_element_value(xml, F_ATTRD_VALUE)) { xml 259 attrd/legacy.c crm_xml_replace(xml, F_ATTRD_VALUE, NULL); xml 266 attrd/legacy.c update_local_attr(xml, hash_entry); xml 337 attrd/legacy.c remote_clear_failure(xmlNode *xml) xml 339 attrd/legacy.c const char *rsc = crm_element_value(xml, F_ATTRD_RESOURCE); xml 340 attrd/legacy.c const char *host = crm_element_value(xml, F_ATTRD_HOST); xml 341 attrd/legacy.c const char *op = crm_element_value(xml, F_ATTRD_OPERATION); xml 378 attrd/legacy.c const char *interval_s = crm_element_value(xml, F_ATTRD_INTERVAL); xml 398 attrd/legacy.c process_xml_request(xmlNode *xml) xml 401 attrd/legacy.c const char *from = crm_element_value(xml, F_ORIG); xml 402 attrd/legacy.c const char *op = crm_element_value(xml, F_ATTRD_TASK); xml 403 attrd/legacy.c const char *host = crm_element_value(xml, F_ATTRD_HOST); xml 404 attrd/legacy.c const char *ignore = crm_element_value(xml, F_ATTRD_IGNORE_LOCALLY); xml 408 attrd/legacy.c attrd_local_callback(xml); xml 417 attrd/legacy.c local_clear_failure(xml); xml 421 attrd/legacy.c hash_entry = find_hash_entry(xml); xml 449 attrd/legacy.c xmlNode *xml = convert_ha_message(NULL, msg, __FUNCTION__); xml 451 attrd/legacy.c process_xml_request(xml); xml 452 attrd/legacy.c free_xml(xml); xml 464 attrd/legacy.c xmlNode *xml = NULL; xml 472 attrd/legacy.c xml = string2xml(data); xml 473 attrd/legacy.c if (xml == NULL) { xml 478 attrd/legacy.c if (xml != NULL) { xml 480 attrd/legacy.c crm_xml_add(xml, F_ORIG, from); xml 481 attrd/legacy.c process_xml_request(xml); xml 482 attrd/legacy.c free_xml(xml); xml 58 attrd/main.c xmlNode *xml = NULL; xml 67 attrd/main.c xml = string2xml(data); xml 70 attrd/main.c if (xml == NULL) { xml 75 attrd/main.c attrd_peer_message(peer, xml); xml 78 attrd/main.c free_xml(xml); xml 238 attrd/main.c xmlNode *xml = crm_ipcs_recv(client, data, size, &id, &flags); xml 241 attrd/main.c if (xml == NULL) { xml 247 attrd/main.c crm_acl_get_set_user(xml, F_ATTRD_USER, client->user); xml 251 attrd/main.c crm_log_xml_trace(xml, __FUNCTION__); xml 253 attrd/main.c op = crm_element_value(xml, F_ATTRD_TASK); xml 256 attrd/main.c const char *value = crm_element_value(xml, F_ORIG); xml 262 attrd/main.c attrd_client_peer_remove(client->name, xml); xml 266 attrd/main.c attrd_client_clear_failure(xml); xml 270 attrd/main.c attrd_client_update(xml); xml 274 attrd/main.c attrd_client_update(xml); xml 278 attrd/main.c attrd_client_update(xml); xml 286 attrd/main.c attrd_client_query(client, id, flags, xml); xml 293 attrd/main.c free_xml(xml); xml 1433 cib/callbacks.c xmlNode *xml = convert_ha_message(NULL, msg, __FUNCTION__); xml 1435 cib/callbacks.c cib_peer_callback(xml, private_data); xml 1436 cib/callbacks.c free_xml(xml); xml 380 cib/main.c xmlNode *xml = NULL; xml 388 cib/main.c xml = string2xml(data); xml 389 cib/main.c if (xml == NULL) { xml 394 cib/main.c crm_xml_add(xml, F_ORIG, from); xml 396 cib/main.c cib_peer_callback(xml, NULL); xml 399 cib/main.c free_xml(xml); xml 138 cib/notify.c cib_notify_send(xmlNode * xml) xml 143 cib/notify.c ssize_t rc = crm_ipc_prepare(0, xml, &iov, 0); xml 148 cib/notify.c update.msg = xml; xml 221 crmd/callbacks.c const char *task = crm_element_value(down->xml, XML_LRM_ATTR_TASK); xml 50 crmd/corosync.c xmlNode *xml = NULL; xml 62 crmd/corosync.c xml = string2xml(data); xml 63 crmd/corosync.c if (xml == NULL) { xml 71 crmd/corosync.c seq_s = crm_element_value(xml, "id"); xml 80 crmd/corosync.c const char *votes = crm_element_value(xml, "expected"); xml 83 crmd/corosync.c crm_log_xml_err(xml, "Invalid quorum/membership update"); xml 101 crmd/corosync.c crm_xml_add(xml, F_ORIG, from); xml 120 crmd/corosync.c crmd_ha_msg_filter(xml); xml 137 crmd/corosync.c free_xml(xml); xml 168 crmd/crmd_lrm.h void remote_ra_process_pseudo(xmlNode *xml); xml 170 crmd/crmd_lrm.h void remote_ra_process_maintenance_nodes(xmlNode *xml); xml 29 crmd/crmd_messages.h xmlNode *xml; xml 469 crmd/fsa.c crm_log_xml_trace(ha_input->xml, "FSA message data"); xml 167 crmd/fsa_proto.h oc_ed_t event, const oc_ev_membership_t * oc, xmlNode * xml); xml 213 crmd/heartbeat.c oc_ed_t event, const oc_ev_membership_t * oc, xmlNode * xml) xml 323 crmd/join_dc.c generation = join_ack->xml; xml 370 crmd/join_dc.c max_generation_xml = copy_xml(join_ack->xml); xml 560 crmd/join_dc.c fsa_cib_update(XML_CIB_TAG_STATUS, join_ack->xml, xml 565 crmd/join_dc.c fsa_cib_update(XML_CIB_TAG_STATUS, join_ack->xml, xml 296 crmd/lrm.c lrmd_event_data_t *op = construct_op(lrm_state, input->xml, rsc_id, task); xml 888 crmd/lrm.c op = construct_op(lrm_state, input->xml, rsc_id, CRMD_ACTION_DELETE); xml 1486 crmd/lrm.c if (input->xml != NULL) { xml 1488 crmd/lrm.c target_node = crm_element_value(input->xml, XML_LRM_ATTR_TARGET); xml 1503 crmd/lrm.c synthesize_lrmd_failure(NULL, input->xml, PCMK_OCF_CONNECTION_DIED); xml 1533 crmd/lrm.c xmlNode *xml_rsc = find_xml_node(input->xml, XML_CIB_TAG_RESOURCE, TRUE); xml 1546 crmd/lrm.c op = construct_op(lrm_state, input->xml, ID(xml_rsc), "asyncmon"); xml 1567 crmd/lrm.c rsc = get_lrm_resource(lrm_state, xml_rsc, input->xml, create_rsc); xml 1583 crmd/lrm.c } else if (input->xml != NULL) { xml 1584 crmd/lrm.c operation = crm_element_value(input->xml, XML_LRM_ATTR_TASK); xml 1646 crmd/lrm.c xmlNode *xml_rsc = find_xml_node(input->xml, XML_CIB_TAG_RESOURCE, TRUE); xml 1650 crmd/lrm.c params = find_xml_node(input->xml, XML_TAG_ATTRS, TRUE); xml 1657 crmd/lrm.c synthesize_lrmd_failure(lrm_state, input->xml, PCMK_OCF_CONNECTION_DIED); xml 1661 crmd/lrm.c rsc = get_lrm_resource(lrm_state, xml_rsc, input->xml, create_rsc); xml 1668 crmd/lrm.c synthesize_lrmd_failure(lrm_state, input->xml, PCMK_OCF_NOT_CONFIGURED); xml 1671 crmd/lrm.c crm_notice("Not creating resource for a %s event: %s", operation, ID(input->xml)); xml 1687 crmd/lrm.c CRM_CHECK(params != NULL, crm_log_xml_warn(input->xml, "Bad command"); xml 1702 crmd/lrm.c CRM_CHECK(op_task != NULL, crm_log_xml_warn(input->xml, "Bad command"); xml 1704 crmd/lrm.c CRM_CHECK(op_interval != NULL, crm_log_xml_warn(input->xml, "Bad command"); xml 1769 crmd/lrm.c op = construct_op(lrm_state, input->xml, rsc->id, operation); xml 1790 crmd/lrm.c do_lrm_rsc_op(lrm_state, rsc, operation, input->xml, input->msg); xml 541 crmd/messages.c xmlNode *xml = NULL; xml 553 crmd/messages.c xml = get_message_xml(client_msg, F_CRM_DATA); xml 554 crmd/messages.c auth_result = process_hello_message(xml, &client_name, &major_version, &minor_version); xml 882 crmd/messages.c xmlNode *xml = get_message_xml(stored_msg, F_CRM_DATA); xml 884 crmd/messages.c remote_ra_process_maintenance_nodes(xml); xml 988 crmd/messages.c fsa_input.xml = get_message_xml(msg, F_CRM_DATA); xml 1021 crmd/messages.c input_copy->xml = get_message_xml(input_copy->msg, F_CRM_DATA); xml 227 crmd/pengine.c force_local_option(xmlNode *xml, const char *attr_name, const char *attr_value) xml 240 crmd/pengine.c xpathObj = xpath_search(xml, xpath_string); xml 258 crmd/pengine.c configuration = find_entity(xml, XML_CIB_TAG_CONFIGURATION, NULL); xml 260 crmd/pengine.c configuration = create_xml_node(xml, XML_CIB_TAG_CONFIGURATION); xml 274 crmd/pengine.c xml = create_xml_node(cluster_property_set, XML_CIB_TAG_NVPAIR); xml 276 crmd/pengine.c crm_xml_set_id(xml, "%s-%s", CIB_OPTIONS_FIRST, attr_name); xml 277 crmd/pengine.c crm_xml_add(xml, XML_NVPAIR_ATTR_NAME, attr_name); xml 278 crmd/pengine.c crm_xml_add(xml, XML_NVPAIR_ATTR_VALUE, attr_value); xml 1160 crmd/remote_lrmd_ra.c remote_ra_process_pseudo(xmlNode *xml) xml 1162 crmd/remote_lrmd_ra.c xmlXPathObjectPtr search = xpath_search(xml, XPATH_PSEUDO_FENCE); xml 1229 crmd/remote_lrmd_ra.c remote_ra_process_maintenance_nodes(xmlNode *xml) xml 1231 crmd/remote_lrmd_ra.c xmlXPathObjectPtr search = xpath_search(xml, XPATH_PSEUDO_MAINTENANCE); xml 56 crmd/te_actions.c const char *task = crm_element_value(pseudo->xml, XML_LRM_ATTR_TASK); xml 71 crmd/te_actions.c cmd = create_request(task, pseudo->xml, node->uname, xml 77 crmd/te_actions.c remote_ra_process_maintenance_nodes(pseudo->xml); xml 80 crmd/te_actions.c remote_ra_process_pseudo(pseudo->xml); xml 84 crmd/te_actions.c crm_element_value(pseudo->xml, XML_LRM_ATTR_TASK_KEY)); xml 171 crmd/te_actions.c id = ID(action->xml); xml 172 crmd/te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 173 crmd/te_actions.c uuid = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 182 crmd/te_actions.c crm_log_xml_warn(action->xml, "BadAction"); xml 236 crmd/te_actions.c id = ID(action->xml); xml 237 crmd/te_actions.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 238 crmd/te_actions.c on_node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 239 crmd/te_actions.c router_node = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 277 crmd/te_actions.c cmd = create_request(task, action->xml, router_node, CRM_SYSTEM_CRMD, CRM_SYSTEM_TENGINE, NULL); xml 320 crmd/te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 321 crmd/te_actions.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 322 crmd/te_actions.c const char *task_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 323 crmd/te_actions.c const char *target_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 330 crmd/te_actions.c crm_element_name(action->xml), action->id, task_uuid, target); xml 333 crmd/te_actions.c crm_element_name(action->xml), action->id, task_uuid, target); xml 336 crmd/te_actions.c action_rsc = find_xml_node(action->xml, XML_CIB_TAG_RESOURCE, TRUE); xml 342 crmd/te_actions.c CRM_CHECK(rsc_id != NULL, crm_log_xml_err(action->xml, "Bad:action"); xml 380 crmd/te_actions.c crm_element_name(action->xml), crm_str(task), rsc_id, target); xml 424 crmd/te_actions.c CRM_ASSERT(action->xml != NULL); xml 427 crmd/te_actions.c on_node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 430 crmd/te_actions.c crm_err("Corrupted command(id=%s) %s: no node", ID(action->xml), crm_str(task)); xml 433 crmd/te_actions.c rsc_op = action->xml; xml 435 crmd/te_actions.c task_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 466 crmd/te_actions.c .xml = rsc_op, xml 575 crmd/te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 576 crmd/te_actions.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 587 crmd/te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 599 crmd/te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 610 crmd/te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 611 crmd/te_actions.c const char *id = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 652 crmd/te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 663 crmd/te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 676 crmd/te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 685 crmd/te_actions.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 245 crmd/te_callbacks.c const char *node, xmlNode *xml, xmlNode *change, const char *op, const char *xpath) xml 252 crmd/te_callbacks.c if(xml == NULL) { xml 255 crmd/te_callbacks.c } else if(strcmp((const char*)xml->name, XML_CIB_TAG_LRM) == 0) { xml 256 crmd/te_callbacks.c xml = first_named_child(xml, XML_LRM_TAG_RESOURCES); xml 257 crmd/te_callbacks.c crm_trace("Got %p in %s", xml, XML_CIB_TAG_LRM); xml 260 crmd/te_callbacks.c CRM_ASSERT(strcmp((const char*)xml->name, XML_LRM_TAG_RESOURCES) == 0); xml 262 crmd/te_callbacks.c for(cIter = xml->children; cIter; cIter = cIter->next) { xml 282 crmd/te_callbacks.c for (rsc = __xml_first_child(xml); rsc != NULL; rsc = __xml_next(rsc)) { xml 792 crmd/te_callbacks.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 793 crmd/te_callbacks.c const char *uuid = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 820 crmd/te_callbacks.c const char *target = crm_element_value_const(action->xml, XML_LRM_ATTR_TARGET); xml 905 crmd/te_callbacks.c const char *task = crm_element_value(timer->action->xml, XML_LRM_ATTR_TASK); xml 65 crmd/te_events.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 72 crmd/te_events.c target_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 73 crmd/te_events.c router = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 84 crmd/te_events.c last_action = action->xml; xml 90 crmd/te_events.c action->id, crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY), down_node); xml 93 crmd/te_events.c action->id, crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY), down_node); xml 240 crmd/te_events.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 241 crmd/te_events.c const char *uname = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 314 crmd/te_events.c target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 362 crmd/te_events.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 367 crmd/te_events.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 373 crmd/te_events.c target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 417 crmd/te_events.c xpath_ret = xpath_search(match->xml, xpath); xml 430 crmd/te_events.c crm_element_value(match->xml, XML_LRM_ATTR_TASK_KEY)); xml 152 crmd/te_utils.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 155 crmd/te_utils.c last_action = action->xml; xml 158 crmd/te_utils.c action->id, ID(action->xml)); xml 163 crmd/tengine.c if (graph_file == NULL && input->xml == NULL) { xml 180 crmd/tengine.c graph_data = input->xml; xml 218 crmd/tengine.c if (graph_data != input->xml) { xml 360 crmd/throttle.c xmlNode *xml = NULL; xml 367 crmd/throttle.c xml = create_request(CRM_OP_THROTTLE, NULL, NULL, CRM_SYSTEM_CRMD, CRM_SYSTEM_CRMD, NULL); xml 368 crmd/throttle.c crm_xml_add_int(xml, F_CRM_THROTTLE_MODE, mode); xml 369 crmd/throttle.c crm_xml_add_int(xml, F_CRM_THROTTLE_MAX, throttle_job_max); xml 371 crmd/throttle.c send_cluster_message(NULL, crm_msg_crmd, xml, TRUE); xml 372 crmd/throttle.c free_xml(xml); xml 547 crmd/throttle.c throttle_update(xmlNode *xml) xml 552 crmd/throttle.c const char *from = crm_element_value(xml, F_CRM_HOST_FROM); xml 554 crmd/throttle.c crm_element_value_int(xml, F_CRM_THROTTLE_MODE, (int*)&mode); xml 555 crmd/throttle.c crm_element_value_int(xml, F_CRM_THROTTLE_MAX, &max); xml 24 crmd/throttle.h void throttle_update(xmlNode *xml); xml 691 fencing/commands.c xmlNode *xml = NULL; xml 714 fencing/commands.c xml = string2xml(buffer); xml 716 fencing/commands.c return xml; xml 720 fencing/commands.c is_nodeid_required(xmlNode * xml) xml 728 fencing/commands.c if (!xml) { xml 732 fencing/commands.c xpath = xpath_search(xml, "//parameter[@name='nodeid']"); xml 1759 fencing/commands.c add_action_specific_attributes(xmlNode *xml, const char *action, xml 1766 fencing/commands.c CRM_CHECK(xml && action && device, return); xml 1770 fencing/commands.c crm_xml_add_int(xml, F_STONITH_DEVICE_REQUIRED, 1); xml 1777 fencing/commands.c crm_xml_add_int(xml, F_STONITH_ACTION_TIMEOUT, action_specific_timeout); xml 1784 fencing/commands.c crm_xml_add_int(xml, F_STONITH_DELAY_MAX, delay_max / 1000); xml 1789 fencing/commands.c crm_xml_add_int(xml, F_STONITH_DELAY_BASE, delay_base / 1000); xml 1816 fencing/commands.c add_disallowed(xmlNode *xml, const char *action, stonith_device_t *device, xml 1822 fencing/commands.c crm_xml_add(xml, F_STONITH_ACTION_DISALLOWED, XML_BOOLEAN_TRUE); xml 1837 fencing/commands.c add_action_reply(xmlNode *xml, const char *action, stonith_device_t *device, xml 1840 fencing/commands.c xmlNode *child = create_xml_node(xml, F_STONITH_ACTION); xml 200 fencing/main.c xmlNode *xml = convert_ha_message(NULL, msg, __FUNCTION__); xml 202 fencing/main.c stonith_peer_callback(xml, private_data); xml 203 fencing/main.c free_xml(xml); xml 225 fencing/main.c xmlNode *xml = NULL; xml 233 fencing/main.c xml = string2xml(data); xml 234 fencing/main.c if (xml == NULL) { xml 239 fencing/main.c crm_xml_add(xml, F_ORIG, from); xml 241 fencing/main.c stonith_peer_callback(xml, NULL); xml 244 fencing/main.c free_xml(xml); xml 632 fencing/main.c rclass = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 678 fencing/main.c const char *agent = crm_element_value(rsc->xml, XML_EXPR_ATTR_TYPE); xml 679 fencing/main.c const char *provider = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 1523 fencing/main.c xmlNode *xml; xml 1528 fencing/main.c xml = create_device_registration_xml("watchdog", "internal", STONITH_WATCHDOG_AGENT, params, NULL); xml 1529 fencing/main.c stonith_device_register(xml, NULL, FALSE); xml 1532 fencing/main.c free_xml(xml); xml 1662 fencing/remote.c parse_action_specific(xmlNode *xml, const char *peer, const char *device, xml 1667 fencing/remote.c crm_element_value_int(xml, F_STONITH_ACTION_TIMEOUT, xml 1675 fencing/remote.c crm_element_value_int(xml, F_STONITH_DELAY_MAX, &props->delay_max[phase]); xml 1682 fencing/remote.c crm_element_value_int(xml, F_STONITH_DELAY_BASE, &props->delay_base[phase]); xml 1692 fencing/remote.c crm_element_value_int(xml, F_STONITH_DEVICE_REQUIRED, &required); xml 1703 fencing/remote.c if (crm_is_true(crm_element_value(xml, F_STONITH_ACTION_DISALLOWED))) { xml 1720 fencing/remote.c add_device_properties(xmlNode *xml, remote_fencing_op_t *op, xml 1732 fencing/remote.c crm_element_value_int(xml, F_STONITH_DEVICE_VERIFIED, &verified); xml 1740 fencing/remote.c parse_action_specific(xml, result->host, device, op_requested_action(op), xml 1742 fencing/remote.c for (child = __xml_first_child(xml); child != NULL; child = __xml_next(child)) { xml 1769 fencing/remote.c add_result(remote_fencing_op_t *op, const char *host, int ndevices, xmlNode *xml) xml 1779 fencing/remote.c for (child = __xml_first_child(xml); child != NULL; child = __xml_next(child)) { xml 196 include/crm/cluster.h void set_uuid(xmlNode *xml, const char *attr, crm_node_t *node); xml 176 include/crm/common/logging.h # define do_crm_log_xml(level, text, xml) do { \ xml 182 include/crm/common/logging.h log_data_element(level, __FILE__, __FUNCTION__, __LINE__, text, xml, 1, xml_log_option_formatted); \ xml 256 include/crm/common/logging.h # define crm_log_xml_crit(xml, text) do_crm_log_xml(LOG_CRIT, text, xml) xml 257 include/crm/common/logging.h # define crm_log_xml_err(xml, text) do_crm_log_xml(LOG_ERR, text, xml) xml 258 include/crm/common/logging.h # define crm_log_xml_warn(xml, text) do_crm_log_xml(LOG_WARNING, text, xml) xml 259 include/crm/common/logging.h # define crm_log_xml_notice(xml, text) do_crm_log_xml(LOG_NOTICE, text, xml) xml 260 include/crm/common/logging.h # define crm_log_xml_info(xml, text) do_crm_log_xml(LOG_INFO, text, xml) xml 261 include/crm/common/logging.h # define crm_log_xml_debug(xml, text) do_crm_log_xml(LOG_DEBUG, text, xml) xml 262 include/crm/common/logging.h # define crm_log_xml_trace(xml, text) do_crm_log_xml(LOG_TRACE, text, xml) xml 264 include/crm/common/logging.h # define crm_log_xml_explicit(xml, text) do { \ xml 270 include/crm/common/logging.h do_crm_log_xml(LOG_TRACE, text, xml); \ xml 54 include/crm/common/xml.h gboolean add_message_xml(xmlNode * msg, const char *field, xmlNode * xml); xml 209 include/crm/common/xml.h crm_element_name(xmlNode *xml) xml 211 include/crm/common/xml.h return xml? (const char *)(xml->name) : NULL; xml 290 include/crm/common/xml.h gboolean cli_config_update(xmlNode ** xml, int *best_version, gboolean to_logs); xml 358 include/crm/common/xml.h void crm_foreach_xpath_result(xmlNode *xml, const char *xpath, xml 374 include/crm/common/xml.h bool xml_acl_enabled(xmlNode *xml); xml 375 include/crm/common/xml.h void xml_acl_disable(xmlNode *xml); xml 376 include/crm/common/xml.h bool xml_acl_denied(xmlNode *xml); /* Part or all of a change was rejected */ xml 377 include/crm/common/xml.h bool xml_acl_filtered_copy(const char *user, xmlNode* acl_source, xmlNode *xml, xmlNode ** result); xml 379 include/crm/common/xml.h bool xml_tracking_changes(xmlNode * xml); xml 380 include/crm/common/xml.h bool xml_document_dirty(xmlNode *xml); xml 381 include/crm/common/xml.h void xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls); xml 383 include/crm/common/xml.h void xml_accept_changes(xmlNode * xml); xml 384 include/crm/common/xml.h void xml_log_changes(uint8_t level, const char *function, xmlNode *xml); xml 385 include/crm/common/xml.h void xml_log_patchset(uint8_t level, const char *function, xmlNode *xml); xml 390 include/crm/common/xml.h int xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version); xml 394 include/crm/common/xml.h void save_xml_to_file(xmlNode * xml, const char *desc, const char *filename); xml 395 include/crm/common/xml.h char *xml_get_path(xmlNode *xml); xml 399 include/crm/common/xml.h void crm_xml_set_id(xmlNode *xml, const char *format, ...) xml 324 include/crm/pengine/internal.h const char *container_fix_remote_addr_in(resource_t *rsc, xmlNode *xml, const char *field); xml 21 include/crm/pengine/remote.h gboolean xml_contains_remote_node(xmlNode *xml); xml 259 include/crm/pengine/status.h xmlNode *xml; xml 64 include/crm/transition.h xmlNode *xml; xml 249 include/crm_internal.h void strip_text_nodes(xmlNode * xml); xml 270 lib/cib/cib_utils.c cib_acl_enabled(xmlNode *xml, const char *user) xml 279 lib/cib/cib_utils.c cib_read_config(options, xml); xml 459 lib/cluster/cluster.c set_uuid(xmlNode *xml, const char *attr, crm_node_t *node) xml 463 lib/cluster/cluster.c crm_xml_add(xml, attr, uuid_calc); xml 49 lib/cluster/heartbeat.c xmlNode *xml = NULL; xml 84 lib/cluster/heartbeat.c xml = string2xml(value); xml 85 lib/cluster/heartbeat.c if (xml == NULL) { xml 90 lib/cluster/heartbeat.c add_node_nocopy(parent, NULL, xml); xml 136 lib/cluster/heartbeat.c xml = string2xml(uncompressed); xml 139 lib/cluster/heartbeat.c if (xml != NULL) { xml 140 lib/cluster/heartbeat.c add_node_copy(parent, xml); xml 141 lib/cluster/heartbeat.c free_xml(xml); xml 252 lib/cluster/heartbeat.c convert_xml_child(HA_Message * msg, xmlNode * xml) xml 262 lib/cluster/heartbeat.c name = (const char *)xml->name; xml 263 lib/cluster/heartbeat.c buffer = dump_xml_unformatted(xml); xml 278 lib/cluster/heartbeat.c convert_xml_message_struct(msg, xml, name); xml 312 lib/cluster/heartbeat.c convert_xml_message(xmlNode * xml) xml 319 lib/cluster/heartbeat.c ha_msg_add(result, F_XML_TAGNAME, (const char *)xml->name); xml 321 lib/cluster/heartbeat.c for (pIter = xml->properties; pIter != NULL; pIter = pIter->next) { xml 330 lib/cluster/heartbeat.c for (child = __xml_first_child(xml); child != NULL; child = __xml_next(child)) { xml 405 lib/cluster/heartbeat.c send_ha_message(ll_cluster_t * hb_conn, xmlNode * xml, const char *node, gboolean force_ordered) xml 408 lib/cluster/heartbeat.c HA_Message *msg = convert_xml_message(xml); xml 462 lib/cluster/heartbeat.c crm_log_xml_trace(xml, "outbound"); xml 464 lib/cluster/heartbeat.c crm_log_xml_warn(xml, "outbound"); xml 228 lib/cluster/legacy.c xmlNode *xml = string2xml(msg->data); xml 230 lib/cluster/legacy.c if (xml == NULL) { xml 235 lib/cluster/legacy.c value = crm_element_value(xml, "quorate"); xml 236 lib/cluster/legacy.c CRM_CHECK(value != NULL, crm_log_xml_err(xml, "No quorum value:"); return); xml 241 lib/cluster/legacy.c value = crm_element_value(xml, "id"); xml 242 lib/cluster/legacy.c CRM_CHECK(value != NULL, crm_log_xml_err(xml, "No membership id"); return); xml 253 lib/cluster/legacy.c for (member = __xml_first_child(xml); member != NULL; member = __xml_next(member)) { xml 273 lib/cluster/legacy.c free_xml(xml); xml 447 lib/common/ipc.c xmlNode *xml = NULL; xml 493 lib/common/ipc.c xml = string2xml(text); xml 496 lib/common/ipc.c return xml; xml 386 lib/common/remote.c xmlNode *xml = NULL; xml 433 lib/common/remote.c xml = string2xml(remote->buffer + header->payload_offset); xml 434 lib/common/remote.c if (xml == NULL && header->version > REMOTE_MSG_VERSION) { xml 438 lib/common/remote.c } else if (xml == NULL) { xml 442 lib/common/remote.c return xml; xml 550 lib/common/schemas.c validate_with(xmlNode *xml, int method, gboolean to_logs) xml 564 lib/common/schemas.c CRM_CHECK(xml != NULL, return FALSE); xml 565 lib/common/schemas.c doc = getDocPtr(xml); xml 626 lib/common/schemas.c xmlNode *xml = NULL; xml 639 lib/common/schemas.c xml = xmlDocGetRootElement(doc); xml 640 lib/common/schemas.c rc = validate_xml(xml, NULL, FALSE); xml 641 lib/common/schemas.c free_xml(xml); xml 713 lib/common/schemas.c apply_transformation(xmlNode *xml, const char *transform, gboolean to_logs) xml 721 lib/common/schemas.c CRM_CHECK(xml != NULL, return FALSE); xml 722 lib/common/schemas.c doc = getDocPtr(xml); xml 786 lib/common/schemas.c xmlNode *xml = NULL; xml 798 lib/common/schemas.c xml = *xml_blob; xml 799 lib/common/schemas.c value = crm_element_value_copy(xml, XML_ATTR_VALIDATION); xml 826 lib/common/schemas.c if (validate_with(xml, lpc, to_logs) == FALSE) { xml 880 lib/common/schemas.c upgrade = apply_transformation(xml, known_schemas[lpc].transform, to_logs); xml 892 lib/common/schemas.c free_xml(xml); xml 893 lib/common/schemas.c xml = upgrade; xml 917 lib/common/schemas.c crm_xml_add(xml, XML_ATTR_VALIDATION, known_schemas[*best].name); xml 920 lib/common/schemas.c *xml_blob = xml; xml 926 lib/common/schemas.c cli_config_update(xmlNode **xml, int *best_version, gboolean to_logs) xml 929 lib/common/schemas.c const char *value = crm_element_value(*xml, XML_ATTR_VALIDATION); xml 939 lib/common/schemas.c converted = copy_xml(*xml); xml 977 lib/common/schemas.c free_xml(*xml); xml 978 lib/common/schemas.c *xml = converted; xml 49 lib/common/xml.c __get_prefix(const char *prefix, xmlNode *xml, char *buffer, int offset); xml 110 lib/common/xml.c static bool __xml_acl_check(xmlNode *xml, const char *name, enum xml_private_flags mode); xml 114 lib/common/xml.c static inline bool TRACKING_CHANGES(xmlNode *xml) xml 116 lib/common/xml.c if(xml == NULL || xml->doc == NULL || xml->doc->_private == NULL) { xml 118 lib/common/xml.c } else if(is_set(((xml_private_t *)xml->doc->_private)->flags, xpf_tracking)) { xml 161 lib/common/xml.c set_parent_flag(xmlNode *xml, long flag) xml 164 lib/common/xml.c for(; xml; xml = xml->parent) { xml 165 lib/common/xml.c xml_private_t *p = xml->_private; xml 177 lib/common/xml.c set_doc_flag(xmlNode *xml, long flag) xml 180 lib/common/xml.c if(xml && xml->doc && xml->doc->_private){ xml 182 lib/common/xml.c xml_private_t *p = xml->doc->_private; xml 190 lib/common/xml.c __xml_node_dirty(xmlNode *xml) xml 192 lib/common/xml.c set_doc_flag(xml, xpf_dirty); xml 193 lib/common/xml.c set_parent_flag(xml, xpf_dirty); xml 197 lib/common/xml.c __xml_node_clean(xmlNode *xml) xml 200 lib/common/xml.c xml_private_t *p = xml->_private; xml 206 lib/common/xml.c for (cIter = __xml_first_child(xml); cIter != NULL; cIter = __xml_next(cIter)) { xml 212 lib/common/xml.c crm_node_created(xmlNode *xml) xml 215 lib/common/xml.c xml_private_t *p = xml->_private; xml 217 lib/common/xml.c if(p && TRACKING_CHANGES(xml)) { xml 220 lib/common/xml.c __xml_node_dirty(xml); xml 223 lib/common/xml.c for (cIter = __xml_first_child(xml); cIter != NULL; cIter = __xml_next(cIter)) { xml 264 lib/common/xml.c crm_first_attr(xmlNode * xml) xml 266 lib/common/xml.c if (xml == NULL) { xml 269 lib/common/xml.c return xml->properties; xml 368 lib/common/xml.c __xml_acl_create(xmlNode * xml, xmlNode *target, enum xml_private_flags mode) xml 373 lib/common/xml.c const char *tag = crm_element_value(xml, XML_ACL_ATTR_TAG); xml 374 lib/common/xml.c const char *ref = crm_element_value(xml, XML_ACL_ATTR_REF); xml 375 lib/common/xml.c const char *xpath = crm_element_value(xml, XML_ACL_ATTR_XPATH); xml 379 lib/common/xml.c tag = crm_element_value(xml, XML_ACL_ATTR_TAGv1); xml 383 lib/common/xml.c ref = crm_element_value(xml, XML_ACL_ATTR_REFv1); xml 393 lib/common/xml.c crm_trace("No criteria %p", xml); xml 400 lib/common/xml.c const char *attr = crm_element_value(xml, XML_ACL_ATTR_ATTRIBUTE); xml 540 lib/common/xml.c __xml_acl_apply(xmlNode *xml) xml 546 lib/common/xml.c if(xml_acl_enabled(xml) == FALSE) { xml 547 lib/common/xml.c p = xml->doc->_private; xml 552 lib/common/xml.c p = xml->doc->_private; xml 557 lib/common/xml.c xpathObj = xpath_search(xml, acl->xpath); xml 587 lib/common/xml.c p = xml->_private; xml 590 lib/common/xml.c p = xml->doc->_private; xml 591 lib/common/xml.c crm_info("Enforcing default ACL for %s to %s", p->user, crm_element_name(xml)); xml 661 lib/common/xml.c __xml_purge_attributes(xmlNode *xml) xml 666 lib/common/xml.c xml_private_t *p = xml->_private; xml 669 lib/common/xml.c crm_trace("%s[@id=%s] is readable", crm_element_name(xml), ID(xml)); xml 673 lib/common/xml.c xIter = crm_first_attr(xml); xml 683 lib/common/xml.c xmlUnsetProp(xml, tmp->name); xml 686 lib/common/xml.c child = __xml_first_child(xml); xml 695 lib/common/xml.c free_xml(xml); /* Nothing readable under here, purge completely */ xml 701 lib/common/xml.c xml_acl_filtered_copy(const char *user, xmlNode* acl_source, xmlNode *xml, xmlNode ** result) xml 709 lib/common/xml.c if(xml == NULL || pcmk_acl_required(user) == FALSE) { xml 714 lib/common/xml.c crm_trace("filtering copy of %p for '%s'", xml, user); xml 715 lib/common/xml.c target = copy_xml(xml); xml 776 lib/common/xml.c __xml_acl_post_process(xmlNode * xml) xml 778 lib/common/xml.c xmlNode *cIter = __xml_first_child(xml); xml 779 lib/common/xml.c xml_private_t *p = xml->_private; xml 783 lib/common/xml.c char *path = xml_get_path(xml); xml 789 lib/common/xml.c for (xIter = crm_first_attr(xml); xIter != NULL; xIter = xIter->next) { xml 796 lib/common/xml.c } else if(__xml_acl_check(xml, NULL, xpf_acl_write)) { xml 797 lib/common/xml.c crm_trace("Creation of %s=%s is allowed", crm_element_name(xml), ID(xml)); xml 801 lib/common/xml.c crm_trace("Cannot add new node %s at %s", crm_element_name(xml), path); xml 803 lib/common/xml.c if(xml != xmlDocGetRootElement(xml->doc)) { xml 804 lib/common/xml.c xmlUnlinkNode(xml); xml 805 lib/common/xml.c xmlFreeNode(xml); xml 822 lib/common/xml.c xml_acl_denied(xmlNode *xml) xml 824 lib/common/xml.c if(xml && xml->doc && xml->doc->_private){ xml 825 lib/common/xml.c xml_private_t *p = xml->doc->_private; xml 833 lib/common/xml.c xml_acl_disable(xmlNode *xml) xml 835 lib/common/xml.c if(xml_acl_enabled(xml)) { xml 836 lib/common/xml.c xml_private_t *p = xml->doc->_private; xml 839 lib/common/xml.c __xml_acl_apply(xml); xml 840 lib/common/xml.c __xml_acl_post_process(xml); xml 846 lib/common/xml.c xml_acl_enabled(xmlNode *xml) xml 848 lib/common/xml.c if(xml && xml->doc && xml->doc->_private){ xml 849 lib/common/xml.c xml_private_t *p = xml->doc->_private; xml 857 lib/common/xml.c xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls) xml 859 lib/common/xml.c xml_accept_changes(xml); xml 860 lib/common/xml.c crm_trace("Tracking changes%s to %p", enforce_acls?" with ACLs":"", xml); xml 861 lib/common/xml.c set_doc_flag(xml, xpf_tracking); xml 864 lib/common/xml.c acl_source = xml; xml 866 lib/common/xml.c set_doc_flag(xml, xpf_acl_enabled); xml 867 lib/common/xml.c __xml_acl_unpack(acl_source, xml, user); xml 868 lib/common/xml.c __xml_acl_apply(xml); xml 872 lib/common/xml.c bool xml_tracking_changes(xmlNode * xml) xml 874 lib/common/xml.c if(xml == NULL) { xml 877 lib/common/xml.c } else if(is_set(((xml_private_t *)xml->doc->_private)->flags, xpf_tracking)) { xml 883 lib/common/xml.c bool xml_document_dirty(xmlNode *xml) xml 885 lib/common/xml.c if(xml != NULL && xml->doc && xml->doc->_private) { xml 886 lib/common/xml.c xml_private_t *doc = xml->doc->_private; xml 941 lib/common/xml.c static int __xml_offset(xmlNode *xml) xml 946 lib/common/xml.c for(cIter = xml; cIter->prev; cIter = cIter->prev) { xml 957 lib/common/xml.c static int __xml_offset_no_deletions(xmlNode *xml) xml 962 lib/common/xml.c for(cIter = xml; cIter->prev; cIter = cIter->prev) { xml 974 lib/common/xml.c __xml_build_changes(xmlNode * xml, xmlNode *patchset) xml 979 lib/common/xml.c xml_private_t *p = xml->_private; xml 985 lib/common/xml.c if(__get_prefix(NULL, xml->parent, buffer, offset) > 0) { xml 986 lib/common/xml.c int position = __xml_offset_no_deletions(xml); xml 993 lib/common/xml.c add_node_copy(change, xml); xml 999 lib/common/xml.c for (pIter = crm_first_attr(xml); pIter != NULL; pIter = pIter->next) { xml 1011 lib/common/xml.c if(__get_prefix(NULL, xml, buffer, offset) > 0) { xml 1028 lib/common/xml.c const char *value = crm_element_value(xml, (const char *)pIter->name); xml 1039 lib/common/xml.c result = create_xml_node(change, (const char *)xml->name); xml 1041 lib/common/xml.c for (pIter = crm_first_attr(xml); pIter != NULL; pIter = pIter->next) { xml 1042 lib/common/xml.c const char *value = crm_element_value(xml, (const char *)pIter->name); xml 1051 lib/common/xml.c for (cIter = __xml_first_child(xml); cIter != NULL; cIter = __xml_next(cIter)) { xml 1055 lib/common/xml.c p = xml->_private; xml 1060 lib/common/xml.c crm_trace("%s.%s moved to position %d", xml->name, ID(xml), __xml_offset(xml)); xml 1061 lib/common/xml.c if(__get_prefix(NULL, xml, buffer, offset) > 0) { xml 1066 lib/common/xml.c crm_xml_add_int(change, XML_DIFF_POSITION, __xml_offset_no_deletions(xml)); xml 1072 lib/common/xml.c __xml_accept_changes(xmlNode * xml) xml 1076 lib/common/xml.c xml_private_t *p = xml->_private; xml 1079 lib/common/xml.c pIter = crm_first_attr(xml); xml 1088 lib/common/xml.c xml_remove_prop(xml, (const char *)name); xml 1095 lib/common/xml.c for (cIter = __xml_first_child(xml); cIter != NULL; cIter = __xml_next(cIter)) { xml 1101 lib/common/xml.c is_config_change(xmlNode *xml) xml 1105 lib/common/xml.c xmlNode *config = first_named_child(xml, XML_CIB_TAG_CONFIGURATION); xml 1114 lib/common/xml.c if(xml->doc && xml->doc->_private) { xml 1115 lib/common/xml.c p = xml->doc->_private; xml 1542 lib/common/xml.c xml_log_changes(uint8_t log_level, const char *function, xmlNode * xml) xml 1547 lib/common/xml.c CRM_ASSERT(xml); xml 1548 lib/common/xml.c CRM_ASSERT(xml->doc); xml 1550 lib/common/xml.c doc = xml->doc->_private; xml 1568 lib/common/xml.c log_data_element(log_level, __FILE__, function, __LINE__, "+ ", xml, 0, xml 1573 lib/common/xml.c xml_accept_changes(xmlNode * xml) xml 1578 lib/common/xml.c if(xml == NULL) { xml 1582 lib/common/xml.c crm_trace("Accepting changes to %p", xml); xml 1583 lib/common/xml.c doc = xml->doc->_private; xml 1584 lib/common/xml.c top = xmlDocGetRootElement(xml->doc); xml 1586 lib/common/xml.c __xml_private_clean(xml->doc->_private); xml 1806 lib/common/xml.c xml_patch_version_check(xmlNode *xml, xmlNode *patchset, int format) xml 1822 lib/common/xml.c crm_element_value_int(xml, vfields[lpc], &(this[lpc])); xml 1870 lib/common/xml.c xml_apply_patchset_v1(xmlNode *xml, xmlNode *patchset) xml 1878 lib/common/xml.c xmlNode *old = copy_xml(xml); xml 1885 lib/common/xml.c __subtract_xml_object(xml, child_diff); xml 1904 lib/common/xml.c __add_xml_object(NULL, xml, child_diff); xml 1915 lib/common/xml.c purge_diff_markers(xml); /* Purge prior to checking the digest */ xml 2022 lib/common/xml.c xml_apply_patchset_v2(xmlNode *xml, xmlNode *patchset) xml 2041 lib/common/xml.c match = get_xpath_object(xpath, xml, LOG_TRACE); xml 2043 lib/common/xml.c match = __xml_find_path(xml, xpath, position); xml 2048 lib/common/xml.c crm_debug("No %s match for %s in %p", op, xpath, xml->doc); xml 2052 lib/common/xml.c crm_err("No %s match for %s in %p", op, xpath, xml->doc); xml 2158 lib/common/xml.c xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version) xml 2173 lib/common/xml.c rc = xml_patch_version_check(xml, patchset, format); xml 2181 lib/common/xml.c old = copy_xml(xml); xml 2187 lib/common/xml.c rc = xml_apply_patchset_v1(xml, patchset); xml 2190 lib/common/xml.c rc = xml_apply_patchset_v2(xml, patchset); xml 2202 lib/common/xml.c char *version = crm_element_value_copy(xml, XML_ATTR_CRM_VERSION); xml 2210 lib/common/xml.c new_digest = calculate_xml_versioned_digest(xml, FALSE, TRUE, version); xml 2217 lib/common/xml.c save_xml_to_file(xml, "PatchDigest:result", NULL); xml 2427 lib/common/xml.c __xml_acl_check(xmlNode *xml, const char *name, enum xml_private_flags mode) xml 2429 lib/common/xml.c CRM_ASSERT(xml); xml 2430 lib/common/xml.c CRM_ASSERT(xml->doc); xml 2431 lib/common/xml.c CRM_ASSERT(xml->doc->_private); xml 2435 lib/common/xml.c if(TRACKING_CHANGES(xml) && xml_acl_enabled(xml)) { xml 2437 lib/common/xml.c xmlNode *parent = xml; xml 2439 lib/common/xml.c xml_private_t *docp = xml->doc->_private; xml 2443 lib/common/xml.c set_doc_flag(xml, xpf_acl_denied); xml 2447 lib/common/xml.c offset = __get_prefix(NULL, xml, buffer, offset); xml 2459 lib/common/xml.c xmlAttr *attr = xmlHasProp(xml, (const xmlChar *)name); xml 2473 lib/common/xml.c set_doc_flag(xml, xpf_acl_denied); xml 2480 lib/common/xml.c set_doc_flag(xml, xpf_acl_denied); xml 2613 lib/common/xml.c __get_prefix(const char *prefix, xmlNode *xml, char *buffer, int offset) xml 2615 lib/common/xml.c const char *id = ID(xml); xml 2617 lib/common/xml.c if(offset == 0 && prefix == NULL && xml->parent) { xml 2618 lib/common/xml.c offset = __get_prefix(NULL, xml->parent, buffer, offset); xml 2622 lib/common/xml.c offset += snprintf(buffer + offset, XML_BUFFER_SIZE - offset, "/%s[@id='%s']", (const char *)xml->name, id); xml 2623 lib/common/xml.c } else if(xml->name) { xml 2624 lib/common/xml.c offset += snprintf(buffer + offset, XML_BUFFER_SIZE - offset, "/%s", (const char *)xml->name); xml 2631 lib/common/xml.c xml_get_path(xmlNode *xml) xml 2636 lib/common/xml.c if(__get_prefix(NULL, xml, buffer, offset) > 0) { xml 2752 lib/common/xml.c xmlNode *xml = NULL; xml 2775 lib/common/xml.c xml = xmlDocGetRootElement(output); xml 2791 lib/common/xml.c crm_err("Couldn't%s parse %d chars: %s", xml ? " fully" : "", (int)strlen(input), xml 2793 lib/common/xml.c if (xml != NULL) { xml 2794 lib/common/xml.c crm_log_xml_err(xml, "Partial"); xml 2811 lib/common/xml.c return xml; xml 2905 lib/common/xml.c strip_text_nodes(xmlNode * xml) xml 2907 lib/common/xml.c xmlNode *iter = xml->children; xml 2936 lib/common/xml.c xmlNode *xml = NULL; xml 2971 lib/common/xml.c if (output && (xml = xmlDocGetRootElement(output))) { xml 2972 lib/common/xml.c strip_text_nodes(xml); xml 2986 lib/common/xml.c crm_err("Couldn't%s parse %s", xml ? " fully" : "", filename); xml 2987 lib/common/xml.c if (xml != NULL) { xml 2988 lib/common/xml.c crm_log_xml_err(xml, "Partial"); xml 2994 lib/common/xml.c return xml; xml 3043 lib/common/xml.c crm_xml_set_id(xmlNode *xml, const char *format, ...) xml 3056 lib/common/xml.c crm_xml_add(xml, XML_ATTR_ID, id); xml 3171 lib/common/xml.c add_message_xml(xmlNode * msg, const char *field, xmlNode * xml) xml 3175 lib/common/xml.c add_node_copy(holder, xml); xml 3915 lib/common/xml.c save_xml_to_file(xmlNode * xml, const char *desc, const char *filename) xml 3928 lib/common/xml.c write_xml_file(xml, filename, FALSE); xml 116 lib/common/xpath.c xmlNode *xml = NULL; xml 123 lib/common/xpath.c xml = xpathObj->nodesetval->nodeTab[lpc]->parent; xml 125 lib/common/xpath.c for (; xml; xml = xml->parent) { xml 129 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[lpc2] == xml) { xml 179 lib/common/xpath.c crm_foreach_xpath_result(xmlNode *xml, const char *xpath, xml 182 lib/common/xpath.c xmlXPathObjectPtr xpathObj = xpath_search(xml, xpath); xml 113 lib/fencing/st_client.c xmlNode *xml; xml 190 lib/fencing/st_client.c blob.xml = create_xml_node(NULL, "notify"); xml 197 lib/fencing/st_client.c crm_xml_add(blob.xml, F_TYPE, T_STONITH_NOTIFY); xml 198 lib/fencing/st_client.c crm_xml_add(blob.xml, F_SUBTYPE, T_STONITH_NOTIFY_DISCONNECT); xml 201 lib/fencing/st_client.c free_xml(blob.xml); xml 1250 lib/fencing/st_client.c xmlNode *xml = NULL; xml 1261 lib/fencing/st_client.c xml = string2xml(buffer); xml 1262 lib/fencing/st_client.c if(xml == NULL) { xml 1268 lib/fencing/st_client.c xpathObj = xpath_search(xml, "//actions"); xml 1276 lib/fencing/st_client.c xpathObj = xpath_search(xml, "//action[@name='stop']"); xml 1292 lib/fencing/st_client.c xpathObj = xpath_search(xml, "//parameter[@name='port']"); xml 1302 lib/fencing/st_client.c buffer = dump_xml_formatted_with_text(xml); xml 1303 lib/fencing/st_client.c free_xml(xml); xml 2200 lib/fencing/st_client.c if (blob->xml == NULL) { xml 2205 lib/fencing/st_client.c event = crm_element_value(blob->xml, F_SUBTYPE); xml 2220 lib/fencing/st_client.c st_event = xml_to_event(blob->xml); xml 2378 lib/fencing/st_client.c blob.xml = string2xml(buffer); xml 2379 lib/fencing/st_client.c if (blob.xml == NULL) { xml 2385 lib/fencing/st_client.c type = crm_element_value(blob.xml, F_TYPE); xml 2389 lib/fencing/st_client.c stonith_perform_callback(st, blob.xml, 0, 0); xml 2397 lib/fencing/st_client.c crm_element_value_int(blob.xml, F_STONITH_TIMEOUT, &timeout); xml 2398 lib/fencing/st_client.c crm_element_value_int(blob.xml, F_STONITH_CALLID, &call_id); xml 2403 lib/fencing/st_client.c crm_log_xml_warn(blob.xml, "BadReply"); xml 2406 lib/fencing/st_client.c free_xml(blob.xml); xml 339 lib/lrmd/lrmd_client.c xmlNode *xml = NULL; xml 367 lib/lrmd/lrmd_client.c xml = crm_remote_parse_buffer(native->remote); xml 372 lib/lrmd/lrmd_client.c xml = crm_remote_parse_buffer(native->remote); xml 374 lib/lrmd/lrmd_client.c while (xml) { xml 375 lib/lrmd/lrmd_client.c const char *msg_type = crm_element_value(xml, F_LRMD_REMOTE_MSG_TYPE); xml 377 lib/lrmd/lrmd_client.c lrmd_dispatch_internal(lrmd, xml); xml 383 lib/lrmd/lrmd_client.c crm_element_value_int(xml, F_LRMD_CALLID, &reply_id); xml 388 lib/lrmd/lrmd_client.c free_xml(xml); xml 389 lib/lrmd/lrmd_client.c xml = crm_remote_parse_buffer(native->remote); xml 565 lib/lrmd/lrmd_client.c xmlNode *xml = NULL; xml 577 lib/lrmd/lrmd_client.c while (!xml) { xml 579 lib/lrmd/lrmd_client.c xml = crm_remote_parse_buffer(native->remote); xml 580 lib/lrmd/lrmd_client.c if (!xml) { xml 594 lib/lrmd/lrmd_client.c xml = crm_remote_parse_buffer(native->remote); xml 595 lib/lrmd/lrmd_client.c if (!xml) { xml 604 lib/lrmd/lrmd_client.c CRM_ASSERT(xml != NULL); xml 606 lib/lrmd/lrmd_client.c crm_element_value_int(xml, F_LRMD_REMOTE_MSG_ID, &reply_id); xml 607 lib/lrmd/lrmd_client.c msg_type = crm_element_value(xml, F_LRMD_REMOTE_MSG_TYPE); xml 611 lib/lrmd/lrmd_client.c free_xml(xml); xml 612 lib/lrmd/lrmd_client.c xml = NULL; xml 616 lib/lrmd/lrmd_client.c native->pending_notify = g_list_append(native->pending_notify, xml); xml 621 lib/lrmd/lrmd_client.c xml = NULL; xml 625 lib/lrmd/lrmd_client.c free_xml(xml); xml 626 lib/lrmd/lrmd_client.c xml = NULL; xml 633 lib/lrmd/lrmd_client.c free_xml(xml); xml 634 lib/lrmd/lrmd_client.c xml = NULL; xml 642 lib/lrmd/lrmd_client.c return xml; xml 670 lib/lrmd/lrmd_client.c xmlNode *xml = NULL; xml 681 lib/lrmd/lrmd_client.c xml = lrmd_tls_recv_reply(lrmd, timeout, global_remote_msg_id, &disconnected); xml 688 lib/lrmd/lrmd_client.c } else if (!xml) { xml 695 lib/lrmd/lrmd_client.c *reply = xml; xml 697 lib/lrmd/lrmd_client.c free_xml(xml); xml 131 lib/lrmd/proxy_common.c xmlNode *xml = NULL; xml 135 lib/lrmd/proxy_common.c xml = string2xml(buffer); xml 136 lib/lrmd/proxy_common.c if (xml == NULL) { xml 144 lib/lrmd/proxy_common.c remote_proxy_relay_response(proxy, xml, proxy->last_request_id); xml 149 lib/lrmd/proxy_common.c remote_proxy_relay_event(proxy, xml); xml 151 lib/lrmd/proxy_common.c free_xml(xml); xml 157 lib/pengine/clone.c xmlNode *xml_obj = rsc->xml; xml 599 lib/pengine/clone.c free_xml(child_rsc->xml); xml 600 lib/pengine/clone.c child_rsc->xml = NULL; xml 141 lib/pengine/complex.c if (rsc->xml) { xml 144 lib/pengine/complex.c for (xIter = rsc->xml->properties; xIter; xIter = xIter->next) { xml 146 lib/pengine/complex.c const char *prop_value = crm_element_value(rsc->xml, prop_name); xml 152 lib/pengine/complex.c unpack_instance_attributes(data_set->input, rsc->xml, XML_TAG_META_SETS, node_hash, xml 159 lib/pengine/complex.c unpack_instance_attributes(data_set->input, rsc->xml, XML_TAG_ATTR_SETS, node_hash, xml 183 lib/pengine/complex.c unpack_instance_attributes(data_set->input, rsc->xml, XML_TAG_ATTR_SETS, node_hash, xml 208 lib/pengine/complex.c pe_unpack_versioned_attributes(data_set->input, rsc->xml, XML_TAG_ATTR_SETS, node_hash, xml 500 lib/pengine/complex.c (*rsc)->xml = expanded_xml; xml 504 lib/pengine/complex.c (*rsc)->xml = xml_obj; xml 509 lib/pengine/complex.c rclass = crm_element_value((*rsc)->xml, XML_AGENT_ATTR_CLASS); xml 512 lib/pengine/complex.c ops = find_xml_node((*rsc)->xml, "operations", FALSE); xml 515 lib/pengine/complex.c (*rsc)->variant = get_resource_type(crm_element_name((*rsc)->xml)); xml 517 lib/pengine/complex.c pe_err("Unknown resource type: %s", crm_element_name((*rsc)->xml)); xml 535 lib/pengine/complex.c value = crm_element_value((*rsc)->xml, XML_RSC_ATTR_INCARNATION); xml 581 lib/pengine/complex.c if (xml_contains_remote_node((*rsc)->xml)) { xml 844 lib/pengine/complex.c unpack_instance_attributes(data_set->input, (*rsc)->xml, XML_TAG_UTILIZATION, NULL, xml 940 lib/pengine/complex.c free_xml(rsc->xml); xml 941 lib/pengine/complex.c rsc->xml = NULL; xml 947 lib/pengine/complex.c free_xml(rsc->xml); xml 948 lib/pengine/complex.c rsc->xml = NULL; xml 782 lib/pengine/container.c value = crm_element_value(rsc->xml, attr_list[lpc]); xml 791 lib/pengine/container.c container_fix_remote_addr_in(resource_t *rsc, xmlNode *xml, const char *field) xml 821 lib/pengine/container.c if(xml != NULL && field != NULL) { xml 822 lib/pengine/container.c crm_xml_add(xml, field, node->details->uname); xml 843 lib/pengine/container.c xml_obj = first_named_child(rsc->xml, "docker"); xml 847 lib/pengine/container.c xml_obj = first_named_child(rsc->xml, "rkt"); xml 895 lib/pengine/container.c xml_obj = first_named_child(rsc->xml, "network"); xml 928 lib/pengine/container.c xml_obj = first_named_child(rsc->xml, "storage"); xml 949 lib/pengine/container.c xml_obj = first_named_child(rsc->xml, "primitive"); xml 1009 lib/pengine/container.c pe_err("Failed unpacking resource %s", ID(rsc->xml)); xml 1377 lib/pengine/container.c free_xml(tuple->ip->xml); xml 1378 lib/pengine/container.c tuple->ip->xml = NULL; xml 1383 lib/pengine/container.c free_xml(tuple->docker->xml); xml 1384 lib/pengine/container.c tuple->docker->xml = NULL; xml 1389 lib/pengine/container.c free_xml(tuple->remote->xml); xml 1390 lib/pengine/container.c tuple->remote->xml = NULL; xml 1424 lib/pengine/container.c free_xml(container_data->child->xml); xml 1425 lib/pengine/container.c container_data->child->xml = NULL; xml 79 lib/pengine/failcounts.c xmlXPathObject *xpathObj = xpath_search(rsc->xml, xpath); xml 33 lib/pengine/group.c xmlNode *xml_obj = rsc->xml; xml 58 lib/pengine/group.c clone_id = crm_element_value(rsc->xml, XML_RSC_ATTR_INCARNATION); xml 131 lib/pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 196 lib/pengine/native.c const char *rid = ID(rsc->xml); xml 404 lib/pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 405 lib/pengine/native.c const char *prov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 414 lib/pengine/native.c prov ? "::" : "", prov ? prov : "", crm_element_value(rsc->xml, XML_ATTR_TYPE)); xml 445 lib/pengine/native.c status_print("variant=\"%s\" ", crm_element_name(rsc->xml)); xml 482 lib/pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 483 lib/pengine/native.c const char *kind = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 544 lib/pengine/native.c const char *prov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 614 lib/pengine/native.c desc = crm_element_value(rsc->xml, XML_ATTR_DESC); xml 706 lib/pengine/native.c crm_element_name(rsc->xml), (double)rsc->priority); xml 812 lib/pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 813 lib/pengine/native.c const char *kind = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 827 lib/pengine/native.c const char *prov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 91 lib/pengine/remote.c xml_contains_remote_node(xmlNode *xml) xml 93 lib/pengine/remote.c const char *class = crm_element_value(xml, XML_AGENT_ATTR_CLASS); xml 94 lib/pengine/remote.c const char *provider = crm_element_value(xml, XML_AGENT_ATTR_PROVIDER); xml 95 lib/pengine/remote.c const char *agent = crm_element_value(xml, XML_ATTR_TYPE); xml 2086 lib/pengine/utils.c return ID(rsc->xml); xml 183 lib/transition/graph.c id = ID(action->xml); xml 198 lib/transition/graph.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 210 lib/transition/graph.c crm_err("Failed on unsupported command type: %s (id=%s)", crm_element_name(action->xml), id); xml 235 lib/transition/graph.c crm_element_name(action->xml), action->id, synapse->id); xml 52 lib/transition/unpack.c action->xml = copy_xml(xml_action); xml 55 lib/transition/unpack.c if (safe_str_eq(crm_element_name(action->xml), XML_GRAPH_TAG_RSC_OP)) { xml 58 lib/transition/unpack.c } else if (safe_str_eq(crm_element_name(action->xml), XML_GRAPH_TAG_PSEUDO_EVENT)) { xml 61 lib/transition/unpack.c } else if (safe_str_eq(crm_element_name(action->xml), XML_GRAPH_TAG_CRM_EVENT)) { xml 65 lib/transition/unpack.c action->params = xml2list(action->xml); xml 255 lib/transition/unpack.c free_xml(action->xml); xml 309 lib/transition/unpack.c action_resource = first_named_child(action->xml, XML_CIB_TAG_RESOURCE); xml 310 lib/transition/unpack.c CRM_CHECK(action_resource != NULL, crm_log_xml_warn(action->xml, "Bad"); xml 317 lib/transition/unpack.c op->op_type = strdup(crm_element_value(action->xml, XML_LRM_ATTR_TASK)); xml 166 lib/transition/utils.c const char *id_string = crm_element_value(input->xml, XML_ATTR_ID); xml 183 lib/transition/utils.c const char *key = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 184 lib/transition/utils.c const char *host = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 198 lib/transition/utils.c const char *key = crm_element_value(input->xml, XML_LRM_ATTR_TASK_KEY); xml 199 lib/transition/utils.c const char *host = crm_element_value(input->xml, XML_LRM_ATTR_TARGET); xml 150 lrmd/ipc_proxy.c ipc_proxy_forward_client(crm_client_t *ipc_proxy, xmlNode *xml) xml 152 lrmd/ipc_proxy.c const char *session = crm_element_value(xml, F_LRMD_IPC_SESSION); xml 153 lrmd/ipc_proxy.c const char *msg_type = crm_element_value(xml, F_LRMD_IPC_OP); xml 154 lrmd/ipc_proxy.c xmlNode *msg = get_message_xml(xml, F_LRMD_IPC_MSG); xml 201 lrmd/ipc_proxy.c crm_element_value_int(xml, F_LRMD_IPC_MSG_ID, &msg_id); xml 109 lrmd/lrmd_private.h void ipc_proxy_forward_client(crm_client_t *client, xmlNode *xml); xml 573 mcp/pacemaker.c xmlNode *xml = create_xml_node(update, "node"); xml 575 mcp/pacemaker.c crm_xml_add_int(xml, "id", node->id); xml 576 mcp/pacemaker.c crm_xml_add(xml, "uname", node->uname); xml 577 mcp/pacemaker.c crm_xml_add(xml, "state", node->state); xml 578 mcp/pacemaker.c crm_xml_add_int(xml, "processes", node->processes); xml 828 mcp/pacemaker.c xmlNode *xml = string2xml(msg); xml 829 mcp/pacemaker.c const char *task = crm_element_value(xml, F_CRM_TASK); xml 839 mcp/pacemaker.c const char *uname = crm_element_value(xml, "uname"); xml 841 mcp/pacemaker.c crm_element_value_int(xml, "proclist", (int *)&procs); xml 851 mcp/pacemaker.c crm_element_value_int(xml, XML_ATTR_ID, &id); xml 852 mcp/pacemaker.c name = crm_element_value(xml, XML_ATTR_UNAME); xml 856 mcp/pacemaker.c if (xml != NULL) { xml 857 mcp/pacemaker.c free_xml(xml); xml 171 pengine/allocate.c value = crm_element_value(rsc->xml, attr_list[attr_lpc]); xml 46 pengine/allocate.h void (*append_meta) (resource_t * rsc, xmlNode * xml); xml 83 pengine/allocate.h extern void native_append_meta(resource_t * rsc, xmlNode * xml); xml 96 pengine/allocate.h extern void group_append_meta(resource_t * rsc, xmlNode * xml); xml 111 pengine/allocate.h extern void container_append_meta(resource_t * rsc, xmlNode * xml); xml 126 pengine/allocate.h extern void clone_append_meta(resource_t * rsc, xmlNode * xml); xml 134 pengine/allocate.h extern void master_append_meta(resource_t * rsc, xmlNode * xml); xml 1424 pengine/clone.c clone_append_meta(resource_t * rsc, xmlNode * xml) xml 1432 pengine/clone.c crm_xml_add(xml, name, is_set(rsc->flags, pe_rsc_unique) ? "true" : "false"); xml 1436 pengine/clone.c crm_xml_add(xml, name, is_set(rsc->flags, pe_rsc_notify) ? "true" : "false"); xml 1440 pengine/clone.c crm_xml_add_int(xml, name, clone_data->clone_max); xml 1444 pengine/clone.c crm_xml_add_int(xml, name, clone_data->clone_node_max); xml 836 pengine/container.c xmlNode *nvpair = get_xpath_object("//nvpair[@name='addr']", tuple->remote->xml, LOG_ERR); xml 935 pengine/container.c container_append_meta(resource_t * rsc, xmlNode * xml) xml 849 pengine/graph.c add_node_to_xml_by_id(const char *id, xmlNode *xml) xml 853 pengine/graph.c node_xml = create_xml_node(xml, XML_CIB_TAG_NODE); xml 867 pengine/graph.c add_node_to_xml(const node_t *node, void *xml) xml 869 pengine/graph.c add_node_to_xml_by_id(node->details->id, (xmlNode *) xml); xml 880 pengine/graph.c add_maintenance_nodes(xmlNode *xml, const pe_working_set_t *data_set) xml 884 pengine/graph.c xml?create_xml_node(xml, XML_GRAPH_TAG_MAINTENANCE):NULL; xml 941 pengine/graph.c add_downed_nodes(xmlNode *xml, const action_t *action, xml 944 pengine/graph.c CRM_CHECK(xml && action && action->node && data_set, return); xml 949 pengine/graph.c xmlNode *downed = create_xml_node(xml, XML_GRAPH_TAG_DOWNED); xml 958 pengine/graph.c xmlNode *downed = create_xml_node(xml, XML_GRAPH_TAG_DOWNED); xml 982 pengine/graph.c xmlNode *downed = create_xml_node(xml, XML_GRAPH_TAG_DOWNED); xml 1090 pengine/graph.c xmlNode *rsc_xml = create_xml_node(action_xml, crm_element_name(action->rsc->xml)); xml 1116 pengine/graph.c const char *xml_id = ID(action->rsc->xml); xml 515 pengine/group.c group_append_meta(resource_t * rsc, xmlNode * xml) xml 1067 pengine/master.c master_append_meta(resource_t * rsc, xmlNode * xml) xml 1074 pengine/master.c clone_append_meta(rsc, xml); xml 1077 pengine/master.c crm_xml_add_int(xml, name, clone_data->master_max); xml 1081 pengine/master.c crm_xml_add_int(xml, name, clone_data->master_node_max); xml 1211 pengine/native.c const char *type = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 1212 pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 2823 pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 3323 pengine/native.c native_append_meta(resource_t * rsc, xmlNode * xml) xml 3332 pengine/native.c crm_xml_add(xml, name, value); xml 3341 pengine/native.c crm_xml_add(xml, name, value); xml 3347 pengine/native.c crm_xml_add(xml, CRM_META"_"XML_RSC_ATTR_CONTAINER, parent->container->id); xml 3364 pengine/native.c crm_xml_add(xml, name, iso_parent->isolation_wrapper); xml 3390 pengine/native.c iso = crm_concat(crm_element_value(last_parent->xml, XML_ATTR_ID), value, '_'); xml 3391 pengine/native.c crm_xml_add(xml, name, iso); xml 3416 pengine/native.c crm_xml_add(xml, name, iso_parent->id); xml 3417 pengine/native.c iso = crm_concat(crm_element_value(iso_parent->xml, XML_ATTR_ID), value, '_'); xml 3418 pengine/native.c crm_xml_add(xml, name, iso); xml 3421 pengine/native.c crm_xml_add(xml, name, iso_parent->id); xml 238 pengine/utilization.c orig_rsc->id, ID(first_child->xml)); xml 169 tools/cibadmin.c print_xml_output(xmlNode * xml) xml 173 tools/cibadmin.c if (!xml) { xml 175 tools/cibadmin.c } else if (xml->type != XML_ELEMENT_NODE) { xml 180 tools/cibadmin.c const char *id = crm_element_value(xml, XML_ATTR_ID); xml 182 tools/cibadmin.c if (safe_str_eq((const char *)xml->name, "xpath-query")) { xml 185 tools/cibadmin.c for (child = xml->children; child; child = child->next) { xml 194 tools/cibadmin.c buffer = dump_xml_formatted(xml); xml 3791 tools/crm_mon.c handle_rsc_op(xmlNode * xml, const char *node_id) xml 3809 tools/crm_mon.c xmlNode *n = xml; xml 3810 tools/crm_mon.c xmlNode * rsc_op = xml; xml 3812 tools/crm_mon.c if(strcmp((const char*)xml->name, XML_LRM_TAG_RSC_OP) != 0) { xml 3815 tools/crm_mon.c for(cIter = xml->children; cIter; cIter = cIter->next) { xml 860 tools/crm_resource.c xmlNode *xml = NULL; xml 871 tools/crm_resource.c xml = create_hello_message(our_pid, crm_system_name, "0", "1"); xml 872 tools/crm_resource.c crm_ipc_send(crmd_channel, xml, 0, 0, NULL); xml 873 tools/crm_resource.c free_xml(xml); xml 98 tools/crm_resource.h int update_working_set_xml(pe_working_set_t *data_set, xmlNode **xml); xml 68 tools/crm_resource_print.c const char *rtype = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 69 tools/crm_resource_print.c const char *rprov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 70 tools/crm_resource_print.c const char *rclass = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 100 tools/crm_resource_print.c crm_element_name(rsc->xml), rsc->id, xml 308 tools/crm_resource_print.c rsc->orig_xml : rsc->xml); xml 340 tools/crm_resource_print.c unpack_instance_attributes(data_set->input, rsc->xml, xml 363 tools/crm_resource_print.c const char *value = crm_element_value(rsc->xml, attr); xml 290 tools/crm_resource_runtime.c const char *tag = crm_element_name(rsc->xml); xml 505 tools/crm_resource_runtime.c value = crm_copy_xml_element(rsc->xml, xml_rsc, XML_ATTR_TYPE); xml 511 tools/crm_resource_runtime.c value = crm_copy_xml_element(rsc->xml, xml_rsc, XML_AGENT_ATTR_CLASS); xml 517 tools/crm_resource_runtime.c crm_copy_xml_element(rsc->xml, xml_rsc, XML_AGENT_ATTR_PROVIDER); xml 905 tools/crm_resource_runtime.c update_working_set_xml(pe_working_set_t *data_set, xmlNode **xml) xml 907 tools/crm_resource_runtime.c if (cli_config_update(xml, NULL, FALSE) == FALSE) { xml 910 tools/crm_resource_runtime.c data_set->input = *xml; xml 1507 tools/crm_resource_runtime.c rclass = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 1508 tools/crm_resource_runtime.c rprov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 1509 tools/crm_resource_runtime.c rtype = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 419 tools/crmadmin.c xmlNode *xml = create_hello_message(admin_uuid, crm_system_name, "0", "1"); xml 421 tools/crmadmin.c crm_ipc_send(crmd_channel, xml, 0, 0, NULL); xml 461 tools/crmadmin.c xmlNode *xml = string2xml(buffer); xml 466 tools/crmadmin.c crm_log_xml_trace(xml, "ipc"); xml 468 tools/crmadmin.c if (xml == NULL) { xml 471 tools/crmadmin.c } else if (validate_crm_message(xml, crm_system_name, admin_uuid, XML_ATTR_RESPONSE) == FALSE) { xml 475 tools/crmadmin.c xmlNode *data = get_message_xml(xml, F_CRM_DATA); xml 480 tools/crmadmin.c crm_element_value(xml, F_CRM_HOST_FROM), xml 488 tools/crmadmin.c const char *dc = crm_element_value(xml, F_CRM_HOST_FROM); xml 497 tools/crmadmin.c free_xml(xml); xml 578 tools/fake_transition.c rclass = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 579 tools/fake_transition.c rtype = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 580 tools/fake_transition.c rprovider = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 610 tools/fake_transition.c const char *node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 611 tools/fake_transition.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 633 tools/fake_transition.c const char *operation = crm_element_value(action->xml, "operation"); xml 638 tools/fake_transition.c xmlNode *action_rsc = first_named_child(action->xml, XML_CIB_TAG_RESOURCE); xml 640 tools/fake_transition.c char *node = crm_element_value_copy(action->xml, XML_LRM_ATTR_TARGET); xml 641 tools/fake_transition.c char *uuid = crm_element_value_copy(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 642 tools/fake_transition.c const char *router_node = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 651 tools/fake_transition.c crm_log_xml_err(action->xml, "Bad"); xml 749 tools/fake_transition.c const char *node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 750 tools/fake_transition.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 751 tools/fake_transition.c xmlNode *rsc = first_named_child(action->xml, XML_CIB_TAG_RESOURCE); xml 768 tools/fake_transition.c char *target = crm_element_value_copy(action->xml, XML_LRM_ATTR_TARGET);