xml 26 daemons/attrd/attrd_attributes.c attrd_create_attribute(xmlNode *xml) xml 30 daemons/attrd/attrd_attributes.c const char *name = crm_element_value(xml, PCMK__XA_ATTR_NAME); xml 31 daemons/attrd/attrd_attributes.c const char *set_type = crm_element_value(xml, PCMK__XA_ATTR_SET_TYPE); xml 32 daemons/attrd/attrd_attributes.c const char *dampen_s = crm_element_value(xml, PCMK__XA_ATTR_DAMPENING); xml 42 daemons/attrd/attrd_attributes.c crm_element_value_int(xml, PCMK__XA_ATTR_IS_PRIVATE, &is_private); xml 58 daemons/attrd/attrd_attributes.c a->set_id = crm_element_value_copy(xml, PCMK__XA_ATTR_SET); xml 59 daemons/attrd/attrd_attributes.c a->uuid = crm_element_value_copy(xml, PCMK__XA_ATTR_UUID); xml 62 daemons/attrd/attrd_attributes.c a->user = crm_element_value_copy(xml, PCMK__XA_ATTR_USER); xml 83 daemons/attrd/attrd_attributes.c attrd_update_dampening(attribute_t *a, xmlNode *xml, const char *attr) xml 85 daemons/attrd/attrd_attributes.c const char *dvalue = crm_element_value(xml, PCMK__XA_ATTR_DAMPENING); xml 139 daemons/attrd/attrd_attributes.c xmlNode *xml = create_xml_node(parent, __func__); xml 141 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_NAME, a->id); xml 142 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_SET, a->set_id); xml 143 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_UUID, a->uuid); xml 144 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_USER, a->user); xml 145 daemons/attrd/attrd_attributes.c pcmk__xe_add_node(xml, v->nodename, v->nodeid); xml 147 daemons/attrd/attrd_attributes.c crm_xml_add_int(xml, PCMK__XA_ATTR_IS_REMOTE, 1); xml 149 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_VALUE, v->current); xml 150 daemons/attrd/attrd_attributes.c crm_xml_add_int(xml, PCMK__XA_ATTR_DAMPENING, a->timeout_ms / 1000); xml 151 daemons/attrd/attrd_attributes.c crm_xml_add_int(xml, PCMK__XA_ATTR_IS_PRIVATE, a->is_private); xml 152 daemons/attrd/attrd_attributes.c crm_xml_add_int(xml, PCMK__XA_ATTR_FORCE, force_write); xml 154 daemons/attrd/attrd_attributes.c return xml; xml 176 daemons/attrd/attrd_attributes.c attrd_populate_attribute(xmlNode *xml, const char *attr) xml 181 daemons/attrd/attrd_attributes.c const char *op = crm_element_value(xml, PCMK__XA_TASK); xml 191 daemons/attrd/attrd_attributes.c a = attrd_create_attribute(xml); xml 204 daemons/attrd/attrd_attributes.c int rc = attrd_update_dampening(a, xml, attr); xml 40 daemons/attrd/attrd_corosync.c attrd_peer_message(crm_node_t *peer, xmlNode *xml) xml 42 daemons/attrd/attrd_corosync.c const char *election_op = crm_element_value(xml, F_CRM_TASK); xml 45 daemons/attrd/attrd_corosync.c attrd_handle_election_op(peer, xml); xml 62 daemons/attrd/attrd_corosync.c .xml = xml, xml 67 daemons/attrd/attrd_corosync.c request.op = crm_element_value_copy(request.xml, PCMK__XA_TASK); xml 75 daemons/attrd/attrd_corosync.c if (pcmk__xe_attr_is_true(xml, PCMK__XA_CONFIRM) && xml 84 daemons/attrd/attrd_corosync.c crm_element_value_int(xml, XML_LRM_ATTR_CALLID, &callid); xml 107 daemons/attrd/attrd_corosync.c xmlNode *xml = NULL; xml 116 daemons/attrd/attrd_corosync.c xml = string2xml(data); xml 119 daemons/attrd/attrd_corosync.c if (xml == NULL) { xml 124 daemons/attrd/attrd_corosync.c attrd_peer_message(peer, xml); xml 127 daemons/attrd/attrd_corosync.c free_xml(xml); xml 205 daemons/attrd/attrd_corosync.c const xmlNode *xml) xml 210 daemons/attrd/attrd_corosync.c crm_element_value_int(xml, PCMK__XA_ATTR_IS_REMOTE, &is_remote); xml 291 daemons/attrd/attrd_corosync.c update_attr_on_host(attribute_t *a, const crm_node_t *peer, const xmlNode *xml, xml 297 daemons/attrd/attrd_corosync.c v = attrd_lookup_or_create_value(a->values, host, xml); xml 352 daemons/attrd/attrd_corosync.c && (crm_element_value_int(xml, PCMK__XA_ATTR_NODE_ID, xml 359 daemons/attrd/attrd_corosync.c attrd_peer_update_one(const crm_node_t *peer, xmlNode *xml, bool filter) xml 362 daemons/attrd/attrd_corosync.c const char *attr = crm_element_value(xml, PCMK__XA_ATTR_NAME); xml 363 daemons/attrd/attrd_corosync.c const char *value = crm_element_value(xml, PCMK__XA_ATTR_VALUE); xml 364 daemons/attrd/attrd_corosync.c const char *host = crm_element_value(xml, PCMK__XA_ATTR_NODE_NAME); xml 372 daemons/attrd/attrd_corosync.c crm_element_value_int(xml, PCMK__XA_ATTR_FORCE, &is_force_write); xml 374 daemons/attrd/attrd_corosync.c a = attrd_populate_attribute(xml, attr); xml 384 daemons/attrd/attrd_corosync.c xml_remove_prop(xml, PCMK__XA_ATTR_NODE_ID); xml 388 daemons/attrd/attrd_corosync.c update_attr_on_host(a, peer, xml, attr, value, host, filter, is_force_write); xml 393 daemons/attrd/attrd_corosync.c update_attr_on_host(a, peer, xml, attr, value, host, filter, is_force_write); xml 456 daemons/attrd/attrd_corosync.c xmlNode *xml = request->xml; xml 457 daemons/attrd/attrd_corosync.c const char *rsc = crm_element_value(xml, PCMK__XA_ATTR_RESOURCE); xml 458 daemons/attrd/attrd_corosync.c const char *host = crm_element_value(xml, PCMK__XA_ATTR_NODE_NAME); xml 459 daemons/attrd/attrd_corosync.c const char *op = crm_element_value(xml, PCMK__XA_ATTR_OPERATION); xml 460 daemons/attrd/attrd_corosync.c const char *interval_spec = crm_element_value(xml, PCMK__XA_ATTR_INTERVAL); xml 474 daemons/attrd/attrd_corosync.c crm_xml_add(xml, PCMK__XA_TASK, PCMK__ATTRD_CMD_UPDATE); xml 477 daemons/attrd/attrd_corosync.c xml_remove_prop(xml, PCMK__XA_ATTR_VALUE); xml 484 daemons/attrd/attrd_corosync.c crm_xml_add(xml, PCMK__XA_ATTR_NAME, attr); xml 485 daemons/attrd/attrd_corosync.c attrd_peer_update(peer, xml, host, false); xml 500 daemons/attrd/attrd_corosync.c attrd_peer_sync_response(const crm_node_t *peer, bool peer_won, xmlNode *xml) xml 513 daemons/attrd/attrd_corosync.c for (xmlNode *child = pcmk__xml_first_child(xml); child != NULL; xml 559 daemons/attrd/attrd_corosync.c attrd_peer_sync(crm_node_t *peer, xmlNode *xml) xml 585 daemons/attrd/attrd_corosync.c attrd_peer_update(const crm_node_t *peer, xmlNode *xml, const char *host, xml 590 daemons/attrd/attrd_corosync.c CRM_CHECK((peer != NULL) && (xml != NULL), return); xml 591 daemons/attrd/attrd_corosync.c if (xml->children != NULL) { xml 592 daemons/attrd/attrd_corosync.c for (xmlNode *child = first_named_child(xml, XML_ATTR_OP); child != NULL; xml 594 daemons/attrd/attrd_corosync.c attrd_copy_xml_attributes(xml, child); xml 603 daemons/attrd/attrd_corosync.c attrd_peer_update_one(peer, xml, filter); xml 605 daemons/attrd/attrd_corosync.c if (attrd_request_has_sync_point(xml)) { xml 615 daemons/attrd/attrd_corosync.c attrd_ack_waitlist_clients(attrd_sync_point_local, xml); xml 67 daemons/attrd/attrd_elections.c attrd_handle_election_op(const crm_node_t *peer, xmlNode *xml) xml 72 daemons/attrd/attrd_elections.c crm_xml_add(xml, F_CRM_HOST_FROM, peer->uname); xml 75 daemons/attrd/attrd_elections.c rc = election_count_vote(writer, xml, !attrd_shutting_down(false)); xml 116 daemons/attrd/attrd_elections.c attrd_check_for_new_writer(const crm_node_t *peer, const xmlNode *xml) xml 120 daemons/attrd/attrd_elections.c crm_element_value_int(xml, PCMK__XA_ATTR_WRITER, &peer_state); xml 178 daemons/attrd/attrd_elections.c attrd_xml_add_writer(xmlNode *xml) xml 180 daemons/attrd/attrd_elections.c crm_xml_add_int(xml, PCMK__XA_ATTR_WRITER, election_state(writer)); xml 101 daemons/attrd/attrd_ipc.c xmlNode *xml = request->xml; xml 108 daemons/attrd/attrd_ipc.c attrd_send_message(NULL, xml, false); xml 113 daemons/attrd/attrd_ipc.c rsc = crm_element_value(xml, PCMK__XA_ATTR_RESOURCE); xml 114 daemons/attrd/attrd_ipc.c op = crm_element_value(xml, PCMK__XA_ATTR_OPERATION); xml 115 daemons/attrd/attrd_ipc.c interval_spec = crm_element_value(xml, PCMK__XA_ATTR_INTERVAL); xml 118 daemons/attrd/attrd_ipc.c crm_xml_add(xml, PCMK__XA_TASK, PCMK__ATTRD_CMD_UPDATE); xml 135 daemons/attrd/attrd_ipc.c crm_xml_add(xml, PCMK__XA_ATTR_PATTERN, pattern); xml 139 daemons/attrd/attrd_ipc.c crm_xml_add(xml, PCMK__XA_ATTR_PATTERN, ATTRD_RE_CLEAR_ALL); xml 143 daemons/attrd/attrd_ipc.c xml_remove_prop(xml, PCMK__XA_ATTR_NAME); xml 144 daemons/attrd/attrd_ipc.c xml_remove_prop(xml, PCMK__XA_ATTR_VALUE); xml 152 daemons/attrd/attrd_ipc.c xmlNode *xml = request->xml; xml 155 daemons/attrd/attrd_ipc.c const char *host = crm_element_value(xml, PCMK__XA_ATTR_NODE_NAME); xml 163 daemons/attrd/attrd_ipc.c crm_element_value_int(xml, PCMK__XA_ATTR_NODE_ID, &nodeid); xml 177 daemons/attrd/attrd_ipc.c pcmk__xe_add_node(xml, host, 0); xml 184 daemons/attrd/attrd_ipc.c attrd_send_message(NULL, xml, false); /* ends up at attrd_peer_message() */ xml 198 daemons/attrd/attrd_ipc.c xmlNode *query = request->xml; xml 242 daemons/attrd/attrd_ipc.c handle_missing_host(xmlNode *xml) xml 244 daemons/attrd/attrd_ipc.c const char *host = crm_element_value(xml, PCMK__XA_ATTR_NODE_NAME); xml 248 daemons/attrd/attrd_ipc.c pcmk__xe_add_node(xml, attrd_cluster->uname, attrd_cluster->nodeid); xml 256 daemons/attrd/attrd_ipc.c expand_regexes(xmlNode *xml, const char *attr, const char *value, const char *regex) xml 273 daemons/attrd/attrd_ipc.c xmlNode *child = create_xml_node(xml, XML_ATTR_OP); xml 281 daemons/attrd/attrd_ipc.c attrd_copy_xml_attributes(xml, child); xml 308 daemons/attrd/attrd_ipc.c xmlNode *xml = request->xml; xml 311 daemons/attrd/attrd_ipc.c const char *attr = crm_element_value(xml, PCMK__XA_ATTR_NAME); xml 312 daemons/attrd/attrd_ipc.c const char *value = crm_element_value(xml, PCMK__XA_ATTR_VALUE); xml 313 daemons/attrd/attrd_ipc.c const char *regex = crm_element_value(xml, PCMK__XA_ATTR_PATTERN); xml 315 daemons/attrd/attrd_ipc.c rc = expand_regexes(xml, attr, value, regex); xml 333 daemons/attrd/attrd_ipc.c handle_value_expansion(const char **value, xmlNode *xml, const char *op, xml 347 daemons/attrd/attrd_ipc.c const char *host = crm_element_value(xml, PCMK__XA_ATTR_NODE_NAME); xml 354 daemons/attrd/attrd_ipc.c crm_xml_add_int(xml, PCMK__XA_ATTR_VALUE, int_value); xml 357 daemons/attrd/attrd_ipc.c *value = crm_element_value(xml, PCMK__XA_ATTR_VALUE); xml 364 daemons/attrd/attrd_ipc.c send_update_msg_to_cluster(pcmk__request_t *request, xmlNode *xml) xml 366 daemons/attrd/attrd_ipc.c if (pcmk__str_eq(attrd_request_sync_point(xml), PCMK__VALUE_CLUSTER, pcmk__str_none)) { xml 372 daemons/attrd/attrd_ipc.c attrd_send_message(NULL, xml, true); /* ends up at attrd_peer_message() */ xml 381 daemons/attrd/attrd_ipc.c attrd_send_message(NULL, xml, false); /* ends up at attrd_peer_message() */ xml 393 daemons/attrd/attrd_ipc.c request->xml = child; xml 401 daemons/attrd/attrd_ipc.c xmlNode *xml = NULL; xml 404 daemons/attrd/attrd_ipc.c CRM_CHECK((request != NULL) && (request->xml != NULL), return NULL); xml 406 daemons/attrd/attrd_ipc.c xml = request->xml; xml 412 daemons/attrd/attrd_ipc.c if (xml->children != NULL) { xml 419 daemons/attrd/attrd_ipc.c for (xmlNode *child = first_named_child(xml, XML_ATTR_OP); child != NULL; xml 433 daemons/attrd/attrd_ipc.c send_update_msg_to_cluster(request, xml); xml 440 daemons/attrd/attrd_ipc.c xmlNode *orig_xml = request->xml; xml 446 daemons/attrd/attrd_ipc.c pcmk__xe_foreach_child(xml, XML_ATTR_OP, send_child_update, request); xml 447 daemons/attrd/attrd_ipc.c request->xml = orig_xml; xml 453 daemons/attrd/attrd_ipc.c attr = crm_element_value(xml, PCMK__XA_ATTR_NAME); xml 454 daemons/attrd/attrd_ipc.c value = crm_element_value(xml, PCMK__XA_ATTR_VALUE); xml 455 daemons/attrd/attrd_ipc.c regex = crm_element_value(xml, PCMK__XA_ATTR_PATTERN); xml 468 daemons/attrd/attrd_ipc.c handle_missing_host(xml); xml 470 daemons/attrd/attrd_ipc.c if (handle_value_expansion(&value, xml, request->op, attr) == EINVAL) { xml 476 daemons/attrd/attrd_ipc.c crm_debug("Broadcasting %s[%s]=%s%s", attr, crm_element_value(xml, PCMK__XA_ATTR_NODE_NAME), xml 479 daemons/attrd/attrd_ipc.c send_update_msg_to_cluster(request, xml); xml 562 daemons/attrd/attrd_ipc.c xmlNode *xml = NULL; xml 571 daemons/attrd/attrd_ipc.c xml = pcmk__client_data2xml(client, data, &id, &flags); xml 573 daemons/attrd/attrd_ipc.c if (xml == NULL) { xml 584 daemons/attrd/attrd_ipc.c .xml = xml, xml 590 daemons/attrd/attrd_ipc.c pcmk__update_acl_user(xml, PCMK__XA_ATTR_USER, client->user); xml 592 daemons/attrd/attrd_ipc.c request.op = crm_element_value_copy(request.xml, PCMK__XA_TASK); xml 599 daemons/attrd/attrd_ipc.c free_xml(xml); xml 30 daemons/attrd/attrd_messages.c remove_sync_point_attribute(xmlNode *xml, void *data) xml 32 daemons/attrd/attrd_messages.c pcmk__xe_remove_matching_attrs(xml, is_sync_point_attr, NULL); xml 33 daemons/attrd/attrd_messages.c pcmk__xe_foreach_child(xml, XML_ATTR_OP, remove_sync_point_attribute, NULL); xml 45 daemons/attrd/attrd_messages.c if (request->xml->children != NULL && !ATTRD_SUPPORTS_MULTI_MESSAGE(minimum_protocol_version) && xml 46 daemons/attrd/attrd_messages.c attrd_request_has_sync_point(request->xml)) { xml 49 daemons/attrd/attrd_messages.c remove_sync_point_attribute(request->xml, NULL); xml 77 daemons/attrd/attrd_messages.c if (attrd_request_has_sync_point(request->xml)) { xml 108 daemons/attrd/attrd_messages.c if (crm_element_value_int(request->xml, XML_LRM_ATTR_CALLID, &callid) == -1) { xml 150 daemons/attrd/attrd_messages.c const char *host = crm_element_value(request->xml, PCMK__XA_ATTR_NODE_NAME); xml 175 daemons/attrd/attrd_messages.c attrd_peer_sync(peer, request->xml); xml 191 daemons/attrd/attrd_messages.c bool peer_won = attrd_check_for_new_writer(peer, request->xml); xml 194 daemons/attrd/attrd_messages.c attrd_peer_sync_response(peer, peer_won, request->xml); xml 207 daemons/attrd/attrd_messages.c const char *host = crm_element_value(request->xml, PCMK__XA_ATTR_NODE_NAME); xml 210 daemons/attrd/attrd_messages.c attrd_peer_update(peer, request->xml, host, false); xml 217 daemons/attrd/attrd_messages.c if (attrd_request_has_sync_point(request->xml)) { xml 85 daemons/attrd/attrd_sync.c void *xml; xml 137 daemons/attrd/attrd_sync.c const char *sync_point = attrd_request_sync_point(request->xml); xml 178 daemons/attrd/attrd_sync.c crm_xml_add_int(request->xml, XML_LRM_ATTR_CALLID, waitlist_client); xml 239 daemons/attrd/attrd_sync.c attrd_ack_waitlist_clients(enum attrd_sync_point sync_point, const xmlNode *xml) xml 248 daemons/attrd/attrd_sync.c if (crm_element_value_int(xml, XML_LRM_ATTR_CALLID, &callid) == -1) { xml 289 daemons/attrd/attrd_sync.c attrd_cluster_sync_point_update(xmlNode *xml) xml 292 daemons/attrd/attrd_sync.c attrd_ack_waitlist_clients(attrd_sync_point_cluster, xml); xml 314 daemons/attrd/attrd_sync.c attrd_request_sync_point(xmlNode *xml) xml 316 daemons/attrd/attrd_sync.c CRM_CHECK(xml != NULL, return NULL); xml 318 daemons/attrd/attrd_sync.c if (xml->children != NULL) { xml 319 daemons/attrd/attrd_sync.c xmlNode *child = pcmk__xe_match(xml, XML_ATTR_OP, PCMK__XA_ATTR_SYNC_POINT, NULL); xml 328 daemons/attrd/attrd_sync.c return crm_element_value(xml, PCMK__XA_ATTR_SYNC_POINT); xml 341 daemons/attrd/attrd_sync.c attrd_request_has_sync_point(xmlNode *xml) xml 343 daemons/attrd/attrd_sync.c return attrd_request_sync_point(xml) != NULL; xml 352 daemons/attrd/attrd_sync.c free_xml(action->xml); xml 489 daemons/attrd/attrd_sync.c if (crm_element_value_int(request->xml, XML_LRM_ATTR_CALLID, &callid) == -1) { xml 514 daemons/attrd/attrd_sync.c action->xml = copy_xml(request->xml); xml 575 daemons/attrd/attrd_sync.c action->fn(action->xml); xml 113 daemons/attrd/pacemaker-attrd.h void attrd_handle_election_op(const crm_node_t *peer, xmlNode *xml); xml 114 daemons/attrd/pacemaker-attrd.h bool attrd_check_for_new_writer(const crm_node_t *peer, const xmlNode *xml); xml 117 daemons/attrd/pacemaker-attrd.h void attrd_xml_add_writer(xmlNode *xml); xml 157 daemons/attrd/pacemaker-attrd.h void attrd_peer_update(const crm_node_t *peer, xmlNode *xml, const char *host, xml 159 daemons/attrd/pacemaker-attrd.h void attrd_peer_sync(crm_node_t *peer, xmlNode *xml); xml 163 daemons/attrd/pacemaker-attrd.h xmlNode *xml); xml 178 daemons/attrd/pacemaker-attrd.h attribute_t *attrd_populate_attribute(xmlNode *xml, const char *attr); xml 206 daemons/attrd/pacemaker-attrd.h void attrd_ack_waitlist_clients(enum attrd_sync_point sync_point, const xmlNode *xml); xml 207 daemons/attrd/pacemaker-attrd.h int attrd_cluster_sync_point_update(xmlNode *xml); xml 214 daemons/attrd/pacemaker-attrd.h const char *attrd_request_sync_point(xmlNode *xml); xml 215 daemons/attrd/pacemaker-attrd.h bool attrd_request_has_sync_point(xmlNode *xml); xml 106 daemons/based/based_notify.c cib_notify_send(const xmlNode *xml) xml 112 daemons/based/based_notify.c int rc = pcmk__ipc_prepare_iov(0, xml, 0, &iov, &bytes); xml 115 daemons/based/based_notify.c update.msg = xml; xml 307 daemons/based/pacemaker-based.c xmlNode *xml = NULL; xml 315 daemons/based/pacemaker-based.c xml = string2xml(data); xml 316 daemons/based/pacemaker-based.c if (xml == NULL) { xml 321 daemons/based/pacemaker-based.c crm_xml_add(xml, F_ORIG, from); xml 323 daemons/based/pacemaker-based.c cib_peer_callback(xml, NULL); xml 326 daemons/based/pacemaker-based.c free_xml(xml); xml 277 daemons/controld/controld_callbacks.c const char *task = crm_element_value(down->xml, XML_LRM_ATTR_TASK); xml 879 daemons/controld/controld_cib.c xmlNode *xml = NULL; xml 896 daemons/controld/controld_cib.c xml = create_xml_node(update, XML_CIB_TAG_STATE); xml 902 daemons/controld/controld_cib.c pcmk__xe_set_bool_attr(xml, XML_NODE_IS_REMOTE, true); xml 904 daemons/controld/controld_cib.c crm_xml_add(xml, XML_ATTR_ID, node_id); xml 905 daemons/controld/controld_cib.c crm_xml_add(xml, XML_ATTR_UNAME, node_name); xml 906 daemons/controld/controld_cib.c crm_xml_add(xml, XML_ATTR_ORIGIN, __func__); xml 909 daemons/controld/controld_cib.c xml = create_xml_node(xml, XML_CIB_TAG_LRM); xml 910 daemons/controld/controld_cib.c crm_xml_add(xml, XML_ATTR_ID, node_id); xml 913 daemons/controld/controld_cib.c xml = create_xml_node(xml, XML_LRM_TAG_RESOURCES); xml 916 daemons/controld/controld_cib.c xml = create_xml_node(xml, XML_LRM_TAG_RESOURCE); xml 917 daemons/controld/controld_cib.c crm_xml_add(xml, XML_ATTR_ID, op->rsc_id); xml 918 daemons/controld/controld_cib.c crm_xml_add(xml, XML_AGENT_ATTR_CLASS, rsc->standard); xml 919 daemons/controld/controld_cib.c crm_xml_add(xml, XML_AGENT_ATTR_PROVIDER, rsc->provider); xml 920 daemons/controld/controld_cib.c crm_xml_add(xml, XML_ATTR_TYPE, rsc->type); xml 928 daemons/controld/controld_cib.c crm_xml_add_ll(xml, XML_CONFIG_ATTR_SHUTDOWN_LOCK, xml 937 daemons/controld/controld_cib.c crm_xml_add(xml, XML_RSC_ATTR_CONTAINER, container); xml 942 daemons/controld/controld_cib.c controld_add_resource_history_xml(xml, rsc, op, node_name); xml 41 daemons/controld/controld_corosync.c xmlNode *xml = string2xml(data); xml 43 daemons/controld/controld_corosync.c if (xml == NULL) { xml 49 daemons/controld/controld_corosync.c crm_xml_add(xml, F_ORIG, from); xml 62 daemons/controld/controld_corosync.c crmd_ha_msg_filter(xml); xml 63 daemons/controld/controld_corosync.c free_xml(xml); xml 269 daemons/controld/controld_execd.c lrmd_event_data_t *op = construct_op(lrm_state, input->xml, rsc_id, task); xml 670 daemons/controld/controld_execd.c op = construct_op(lrm_state, input->xml, rsc_id, PCMK_ACTION_DELETE); xml 1144 daemons/controld/controld_execd.c lrm_op_target(const xmlNode *xml) xml 1148 daemons/controld/controld_execd.c if (xml) { xml 1149 daemons/controld/controld_execd.c target = crm_element_value(xml, XML_LRM_ATTR_TARGET); xml 1158 daemons/controld/controld_execd.c fail_lrm_resource(xmlNode *xml, lrm_state_t *lrm_state, const char *user_name, xml 1163 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(xml, XML_CIB_TAG_RESOURCE, TRUE); xml 1175 daemons/controld/controld_execd.c op = construct_op(lrm_state, xml, ID(xml_rsc), "asyncmon"); xml 1196 daemons/controld/controld_execd.c process_lrm_event(lrm_state, op, NULL, xml); xml 1202 daemons/controld/controld_execd.c crm_log_xml_warn(xml, "bad input"); xml 1245 daemons/controld/controld_execd.c xmlNode *params = find_xml_node(input->xml, XML_TAG_ATTRS, TRUE); xml 1332 daemons/controld/controld_execd.c op = construct_op(lrm_state, input->xml, rsc->id, PCMK_ACTION_DELETE); xml 1417 daemons/controld/controld_execd.c const char *target_node = lrm_op_target(input->xml); xml 1429 daemons/controld/controld_execd.c synthesize_lrmd_failure(NULL, input->xml, PCMK_EXEC_NOT_CONNECTED, xml 1449 daemons/controld/controld_execd.c } else if (input->xml != NULL) { xml 1450 daemons/controld/controld_execd.c operation = crm_element_value(input->xml, XML_LRM_ATTR_TASK); xml 1461 daemons/controld/controld_execd.c fail_lrm_resource(input->xml, lrm_state, user_name, from_host, xml 1481 daemons/controld/controld_execd.c if (input->xml != NULL) { xml 1483 daemons/controld/controld_execd.c raw_target = crm_element_value(input->xml, XML_LRM_ATTR_TARGET); xml 1490 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(input->xml, XML_CIB_TAG_RESOURCE, TRUE); xml 1500 daemons/controld/controld_execd.c synthesize_lrmd_failure(lrm_state, input->xml, xml 1513 daemons/controld/controld_execd.c rc, pcmk_strerror(rc), ID(input->xml)); xml 1522 daemons/controld/controld_execd.c synthesize_lrmd_failure(lrm_state, input->xml, PCMK_EXEC_ERROR, xml 1533 daemons/controld/controld_execd.c synthesize_lrmd_failure(lrm_state, input->xml, PCMK_EXEC_ERROR, xml 1541 daemons/controld/controld_execd.c crm_log_xml_warn(input->xml, "Bad command"); xml 1580 daemons/controld/controld_execd.c data = new_metadata_cb_data(rsc, input->xml); xml 1589 daemons/controld/controld_execd.c do_lrm_rsc_op(lrm_state, rsc, input->xml, md); xml 2252 daemons/controld/controld_execd.c xmlNode *xml = find_xml_node(action_xml, XML_CIB_TAG_RESOURCE, TRUE); xml 2254 daemons/controld/controld_execd.c const char *standard = crm_element_value(xml, XML_AGENT_ATTR_CLASS); xml 2255 daemons/controld/controld_execd.c const char *provider = crm_element_value(xml, XML_AGENT_ATTR_PROVIDER); xml 2256 daemons/controld/controld_execd.c const char *type = crm_element_value(xml, XML_ATTR_TYPE); xml 427 daemons/controld/controld_fencing.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 430 daemons/controld/controld_fencing.c last_action = action->xml; xml 433 daemons/controld/controld_fencing.c action->id, ID(action->xml)); xml 832 daemons/controld/controld_fencing.c target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 841 daemons/controld/controld_fencing.c const char *uuid = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 955 daemons/controld/controld_fencing.c const char *id = ID(action->xml); xml 956 daemons/controld/controld_fencing.c const char *uuid = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 957 daemons/controld/controld_fencing.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 972 daemons/controld/controld_fencing.c crm_log_xml_warn(action->xml, "BadAction"); xml 534 daemons/controld/controld_fsa.c crm_log_xml_trace(ha_input->xml, "FSA message data"); xml 409 daemons/controld/controld_join_dc.c generation = join_ack->xml; xml 505 daemons/controld/controld_join_dc.c max_generation_xml = copy_xml(join_ack->xml); xml 707 daemons/controld/controld_join_dc.c xmlNode *state = join_ack->xml; xml 170 daemons/controld/controld_lrm.h void remote_ra_process_pseudo(xmlNode *xml); xml 172 daemons/controld/controld_lrm.h void remote_ra_process_maintenance_nodes(xmlNode *xml); xml 198 daemons/controld/controld_messages.c copy->xml = get_message_xml(copy->msg, F_CRM_DATA); xml 849 daemons/controld/controld_messages.c xmlNode *xml = create_xml_node(reply_data, XML_CIB_TAG_NODE); xml 851 daemons/controld/controld_messages.c crm_xml_add_ll(xml, XML_ATTR_ID, (long long) node->id); // uint32_t xml 852 daemons/controld/controld_messages.c crm_xml_add(xml, XML_ATTR_UNAME, node->uname); xml 853 daemons/controld/controld_messages.c crm_xml_add(xml, PCMK__XA_IN_CCM, node->state); xml 1161 daemons/controld/controld_messages.c xmlNode *xml = get_message_xml(stored_msg, F_CRM_DATA); xml 1163 daemons/controld/controld_messages.c remote_ra_process_maintenance_nodes(xml); xml 1279 daemons/controld/controld_messages.c fsa_input.xml = get_message_xml(msg, F_CRM_DATA); xml 21 daemons/controld/controld_messages.h xmlNode *xml; xml 1361 daemons/controld/controld_remote_ra.c remote_ra_process_pseudo(xmlNode *xml) xml 1363 daemons/controld/controld_remote_ra.c xmlXPathObjectPtr search = xpath_search(xml, XPATH_PSEUDO_FENCE); xml 1430 daemons/controld/controld_remote_ra.c remote_ra_process_maintenance_nodes(xmlNode *xml) xml 1432 daemons/controld/controld_remote_ra.c xmlXPathObjectPtr search = xpath_search(xml, XPATH_PSEUDO_MAINTENANCE); xml 373 daemons/controld/controld_schedulerd.c force_local_option(xmlNode *xml, const char *attr_name, const char *attr_value) xml 390 daemons/controld/controld_schedulerd.c xpathObj = xpath_search(xml, xpath_string); xml 408 daemons/controld/controld_schedulerd.c configuration = pcmk__xe_match(xml, XML_CIB_TAG_CONFIGURATION, NULL, xml 411 daemons/controld/controld_schedulerd.c configuration = create_xml_node(xml, XML_CIB_TAG_CONFIGURATION); xml 427 daemons/controld/controld_schedulerd.c xml = create_xml_node(cluster_property_set, XML_CIB_TAG_NVPAIR); xml 429 daemons/controld/controld_schedulerd.c crm_xml_set_id(xml, "%s-%s", CIB_OPTIONS_FIRST, attr_name); xml 430 daemons/controld/controld_schedulerd.c crm_xml_add(xml, XML_NVPAIR_ATTR_NAME, attr_name); xml 431 daemons/controld/controld_schedulerd.c crm_xml_add(xml, XML_NVPAIR_ATTR_VALUE, attr_value); xml 47 daemons/controld/controld_te_actions.c const char *task = crm_element_value(pseudo->xml, XML_LRM_ATTR_TASK); xml 63 daemons/controld/controld_te_actions.c cmd = create_request(task, pseudo->xml, node->uname, xml 69 daemons/controld/controld_te_actions.c remote_ra_process_maintenance_nodes(pseudo->xml); xml 72 daemons/controld/controld_te_actions.c remote_ra_process_pseudo(pseudo->xml); xml 76 daemons/controld/controld_te_actions.c crm_element_value(pseudo->xml, XML_LRM_ATTR_TASK_KEY)); xml 116 daemons/controld/controld_te_actions.c id = ID(action->xml); xml 119 daemons/controld/controld_te_actions.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 122 daemons/controld/controld_te_actions.c on_node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 125 daemons/controld/controld_te_actions.c router_node = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 129 daemons/controld/controld_te_actions.c const char *mode = crm_element_value(action->xml, PCMK__XA_MODE); xml 166 daemons/controld/controld_te_actions.c cmd = create_request(task, action->xml, router_node, CRM_SYSTEM_CRMD, CRM_SYSTEM_TENGINE, NULL); xml 216 daemons/controld/controld_te_actions.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 225 daemons/controld/controld_te_actions.c router_node = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 257 daemons/controld/controld_te_actions.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 258 daemons/controld/controld_te_actions.c const char *task_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 259 daemons/controld/controld_te_actions.c const char *target_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 263 daemons/controld/controld_te_actions.c action_rsc = find_xml_node(action->xml, XML_CIB_TAG_RESOURCE, TRUE); xml 270 daemons/controld/controld_te_actions.c crm_log_xml_err(action->xml, "Bad:action"); return); xml 316 daemons/controld/controld_te_actions.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 317 daemons/controld/controld_te_actions.c const char *task_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 322 daemons/controld/controld_te_actions.c action->xml->name, action->id, task_uuid, target); xml 362 daemons/controld/controld_te_actions.c CRM_ASSERT(action->xml != NULL); xml 365 daemons/controld/controld_te_actions.c on_node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 369 daemons/controld/controld_te_actions.c ID(action->xml), pcmk__s(task, "without task")); xml 372 daemons/controld/controld_te_actions.c rsc_op = action->xml; xml 374 daemons/controld/controld_te_actions.c task_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 407 daemons/controld/controld_te_actions.c .xml = rsc_op, xml 518 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 519 daemons/controld/controld_te_actions.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 530 daemons/controld/controld_te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 542 daemons/controld/controld_te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 564 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 565 daemons/controld/controld_te_actions.c const char *id = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 616 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 627 daemons/controld/controld_te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 640 daemons/controld/controld_te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 657 daemons/controld/controld_te_actions.c && (crm_element_value(action->xml, XML_LRM_ATTR_TARGET) != NULL)) { xml 219 daemons/controld/controld_te_callbacks.c process_resource_updates(const char *node, xmlNode *xml, xmlNode *change, xml 224 daemons/controld/controld_te_callbacks.c if (xml == NULL) { xml 228 daemons/controld/controld_te_callbacks.c if (pcmk__xe_is(xml, XML_CIB_TAG_LRM)) { xml 229 daemons/controld/controld_te_callbacks.c xml = first_named_child(xml, XML_LRM_TAG_RESOURCES); xml 230 daemons/controld/controld_te_callbacks.c CRM_CHECK(xml != NULL, return); xml 233 daemons/controld/controld_te_callbacks.c CRM_CHECK(pcmk__xe_is(xml, XML_LRM_TAG_RESOURCES), return); xml 248 daemons/controld/controld_te_callbacks.c && (xml->children != NULL) && (xml->children->next != NULL)) { xml 256 daemons/controld/controld_te_callbacks.c for (rsc = pcmk__xml_first_child(xml); rsc != NULL; xml 656 daemons/controld/controld_te_callbacks.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 657 daemons/controld/controld_te_callbacks.c on_node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 658 daemons/controld/controld_te_callbacks.c via_node = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 112 daemons/controld/controld_te_events.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 119 daemons/controld/controld_te_events.c target_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 120 daemons/controld/controld_te_events.c router = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 131 daemons/controld/controld_te_events.c last_action = action->xml; xml 137 daemons/controld/controld_te_events.c action->id, crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY), down_node); xml 140 daemons/controld/controld_te_events.c action->id, crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY), down_node); xml 316 daemons/controld/controld_te_events.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 321 daemons/controld/controld_te_events.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 327 daemons/controld/controld_te_events.c target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 351 daemons/controld/controld_te_events.c op_key = crm_element_value(cancel->xml, XML_LRM_ATTR_TASK_KEY); xml 352 daemons/controld/controld_te_events.c node_name = crm_element_value(cancel->xml, XML_LRM_ATTR_TARGET); xml 392 daemons/controld/controld_te_events.c xpath_ret = xpath_search(match->xml, xpath); xml 408 daemons/controld/controld_te_events.c crm_element_value(match->xml, XML_LRM_ATTR_TASK_KEY), target); xml 362 daemons/controld/controld_throttle.c xmlNode *xml = NULL; xml 370 daemons/controld/controld_throttle.c xml = create_request(CRM_OP_THROTTLE, NULL, NULL, CRM_SYSTEM_CRMD, CRM_SYSTEM_CRMD, NULL); xml 371 daemons/controld/controld_throttle.c crm_xml_add_int(xml, F_CRM_THROTTLE_MODE, mode); xml 372 daemons/controld/controld_throttle.c crm_xml_add_int(xml, F_CRM_THROTTLE_MAX, throttle_job_max); xml 374 daemons/controld/controld_throttle.c send_cluster_message(NULL, crm_msg_crmd, xml, TRUE); xml 375 daemons/controld/controld_throttle.c free_xml(xml); xml 550 daemons/controld/controld_throttle.c throttle_update(xmlNode *xml) xml 555 daemons/controld/controld_throttle.c const char *from = crm_element_value(xml, F_CRM_HOST_FROM); xml 557 daemons/controld/controld_throttle.c crm_element_value_int(xml, F_CRM_THROTTLE_MODE, &mode); xml 558 daemons/controld/controld_throttle.c crm_element_value_int(xml, F_CRM_THROTTLE_MAX, &max); xml 14 daemons/controld/controld_throttle.h void throttle_update(xmlNode *xml); xml 126 daemons/controld/controld_transition.c xmlNode *graph_data = input->xml; xml 182 daemons/controld/controld_transition.c if (graph_data != input->xml) { xml 100 daemons/execd/pacemaker-execd.h void ipc_proxy_forward_client(pcmk__client_t *client, xmlNode *xml); xml 148 daemons/execd/remoted_proxy.c ipc_proxy_forward_client(pcmk__client_t *ipc_proxy, xmlNode *xml) xml 150 daemons/execd/remoted_proxy.c const char *session = crm_element_value(xml, F_LRMD_IPC_SESSION); xml 151 daemons/execd/remoted_proxy.c const char *msg_type = crm_element_value(xml, F_LRMD_IPC_OP); xml 152 daemons/execd/remoted_proxy.c xmlNode *msg = get_message_xml(xml, F_LRMD_IPC_MSG); xml 201 daemons/execd/remoted_proxy.c crm_element_value_int(xml, F_LRMD_IPC_MSG_ID, &msg_id); xml 407 daemons/fenced/fenced_cib.c xmlNode *xml; xml 409 daemons/fenced/fenced_cib.c xml = create_device_registration_xml( xml 418 daemons/fenced/fenced_cib.c rc = stonith_device_register(xml, TRUE); xml 419 daemons/fenced/fenced_cib.c free_xml(xml); xml 899 daemons/fenced/fenced_commands.c is_nodeid_required(xmlNode * xml) xml 907 daemons/fenced/fenced_commands.c if (!xml) { xml 911 daemons/fenced/fenced_commands.c xpath = xpath_search(xml, "//parameter[@name='nodeid']"); xml 1662 daemons/fenced/fenced_commands.c unpack_level_request(xmlNode *xml, enum fenced_target_by *mode, char **target, xml 1673 daemons/fenced/fenced_commands.c if ((xml != NULL) && !pcmk__xe_is(xml, XML_TAG_FENCING_LEVEL)) { xml 1674 daemons/fenced/fenced_commands.c xml = get_xpath_object("//" XML_TAG_FENCING_LEVEL, xml, LOG_WARNING); xml 1677 daemons/fenced/fenced_commands.c if (xml == NULL) { xml 1682 daemons/fenced/fenced_commands.c local_mode = unpack_level_kind(xml); xml 1683 daemons/fenced/fenced_commands.c local_target = stonith_level_key(xml, local_mode); xml 1684 daemons/fenced/fenced_commands.c crm_element_value_int(xml, XML_ATTR_STONITH_INDEX, &local_id); xml 1703 daemons/fenced/fenced_commands.c return xml; xml 2296 daemons/fenced/fenced_commands.c add_action_specific_attributes(xmlNode *xml, const char *action, xml 2304 daemons/fenced/fenced_commands.c CRM_CHECK(xml && action && device, return); xml 2308 daemons/fenced/fenced_commands.c crm_xml_add_int(xml, F_STONITH_DEVICE_REQUIRED, 1); xml 2315 daemons/fenced/fenced_commands.c crm_xml_add_int(xml, F_STONITH_ACTION_TIMEOUT, action_specific_timeout); xml 2322 daemons/fenced/fenced_commands.c crm_xml_add_int(xml, F_STONITH_DELAY_MAX, delay_max); xml 2327 daemons/fenced/fenced_commands.c crm_xml_add_int(xml, F_STONITH_DELAY_BASE, delay_base); xml 2354 daemons/fenced/fenced_commands.c add_disallowed(xmlNode *xml, const char *action, const stonith_device_t *device, xml 2360 daemons/fenced/fenced_commands.c pcmk__xe_set_bool_attr(xml, F_STONITH_ACTION_DISALLOWED, true); xml 2375 daemons/fenced/fenced_commands.c add_action_reply(xmlNode *xml, const char *action, xml 2379 daemons/fenced/fenced_commands.c xmlNode *child = create_xml_node(xml, F_STONITH_ACTION); xml 3179 daemons/fenced/fenced_commands.c execute_agent_action(request->xml, &request->result); xml 3183 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3190 daemons/fenced/fenced_commands.c const char *call_id = crm_element_value(request->xml, F_STONITH_CALLID); xml 3191 daemons/fenced/fenced_commands.c const char *client_id = crm_element_value(request->xml, F_STONITH_CLIENTID); xml 3194 daemons/fenced/fenced_commands.c crm_element_value_int(request->xml, F_STONITH_TIMEOUT, &op_timeout); xml 3208 daemons/fenced/fenced_commands.c const char *client_id = crm_element_value(request->xml, F_STONITH_CLIENTID); xml 3213 daemons/fenced/fenced_commands.c create_remote_stonith_op(client_id, request->xml, TRUE); xml 3217 daemons/fenced/fenced_commands.c remove_relay_op(request->xml); xml 3221 daemons/fenced/fenced_commands.c dev = get_xpath_object("//@" F_STONITH_ACTION, request->xml, LOG_NEVER); xml 3232 daemons/fenced/fenced_commands.c crm_log_xml_trace(request->xml, "Query"); xml 3237 daemons/fenced/fenced_commands.c query->reply = fenced_construct_reply(request->xml, NULL, &request->result); xml 3244 daemons/fenced/fenced_commands.c crm_element_value_int(request->xml, F_STONITH_TIMEOUT, &timeout); xml 3258 daemons/fenced/fenced_commands.c flag_name = crm_element_value(request->xml, F_STONITH_NOTIFY_ACTIVATE); xml 3265 daemons/fenced/fenced_commands.c flag_name = crm_element_value(request->xml, F_STONITH_NOTIFY_DEACTIVATE); xml 3283 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request->xml, xml 3293 daemons/fenced/fenced_commands.c if (initiate_remote_stonith_op(NULL, request->xml, FALSE) == NULL) { xml 3295 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3307 daemons/fenced/fenced_commands.c fence_locally(request->xml, &request->result); xml 3311 daemons/fenced/fenced_commands.c request->xml)) { xml 3327 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request->xml, xml 3343 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, xml 3359 daemons/fenced/fenced_commands.c client_id = crm_element_value(request->xml, F_STONITH_CLIENTID); xml 3368 daemons/fenced/fenced_commands.c op = create_remote_stonith_op(client_id, request->xml, FALSE); xml 3370 daemons/fenced/fenced_commands.c crm_xml_add(request->xml, F_STONITH_OPERATION, STONITH_OP_RELAY); xml 3371 daemons/fenced/fenced_commands.c crm_xml_add(request->xml, F_STONITH_CLIENTID, xml 3373 daemons/fenced/fenced_commands.c crm_xml_add(request->xml, F_STONITH_REMOTE_OP_ID, op->id); xml 3375 daemons/fenced/fenced_commands.c crm_msg_stonith_ng, request->xml, FALSE); xml 3379 daemons/fenced/fenced_commands.c } else if (initiate_remote_stonith_op(request->ipc_client, request->xml, xml 3392 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3402 daemons/fenced/fenced_commands.c stonith_fence_history(request->xml, &data, request->peer, xml 3409 daemons/fenced/fenced_commands.c reply = fenced_construct_reply(request->xml, data, &request->result); xml 3419 daemons/fenced/fenced_commands.c const char *op = crm_element_value(request->xml, F_STONITH_OPERATION); xml 3420 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, request->xml, xml 3437 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3444 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, request->xml, xml 3447 daemons/fenced/fenced_commands.c const char *op = crm_element_value(request->xml, F_STONITH_OPERATION); xml 3458 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3466 daemons/fenced/fenced_commands.c const char *op = crm_element_value(request->xml, F_STONITH_OPERATION); xml 3469 daemons/fenced/fenced_commands.c fenced_register_level(request->xml, &desc, &request->result); xml 3471 daemons/fenced/fenced_commands.c unpack_level_request(request->xml, NULL, NULL, NULL, &desc); xml 3478 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3486 daemons/fenced/fenced_commands.c const char *op = crm_element_value(request->xml, F_STONITH_OPERATION); xml 3489 daemons/fenced/fenced_commands.c fenced_unregister_level(request->xml, &desc, &request->result); xml 3491 daemons/fenced/fenced_commands.c unpack_level_request(request->xml, NULL, NULL, NULL, &desc); xml 3498 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3508 daemons/fenced/fenced_commands.c crm_element_value_int(request->xml, XML_ATTR_ID, &node_id); xml 3509 daemons/fenced/fenced_commands.c name = crm_element_value(request->xml, XML_ATTR_UNAME); xml 3523 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3661 daemons/fenced/fenced_commands.c .xml = message, xml 3666 daemons/fenced/fenced_commands.c request.op = crm_element_value_copy(request.xml, F_STONITH_OPERATION); xml 510 daemons/fenced/fenced_remote.c delegate_from_xml(xmlNode *xml) xml 512 daemons/fenced/fenced_remote.c xmlNode *match = get_xpath_object("//@" F_STONITH_DELEGATE, xml, LOG_NEVER); xml 515 daemons/fenced/fenced_remote.c return crm_element_value_copy(xml, F_ORIG); xml 2076 daemons/fenced/fenced_remote.c parse_action_specific(const xmlNode *xml, const char *peer, const char *device, xml 2081 daemons/fenced/fenced_remote.c crm_element_value_int(xml, F_STONITH_ACTION_TIMEOUT, xml 2089 daemons/fenced/fenced_remote.c crm_element_value_int(xml, F_STONITH_DELAY_MAX, &props->delay_max[phase]); xml 2096 daemons/fenced/fenced_remote.c crm_element_value_int(xml, F_STONITH_DELAY_BASE, &props->delay_base[phase]); xml 2106 daemons/fenced/fenced_remote.c crm_element_value_int(xml, F_STONITH_DEVICE_REQUIRED, &required); xml 2117 daemons/fenced/fenced_remote.c if (pcmk__xe_attr_is_true(xml, F_STONITH_ACTION_DISALLOWED)) { xml 2134 daemons/fenced/fenced_remote.c add_device_properties(const xmlNode *xml, remote_fencing_op_t *op, xml 2147 daemons/fenced/fenced_remote.c crm_element_value_int(xml, F_STONITH_DEVICE_VERIFIED, &verified); xml 2154 daemons/fenced/fenced_remote.c crm_element_value_int(xml, F_STONITH_DEVICE_SUPPORT_FLAGS, &flags); xml 2158 daemons/fenced/fenced_remote.c parse_action_specific(xml, peer->host, device, op_requested_action(op), xml 2160 daemons/fenced/fenced_remote.c for (child = pcmk__xml_first_child(xml); child != NULL; xml 2189 daemons/fenced/fenced_remote.c const xmlNode *xml) xml 2201 daemons/fenced/fenced_remote.c for (child = pcmk__xml_first_child(xml); child != NULL; xml 113 daemons/fenced/fenced_scheduler.c xmlNode *xml = NULL; xml 134 daemons/fenced/fenced_scheduler.c rclass = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 180 daemons/fenced/fenced_scheduler.c agent = crm_element_value(rsc->xml, XML_EXPR_ATTR_TYPE); xml 194 daemons/fenced/fenced_scheduler.c xml = create_device_registration_xml(pcmk__s(rsc->clone_name, rsc->id), xml 198 daemons/fenced/fenced_scheduler.c CRM_ASSERT(stonith_device_register(xml, TRUE) == pcmk_ok); xml 199 daemons/fenced/fenced_scheduler.c free_xml(xml); xml 198 daemons/fenced/pacemaker-fenced.c xmlNode *xml = NULL; xml 206 daemons/fenced/pacemaker-fenced.c xml = string2xml(data); xml 207 daemons/fenced/pacemaker-fenced.c if (xml == NULL) { xml 212 daemons/fenced/pacemaker-fenced.c crm_xml_add(xml, F_ORIG, from); xml 214 daemons/fenced/pacemaker-fenced.c stonith_peer_callback(xml, NULL); xml 217 daemons/fenced/pacemaker-fenced.c free_xml(xml); xml 40 daemons/pacemakerd/pcmkd_messages.c xmlNode *msg = request->xml; xml 96 daemons/pacemakerd/pcmkd_messages.c xmlNode *msg = request->xml; xml 233 daemons/pacemakerd/pcmkd_messages.c .xml = msg, xml 238 daemons/pacemakerd/pcmkd_messages.c request.op = crm_element_value_copy(request.xml, F_CRM_TASK); xml 59 daemons/schedulerd/schedulerd_messages.c xmlNode *msg = request->xml; xml 269 daemons/schedulerd/schedulerd_messages.c .xml = msg, xml 274 daemons/schedulerd/schedulerd_messages.c request.op = crm_element_value_copy(request.xml, F_CRM_TASK); xml 37 include/crm/cluster/compat.h void set_uuid(xmlNode *xml, const char *attr, crm_node_t *node); xml 26 include/crm/common/acl.h bool xml_acl_enabled(const xmlNode *xml); xml 27 include/crm/common/acl.h void xml_acl_disable(xmlNode *xml); xml 28 include/crm/common/acl.h bool xml_acl_denied(const xmlNode *xml); xml 29 include/crm/common/acl.h bool xml_acl_filtered_copy(const char *user, xmlNode* acl_source, xmlNode *xml, xml 29 include/crm/common/acl_internal.h bool pcmk__check_acl(xmlNode *xml, const char *name, xml 73 include/crm/common/internal.h void pcmk__xe_add_node(xmlNode *xml, const char *node, int nodeid); xml 126 include/crm/common/logging.h const xmlNode *xml); xml 261 include/crm/common/logging.h # define do_crm_log_xml(level, text, xml) do { \ xml 277 include/crm/common/logging.h _level, text, (xml)); \ xml 389 include/crm/common/logging.h # define crm_log_xml_crit(xml, text) do_crm_log_xml(LOG_CRIT, text, xml) xml 390 include/crm/common/logging.h # define crm_log_xml_err(xml, text) do_crm_log_xml(LOG_ERR, text, xml) xml 391 include/crm/common/logging.h # define crm_log_xml_warn(xml, text) do_crm_log_xml(LOG_WARNING, text, xml) xml 392 include/crm/common/logging.h # define crm_log_xml_notice(xml, text) do_crm_log_xml(LOG_NOTICE, text, xml) xml 393 include/crm/common/logging.h # define crm_log_xml_info(xml, text) do_crm_log_xml(LOG_INFO, text, xml) xml 394 include/crm/common/logging.h # define crm_log_xml_debug(xml, text) do_crm_log_xml(LOG_DEBUG, text, xml) xml 395 include/crm/common/logging.h # define crm_log_xml_trace(xml, text) do_crm_log_xml(LOG_TRACE, text, xml) xml 397 include/crm/common/logging.h # define crm_log_xml_explicit(xml, text) do { \ xml 403 include/crm/common/logging.h do_crm_log_xml(LOG_TRACE, text, xml); \ xml 83 include/crm/common/logging_compat.h void pcmk_log_xml_impl(uint8_t level, const char *text, const xmlNode *xml); xml 104 include/crm/common/logging_internal.h #define pcmk__log_xml_changes(level, xml) do { \ xml 120 include/crm/common/logging_internal.h 0, _level, xml); \ xml 159 include/crm/common/logging_internal.h const xmlNode *xml); xml 44 include/crm/common/messages_internal.h xmlNode *xml; // Request XML xml 37 include/crm/common/nvpair.h GSList *pcmk_xml_attrs2nvpairs(const xmlNode *xml); xml 38 include/crm/common/nvpair.h void pcmk_nvpairs2xml_attrs(GSList *list, xmlNode *xml); xml 52 include/crm/common/nvpair.h const char *crm_xml_add_timeval(xmlNode *xml, const char *name_sec, xml 60 include/crm/common/nvpair.h int crm_element_value_epoch(const xmlNode *xml, const char *name, time_t *dest); xml 920 include/crm/common/output_internal.h int pcmk__xml_output_new(pcmk__output_t **out, xmlNodePtr *xml); xml 921 include/crm/common/output_internal.h void pcmk__xml_output_finish(pcmk__output_t *out, xmlNodePtr *xml); xml 404 include/crm/common/resources.h xmlNode *xml; xml 52 include/crm/common/xml.h gboolean add_message_xml(xmlNode * msg, const char *field, xmlNode * xml); xml 133 include/crm/common/xml.h int write_xml_fd(const xmlNode *xml, const char *filename, int fd, xml 135 include/crm/common/xml.h int write_xml_file(const xmlNode *xml, const char *filename, gboolean compress); xml 137 include/crm/common/xml.h char *dump_xml_formatted(const xmlNode *xml); xml 138 include/crm/common/xml.h char *dump_xml_formatted_with_text(const xmlNode *xml); xml 139 include/crm/common/xml.h char *dump_xml_unformatted(const xmlNode *xml); xml 172 include/crm/common/xml.h crm_map_element_name(const xmlNode *xml) xml 174 include/crm/common/xml.h if (xml == NULL) { xml 176 include/crm/common/xml.h } else if (strcmp((const char *) xml->name, "master") == 0) { xml 179 include/crm/common/xml.h return (const char *) xml->name; xml 235 include/crm/common/xml.h gboolean cli_config_update(xmlNode ** xml, int *best_version, gboolean to_logs); xml 245 include/crm/common/xml.h void pcmk_free_xml_subtree(xmlNode *xml); xml 253 include/crm/common/xml.h void crm_foreach_xpath_result(xmlNode *xml, const char *xpath, xml 269 include/crm/common/xml.h bool xml_tracking_changes(xmlNode * xml); xml 270 include/crm/common/xml.h bool xml_document_dirty(xmlNode *xml); xml 271 include/crm/common/xml.h void xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls); xml 274 include/crm/common/xml.h void xml_accept_changes(xmlNode * xml); xml 279 include/crm/common/xml.h int xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version); xml 283 include/crm/common/xml.h void save_xml_to_file(const xmlNode *xml, const char *desc, xml 288 include/crm/common/xml.h void crm_xml_set_id(xmlNode *xml, const char *format, ...) G_GNUC_PRINTF(2, 3); xml 43 include/crm/common/xml_compat.h char *xml_get_path(const xmlNode *xml); xml 46 include/crm/common/xml_compat.h void xml_log_changes(uint8_t level, const char *function, const xmlNode *xml); xml 49 include/crm/common/xml_compat.h void xml_log_patchset(uint8_t level, const char *function, const xmlNode *xml); xml 69 include/crm/common/xml_compat.h crm_element_name(const xmlNode *xml) xml 71 include/crm/common/xml_compat.h return (xml == NULL)? NULL : (const char *) xml->name; xml 166 include/crm/common/xml_internal.h int pcmk__xml_show_changes(pcmk__output_t *out, const xmlNode *xml); xml 208 include/crm/common/xml_internal.h void pcmk__strip_xml_text(xmlNode *xml); xml 218 include/crm/common/xml_internal.h GString *pcmk__element_xpath(const xmlNode *xml); xml 253 include/crm/common/xml_internal.h pcmk__xe_is(const xmlNode *xml, const char *name) xml 255 include/crm/common/xml_internal.h return (xml != NULL) && (xml->name != NULL) && (name != NULL) xml 256 include/crm/common/xml_internal.h && (strcmp((const char *) xml->name, name) == 0); xml 410 include/crm/common/xml_internal.h void pcmk__set_xml_doc_flag(xmlNode *xml, enum xml_private_flags flag); xml 433 include/crm/common/xml_internal.h pcmk__xe_foreach_child(xmlNode *xml, const char *child_element_name, xml 434 include/crm/common/xml_internal.h int (*handler)(xmlNode *xml, void *userdata), xml 64 include/crm/fencing/internal.h void stonith__xe_set_result(xmlNode *xml, const pcmk__action_result_t *result); xml 65 include/crm/fencing/internal.h void stonith__xe_get_result(const xmlNode *xml, pcmk__action_result_t *result); xml 66 include/crm/fencing/internal.h xmlNode *stonith__find_xe_with_result(xmlNode *xml); xml 549 include/crm/pengine/internal.h xmlNode *xml, const char *field); xml 686 include/crm/pengine/internal.h pe__xe_history_key(const xmlNode *xml) xml 688 include/crm/pengine/internal.h if (xml == NULL) { xml 695 include/crm/pengine/internal.h const char *key = crm_element_value(xml, XML_LRM_ATTR_TASK_KEY); xml 697 include/crm/pengine/internal.h return pcmk__str_empty(key)? ID(xml) : key; xml 21 include/crm/pengine/remote_internal.h bool xml_contains_remote_node(xmlNode *xml); xml 95 include/pacemaker.h int pcmk_controller_status(xmlNodePtr *xml, const char *node_name, xml 110 include/pacemaker.h int pcmk_designated_controller(xmlNodePtr *xml, xml 151 include/pacemaker.h int pcmk_query_node_info(xmlNodePtr *xml, uint32_t *node_id, char **node_name, xml 175 include/pacemaker.h pcmk_query_node_name(xmlNodePtr *xml, uint32_t node_id, char **node_name, xml 178 include/pacemaker.h return pcmk_query_node_info(xml, &node_id, node_name, NULL, NULL, NULL, xml 195 include/pacemaker.h int pcmk_pacemakerd_status(xmlNodePtr *xml, const char *ipc_name, xml 209 include/pacemaker.h int pcmk_resource_digests(xmlNodePtr *xml, pcmk_resource_t *rsc, xml 241 include/pacemaker.h int pcmk_simulate(xmlNodePtr *xml, pcmk_scheduler_t *scheduler, xml 255 include/pacemaker.h int pcmk_list_nodes(xmlNodePtr *xml, const char *node_types); xml 264 include/pacemaker.h int pcmk_status(xmlNodePtr *xml); xml 278 include/pacemaker.h int pcmk_check_rules(xmlNodePtr *xml, xmlNodePtr input, const crm_time_t *date, xml 293 include/pacemaker.h pcmk_check_rule(xmlNodePtr *xml, xmlNodePtr input, const crm_time_t *date, xml 297 include/pacemaker.h return pcmk_check_rules(xml, input, date, rule_ids); xml 323 include/pacemaker.h int pcmk_show_result_code(xmlNodePtr *xml, int code, enum pcmk_result_type type, xml 337 include/pacemaker.h int pcmk_list_result_codes(xmlNodePtr *xml, enum pcmk_result_type type, xml 348 include/pacemaker.h int pcmk_list_alternatives(xmlNodePtr *xml, const char *agent_spec); xml 358 include/pacemaker.h int pcmk_list_agents(xmlNodePtr *xml, char *agent_spec); xml 368 include/pacemaker.h int pcmk_list_providers(xmlNodePtr *xml, const char *agent_spec); xml 377 include/pacemaker.h int pcmk_list_standards(xmlNodePtr *xml); xml 423 include/pacemaker.h int pcmk_fence_history(xmlNodePtr *xml, stonith_t *st, const char *target, xml 437 include/pacemaker.h int pcmk_fence_installed(xmlNodePtr *xml, stonith_t *st, unsigned int timeout); xml 449 include/pacemaker.h int pcmk_fence_last(xmlNodePtr *xml, const char *target, bool as_nodeid); xml 462 include/pacemaker.h int pcmk_fence_list_targets(xmlNodePtr *xml, stonith_t *st, xml 479 include/pacemaker.h int pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, const char *agent, xml 493 include/pacemaker.h int pcmk_fence_registered(xmlNodePtr *xml, stonith_t *st, const char *target, xml 539 include/pacemaker.h int pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent, xml 79 include/pcmki/pcmki_transition.h xmlNode *xml; xml 275 lib/cib/cib_utils.c cib_acl_enabled(xmlNode *xml, const char *user) xml 283 lib/cib/cib_utils.c cib_read_config(options, xml); xml 400 lib/cluster/cluster.c set_uuid(xmlNode *xml, const char *attr, crm_node_t *node) xml 402 lib/cluster/cluster.c crm_xml_add(xml, attr, crm_peer_uuid(node)); xml 50 lib/common/acl.c create_acl(const xmlNode *xml, GList *acls, enum xml_private_flags mode) xml 54 lib/common/acl.c const char *tag = crm_element_value(xml, XML_ACL_ATTR_TAG); xml 55 lib/common/acl.c const char *ref = crm_element_value(xml, XML_ACL_ATTR_REF); xml 56 lib/common/acl.c const char *xpath = crm_element_value(xml, XML_ACL_ATTR_XPATH); xml 57 lib/common/acl.c const char *attr = crm_element_value(xml, XML_ACL_ATTR_ATTRIBUTE); xml 61 lib/common/acl.c tag = crm_element_value(xml, XML_ACL_ATTR_TAGv1); xml 65 lib/common/acl.c ref = crm_element_value(xml, XML_ACL_ATTR_REFv1); xml 71 lib/common/acl.c xml->name); xml 82 lib/common/acl.c xml->name, acl->xpath); xml 107 lib/common/acl.c xml->name, acl->xpath); xml 222 lib/common/acl.c pcmk__apply_acl(xmlNode *xml) xml 225 lib/common/acl.c xml_doc_private_t *docpriv = xml->doc->_private; xml 229 lib/common/acl.c if (!xml_acl_enabled(xml)) { xml 239 lib/common/acl.c xpathObj = xpath_search(xml, acl->xpath); xml 383 lib/common/acl.c purge_xml_attributes(xmlNode *xml) xml 388 lib/common/acl.c xml_node_private_t *nodepriv = xml->_private; xml 392 lib/common/acl.c xml->name, ID(xml)); xml 396 lib/common/acl.c xIter = xml->properties; xml 406 lib/common/acl.c xmlUnsetProp(xml, tmp->name); xml 409 lib/common/acl.c child = pcmk__xml_first_child(xml); xml 418 lib/common/acl.c free_xml(xml); /* Nothing readable under here, purge completely */ xml 435 lib/common/acl.c xml_acl_filtered_copy(const char *user, xmlNode *acl_source, xmlNode *xml, xml 443 lib/common/acl.c if ((xml == NULL) || !pcmk_acl_required(user)) { xml 450 lib/common/acl.c target = copy_xml(xml); xml 523 lib/common/acl.c implicitly_allowed(const xmlNode *xml) xml 527 lib/common/acl.c for (xmlAttr *prop = xml->properties; prop != NULL; prop = prop->next) { xml 533 lib/common/acl.c path = pcmk__element_xpath(xml); xml 545 lib/common/acl.c #define display_id(xml) (ID(xml)? ID(xml) : "<unset>") xml 563 lib/common/acl.c pcmk__apply_creation_acl(xmlNode *xml, bool check_top) xml 565 lib/common/acl.c xml_node_private_t *nodepriv = xml->_private; xml 568 lib/common/acl.c if (implicitly_allowed(xml)) { xml 571 lib/common/acl.c xml->name, display_id(xml)); xml 573 lib/common/acl.c } else if (pcmk__check_acl(xml, NULL, pcmk__xf_acl_write)) { xml 575 lib/common/acl.c xml->name, display_id(xml)); xml 579 lib/common/acl.c xml->name, display_id(xml)); xml 580 lib/common/acl.c pcmk_free_xml_subtree(xml); xml 585 lib/common/acl.c ((xml == xmlDocGetRootElement(xml->doc))? "root element " : ""), xml 586 lib/common/acl.c xml->name, display_id(xml)); xml 590 lib/common/acl.c for (xmlNode *cIter = pcmk__xml_first_child(xml); cIter != NULL; ) { xml 605 lib/common/acl.c xml_acl_denied(const xmlNode *xml) xml 607 lib/common/acl.c if (xml && xml->doc && xml->doc->_private){ xml 608 lib/common/acl.c xml_doc_private_t *docpriv = xml->doc->_private; xml 616 lib/common/acl.c xml_acl_disable(xmlNode *xml) xml 618 lib/common/acl.c if (xml_acl_enabled(xml)) { xml 619 lib/common/acl.c xml_doc_private_t *docpriv = xml->doc->_private; xml 622 lib/common/acl.c pcmk__apply_acl(xml); xml 623 lib/common/acl.c pcmk__apply_creation_acl(xml, false); xml 636 lib/common/acl.c xml_acl_enabled(const xmlNode *xml) xml 638 lib/common/acl.c if (xml && xml->doc && xml->doc->_private){ xml 639 lib/common/acl.c xml_doc_private_t *docpriv = xml->doc->_private; xml 647 lib/common/acl.c pcmk__check_acl(xmlNode *xml, const char *name, enum xml_private_flags mode) xml 649 lib/common/acl.c CRM_ASSERT(xml); xml 650 lib/common/acl.c CRM_ASSERT(xml->doc); xml 651 lib/common/acl.c CRM_ASSERT(xml->doc->_private); xml 653 lib/common/acl.c if (pcmk__tracking_xml_changes(xml, false) && xml_acl_enabled(xml)) { xml 654 lib/common/acl.c xmlNode *parent = xml; xml 655 lib/common/acl.c xml_doc_private_t *docpriv = xml->doc->_private; xml 659 lib/common/acl.c pcmk__set_xml_doc_flag(xml, pcmk__xf_acl_denied); xml 662 lib/common/acl.c xpath = pcmk__element_xpath(xml); xml 682 lib/common/acl.c xmlAttr *attr = xmlHasProp(xml, (pcmkXmlStr) name); xml 695 lib/common/acl.c pcmk__set_xml_doc_flag(xml, pcmk__xf_acl_denied); xml 698 lib/common/acl.c xpath = pcmk__element_xpath(xml); xml 706 lib/common/acl.c (parent != xml)? "Parent ": "", xml 715 lib/common/acl.c pcmk__set_xml_doc_flag(xml, pcmk__xf_acl_denied); xml 718 lib/common/acl.c xpath = pcmk__element_xpath(xml); xml 70 lib/common/crmcommon_private.h bool pcmk__tracking_xml_changes(xmlNode *xml, bool lazy); xml 73 lib/common/crmcommon_private.h void pcmk__mark_xml_created(xmlNode *xml); xml 76 lib/common/crmcommon_private.h int pcmk__xml_position(const xmlNode *xml, xml 104 lib/common/crmcommon_private.h void pcmk__apply_acl(xmlNode *xml); xml 107 lib/common/crmcommon_private.h void pcmk__apply_creation_acl(xmlNode *xml, bool check_top); xml 120 lib/common/crmcommon_private.h void pcmk__mark_xml_node_dirty(xmlNode *xml); xml 34 lib/common/digest.c dump_xml_for_digest(xmlNodePtr xml) xml 40 lib/common/digest.c pcmk__xml2text(xml, 0, buffer, 0); xml 389 lib/common/ipc_server.c xmlNode *xml = NULL; xml 436 lib/common/ipc_server.c xml = string2xml(text); xml 437 lib/common/ipc_server.c crm_log_xml_trace(xml, "[IPC received]"); xml 440 lib/common/ipc_server.c return xml; xml 1164 lib/common/logging.c uint32_t tags, uint8_t level, const char *text, const xmlNode *xml) xml 1166 lib/common/logging.c if (xml == NULL) { xml 1177 lib/common/logging.c pcmk__xml_show(logger_out, text, xml, 1, xml 1201 lib/common/logging.c uint32_t tags, uint8_t level, const xmlNode *xml) xml 1203 lib/common/logging.c if (xml == NULL) { xml 1213 lib/common/logging.c pcmk__xml_show_changes(logger_out, xml); xml 1281 lib/common/logging.c pcmk_log_xml_impl(uint8_t level, const char *text, const xmlNode *xml) xml 1283 lib/common/logging.c pcmk_log_xml_as(__FILE__, __func__, __LINE__, 0, level, text, xml); xml 160 lib/common/messages.c add_message_xml(xmlNode *msg, const char *field, xmlNode *xml) xml 164 lib/common/messages.c add_node_copy(holder, xml); xml 15 lib/common/nodes.c pcmk__xe_add_node(xmlNode *xml, const char *node, int nodeid) xml 18 lib/common/nodes.c crm_xml_add(xml, PCMK__XA_ATTR_NODE_NAME, node); xml 22 lib/common/nodes.c crm_xml_add_int(xml, PCMK__XA_ATTR_NODE_ID, nodeid); xml 161 lib/common/nvpair.c pcmk_xml_attrs2nvpairs(const xmlNode *xml) xml 165 lib/common/nvpair.c for (xmlAttrPtr iter = pcmk__xe_first_attr(xml); iter != NULL; xml 201 lib/common/nvpair.c pcmk_nvpairs2xml_attrs(GSList *list, xmlNode *xml) xml 203 lib/common/nvpair.c g_slist_foreach(list, pcmk__nvpair_add_xml_attr, xml); xml 399 lib/common/nvpair.c crm_xml_add_ll(xmlNode *xml, const char *name, long long value) xml 406 lib/common/nvpair.c return crm_xml_add(xml, name, s); xml 423 lib/common/nvpair.c crm_xml_add_timeval(xmlNode *xml, const char *name_sec, const char *name_usec, xml 428 lib/common/nvpair.c if (xml && name_sec && value) { xml 429 lib/common/nvpair.c added = crm_xml_add_ll(xml, name_sec, (long long) value->tv_sec); xml 432 lib/common/nvpair.c crm_xml_add_ll(xml, name_usec, (long long) value->tv_usec); xml 568 lib/common/nvpair.c crm_element_value_epoch(const xmlNode *xml, const char *name, time_t *dest) xml 572 lib/common/nvpair.c if (crm_element_value_ll(xml, name, &value_ll) < 0) { xml 597 lib/common/nvpair.c crm_element_value_timeval(const xmlNode *xml, const char *name_sec, xml 606 lib/common/nvpair.c if (xml == NULL) { xml 618 lib/common/nvpair.c if (crm_element_value_ll(xml, name_sec, &value_i) < 0) { xml 624 lib/common/nvpair.c if (crm_element_value_ll(xml, name_usec, &value_i) < 0) { xml 236 lib/common/output.c pcmk__xml_output_new(pcmk__output_t **out, xmlNodePtr *xml) { xml 242 lib/common/output.c if (*xml != NULL) { xml 243 lib/common/output.c xmlFreeNode(*xml); xml 244 lib/common/output.c *xml = NULL; xml 258 lib/common/output.c pcmk__xml_output_finish(pcmk__output_t *out, xmlNodePtr *xml) { xml 259 lib/common/output.c out->finish(out, 0, FALSE, (void **) xml); xml 36 lib/common/patchset.c add_xml_changes_to_patchset(xmlNode *xml, xmlNode *patchset) xml 41 lib/common/patchset.c xml_node_private_t *nodepriv = xml->_private; xml 54 lib/common/patchset.c GString *xpath = pcmk__element_xpath(xml->parent); xml 57 lib/common/patchset.c int position = pcmk__xml_position(xml, pcmk__xf_deleted); xml 64 lib/common/patchset.c add_node_copy(change, xml); xml 72 lib/common/patchset.c for (pIter = pcmk__xe_first_attr(xml); pIter != NULL; xml 82 lib/common/patchset.c GString *xpath = pcmk__element_xpath(xml); xml 113 lib/common/patchset.c result = create_xml_node(change, (const char *)xml->name); xml 115 lib/common/patchset.c for (pIter = pcmk__xe_first_attr(xml); pIter != NULL; xml 119 lib/common/patchset.c value = crm_element_value(xml, (const char *) pIter->name); xml 126 lib/common/patchset.c for (cIter = pcmk__xml_first_child(xml); cIter != NULL; xml 131 lib/common/patchset.c nodepriv = xml->_private; xml 133 lib/common/patchset.c GString *xpath = pcmk__element_xpath(xml); xml 136 lib/common/patchset.c xml->name, ID(xml), pcmk__xml_position(xml, pcmk__xf_skip)); xml 144 lib/common/patchset.c pcmk__xml_position(xml, pcmk__xf_deleted)); xml 151 lib/common/patchset.c is_config_change(xmlNode *xml) xml 156 lib/common/patchset.c xmlNode *config = first_named_child(xml, XML_CIB_TAG_CONFIGURATION); xml 165 lib/common/patchset.c if ((xml->doc != NULL) && (xml->doc->_private != NULL)) { xml 166 lib/common/patchset.c docpriv = xml->doc->_private; xml 621 lib/common/patchset.c xml_patch_version_check(const xmlNode *xml, const xmlNode *patchset) xml 637 lib/common/patchset.c crm_element_value_int(xml, vfields[lpc], &(this[lpc])); xml 697 lib/common/patchset.c apply_v1_patchset(xmlNode *xml, const xmlNode *patchset) xml 705 lib/common/patchset.c xmlNode *old = copy_xml(xml); xml 712 lib/common/patchset.c process_v1_removals(xml, child_diff); xml 732 lib/common/patchset.c process_v1_additions(NULL, xml, child_diff); xml 744 lib/common/patchset.c purge_diff_markers(xml); // Purge prior to checking digest xml 912 lib/common/patchset.c apply_v2_patchset(xmlNode *xml, const xmlNode *patchset) xml 936 lib/common/patchset.c match = search_v2_xpath(xml, xpath, position); xml 940 lib/common/patchset.c crm_debug("No %s match for %s in %p", op, xpath, xml->doc); xml 944 lib/common/patchset.c crm_err("No %s match for %s in %p", op, xpath, xml->doc); xml 1099 lib/common/patchset.c xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version) xml 1113 lib/common/patchset.c rc = pcmk_rc2legacy(xml_patch_version_check(xml, patchset)); xml 1124 lib/common/patchset.c pcmk__if_tracing(old = copy_xml(xml), {}); xml 1131 lib/common/patchset.c rc = pcmk_rc2legacy(apply_v1_patchset(xml, patchset)); xml 1134 lib/common/patchset.c rc = pcmk_rc2legacy(apply_v2_patchset(xml, patchset)); xml 1144 lib/common/patchset.c char *version = crm_element_value_copy(xml, XML_ATTR_CRM_VERSION); xml 1146 lib/common/patchset.c new_digest = calculate_xml_versioned_digest(xml, FALSE, TRUE, version); xml 1154 lib/common/patchset.c save_xml_to_file(xml, "PatchDigest:result", NULL); xml 546 lib/common/remote.c xmlNode *xml = NULL; xml 595 lib/common/remote.c xml = string2xml(remote->buffer + header->payload_offset); xml 596 lib/common/remote.c if (xml == NULL && header->version > REMOTE_MSG_VERSION) { xml 600 lib/common/remote.c } else if (xml == NULL) { xml 604 lib/common/remote.c return xml; xml 562 lib/common/schemas.c validate_with(xmlNode *xml, int method, xmlRelaxNGValidityErrorFunc error_handler, void* error_handler_context) xml 591 lib/common/schemas.c valid = validate_with_relaxng(xml->doc, error_handler, error_handler_context, file, cache); xml 604 lib/common/schemas.c validate_with_silent(xmlNode *xml, int method) xml 608 lib/common/schemas.c rc = validate_with(xml, method, (xmlRelaxNGValidityErrorFunc) xml_log, GUINT_TO_POINTER(LOG_ERR)); xml 649 lib/common/schemas.c xmlNode *xml = NULL; xml 662 lib/common/schemas.c xml = xmlDocGetRootElement(doc); xml 663 lib/common/schemas.c rc = validate_xml(xml, NULL, FALSE); xml 664 lib/common/schemas.c free_xml(xml); xml 862 lib/common/schemas.c apply_transformation(xmlNode *xml, const char *transform, gboolean to_logs) xml 882 lib/common/schemas.c res = xsltApplyStylesheet(xslt, xml->doc, NULL); xml 906 lib/common/schemas.c apply_upgrade(xmlNode *xml, const struct schema_s *schema, gboolean to_logs) xml 916 lib/common/schemas.c upgrade = apply_transformation(xml, schema->transform_enter, to_logs); xml 924 lib/common/schemas.c upgrade = xml; xml 930 lib/common/schemas.c if (upgrade != xml) { xml 987 lib/common/schemas.c xmlNode *xml = NULL; xml 1002 lib/common/schemas.c xml = *xml_blob; xml 1003 lib/common/schemas.c value = crm_element_value_copy(xml, XML_ATTR_VALIDATION); xml 1030 lib/common/schemas.c if (validate_with(xml, lpc, error_handler, GUINT_TO_POINTER(LOG_ERR)) == FALSE) { xml 1078 lib/common/schemas.c || validate_with_silent(xml, next)) { xml 1089 lib/common/schemas.c upgrade = apply_upgrade(xml, &known_schemas[lpc], to_logs); xml 1100 lib/common/schemas.c free_xml(xml); xml 1101 lib/common/schemas.c xml = upgrade; xml 1125 lib/common/schemas.c crm_xml_add(xml, XML_ATTR_VALIDATION, known_schemas[*best].name); xml 1128 lib/common/schemas.c *xml_blob = xml; xml 1134 lib/common/schemas.c cli_config_update(xmlNode **xml, int *best_version, gboolean to_logs) xml 1137 lib/common/schemas.c const char *value = crm_element_value(*xml, XML_ATTR_VALIDATION); xml 1148 lib/common/schemas.c converted = copy_xml(*xml); xml 1201 lib/common/schemas.c free_xml(*xml); xml 1202 lib/common/schemas.c *xml = converted; xml 15 lib/common/tests/xml/pcmk__xe_foreach_child_test.c static int compare_name_handler(xmlNode *xml, void *userdata) { xml 17 lib/common/tests/xml/pcmk__xe_foreach_child_test.c assert_string_equal((char *) userdata, (const char *) xml->name); xml 39 lib/common/tests/xml/pcmk__xe_foreach_child_test.c xmlNode *xml = string2xml(str1); xml 41 lib/common/tests/xml/pcmk__xe_foreach_child_test.c pcmk__assert_asserts(pcmk__xe_foreach_child(xml, NULL, NULL, NULL)); xml 43 lib/common/tests/xml/pcmk__xe_foreach_child_test.c free_xml(xml); xml 48 lib/common/tests/xml/pcmk__xe_foreach_child_test.c xmlNode *xml = string2xml(str1); xml 55 lib/common/tests/xml/pcmk__xe_foreach_child_test.c pcmk__xe_foreach_child(xml, "level1", compare_name_handler, (void *) "level1"); xml 56 lib/common/tests/xml/pcmk__xe_foreach_child_test.c free_xml(xml); xml 61 lib/common/tests/xml/pcmk__xe_foreach_child_test.c xmlNode *xml = string2xml(str1); xml 68 lib/common/tests/xml/pcmk__xe_foreach_child_test.c pcmk__xe_foreach_child(xml, NULL, compare_name_handler, (void *) "level1"); xml 69 lib/common/tests/xml/pcmk__xe_foreach_child_test.c free_xml(xml); xml 74 lib/common/tests/xml/pcmk__xe_foreach_child_test.c xmlNode *xml = string2xml(str1); xml 75 lib/common/tests/xml/pcmk__xe_foreach_child_test.c pcmk__xe_foreach_child(xml, "xxx", compare_name_handler, NULL); xml 76 lib/common/tests/xml/pcmk__xe_foreach_child_test.c free_xml(xml); xml 103 lib/common/tests/xml/pcmk__xe_foreach_child_test.c xmlNode *xml = string2xml(str2); xml 109 lib/common/tests/xml/pcmk__xe_foreach_child_test.c pcmk__xe_foreach_child(xml, "level1", compare_name_handler, (void *) "level1"); xml 110 lib/common/tests/xml/pcmk__xe_foreach_child_test.c free_xml(xml); xml 115 lib/common/tests/xml/pcmk__xe_foreach_child_test.c xmlNode *xml = string2xml(str2); xml 121 lib/common/tests/xml/pcmk__xe_foreach_child_test.c pcmk__xe_foreach_child(xml, NULL, compare_name_handler, (void *) "level1"); xml 122 lib/common/tests/xml/pcmk__xe_foreach_child_test.c free_xml(xml); xml 141 lib/common/tests/xml/pcmk__xe_foreach_child_test.c static int any_of_handler(xmlNode *xml, void *userdata) { xml 143 lib/common/tests/xml/pcmk__xe_foreach_child_test.c assert_true(pcmk__str_any_of((const char *) xml->name, xml 150 lib/common/tests/xml/pcmk__xe_foreach_child_test.c xmlNode *xml = string2xml(str3); xml 157 lib/common/tests/xml/pcmk__xe_foreach_child_test.c pcmk__xe_foreach_child(xml, NULL, any_of_handler, NULL); xml 158 lib/common/tests/xml/pcmk__xe_foreach_child_test.c free_xml(xml); xml 161 lib/common/tests/xml/pcmk__xe_foreach_child_test.c static int stops_on_first_handler(xmlNode *xml, void *userdata) { xml 164 lib/common/tests/xml/pcmk__xe_foreach_child_test.c if (pcmk__xe_is(xml, "node1")) { xml 171 lib/common/tests/xml/pcmk__xe_foreach_child_test.c static int stops_on_second_handler(xmlNode *xml, void *userdata) { xml 174 lib/common/tests/xml/pcmk__xe_foreach_child_test.c if (pcmk__xe_is(xml, "node2")) { xml 181 lib/common/tests/xml/pcmk__xe_foreach_child_test.c static int stops_on_third_handler(xmlNode *xml, void *userdata) { xml 184 lib/common/tests/xml/pcmk__xe_foreach_child_test.c if (pcmk__xe_is(xml, "node3")) { xml 193 lib/common/tests/xml/pcmk__xe_foreach_child_test.c xmlNode *xml = string2xml(str3); xml 197 lib/common/tests/xml/pcmk__xe_foreach_child_test.c assert_int_equal(pcmk__xe_foreach_child(xml, "node1", stops_on_first_handler, NULL), pcmk_rc_error); xml 200 lib/common/tests/xml/pcmk__xe_foreach_child_test.c assert_int_equal(pcmk__xe_foreach_child(xml, "node2", stops_on_second_handler, NULL), pcmk_rc_error); xml 203 lib/common/tests/xml/pcmk__xe_foreach_child_test.c assert_int_equal(pcmk__xe_foreach_child(xml, "node3", stops_on_third_handler, NULL), pcmk_rc_error); xml 205 lib/common/tests/xml/pcmk__xe_foreach_child_test.c free_xml(xml); xml 42 lib/common/tests/xml/pcmk__xe_match_test.c xmlNode *xml = string2xml(str1); xml 47 lib/common/tests/xml/pcmk__xe_match_test.c free_xml(xml); xml 52 lib/common/tests/xml/pcmk__xe_match_test.c xmlNode *xml = string2xml(str1); xml 55 lib/common/tests/xml/pcmk__xe_match_test.c assert_null(pcmk__xe_match(xml, NULL, "attrX", NULL)); xml 57 lib/common/tests/xml/pcmk__xe_match_test.c assert_null(pcmk__xe_match(xml, "nodeX", NULL, NULL)); xml 59 lib/common/tests/xml/pcmk__xe_match_test.c assert_null(pcmk__xe_match(xml, "nodeA", "attrX", NULL)); xml 61 lib/common/tests/xml/pcmk__xe_match_test.c assert_null(pcmk__xe_match(xml, "nodeA", "attrA", "XYZ")); xml 63 lib/common/tests/xml/pcmk__xe_match_test.c free_xml(xml); xml 68 lib/common/tests/xml/pcmk__xe_match_test.c xmlNode *xml = string2xml(str1); xml 72 lib/common/tests/xml/pcmk__xe_match_test.c result = pcmk__xe_match(xml, NULL, "attrB", NULL); xml 77 lib/common/tests/xml/pcmk__xe_match_test.c result = pcmk__xe_match(xml, "nodeB", "attrB", NULL); xml 81 lib/common/tests/xml/pcmk__xe_match_test.c free_xml(xml); xml 86 lib/common/tests/xml/pcmk__xe_match_test.c xmlNode *xml = string2xml(str1); xml 90 lib/common/tests/xml/pcmk__xe_match_test.c result = pcmk__xe_match(xml, NULL, "attrA", "456"); xml 95 lib/common/tests/xml/pcmk__xe_match_test.c result = pcmk__xe_match(xml, "nodeB", "attrA", "123"); xml 99 lib/common/tests/xml/pcmk__xe_match_test.c free_xml(xml); xml 49 lib/common/xml.c pcmk__tracking_xml_changes(xmlNode *xml, bool lazy) xml 51 lib/common/xml.c if(xml == NULL || xml->doc == NULL || xml->doc->_private == NULL) { xml 53 lib/common/xml.c } else if (!pcmk_is_set(((xml_doc_private_t *)xml->doc->_private)->flags, xml 56 lib/common/xml.c } else if (lazy && !pcmk_is_set(((xml_doc_private_t *)xml->doc->_private)->flags, xml 64 lib/common/xml.c set_parent_flag(xmlNode *xml, long flag) xml 66 lib/common/xml.c for(; xml; xml = xml->parent) { xml 67 lib/common/xml.c xml_node_private_t *nodepriv = xml->_private; xml 78 lib/common/xml.c pcmk__set_xml_doc_flag(xmlNode *xml, enum xml_private_flags flag) xml 80 lib/common/xml.c if(xml && xml->doc && xml->doc->_private){ xml 82 lib/common/xml.c xml_doc_private_t *docpriv = xml->doc->_private; xml 90 lib/common/xml.c pcmk__mark_xml_node_dirty(xmlNode *xml) xml 92 lib/common/xml.c pcmk__set_xml_doc_flag(xml, pcmk__xf_dirty); xml 93 lib/common/xml.c set_parent_flag(xml, pcmk__xf_dirty); xml 98 lib/common/xml.c reset_xml_node_flags(xmlNode *xml) xml 101 lib/common/xml.c xml_node_private_t *nodepriv = xml->_private; xml 107 lib/common/xml.c for (cIter = pcmk__xml_first_child(xml); cIter != NULL; xml 115 lib/common/xml.c pcmk__mark_xml_created(xmlNode *xml) xml 120 lib/common/xml.c CRM_ASSERT(xml != NULL); xml 121 lib/common/xml.c nodepriv = xml->_private; xml 123 lib/common/xml.c if (nodepriv && pcmk__tracking_xml_changes(xml, FALSE)) { xml 126 lib/common/xml.c pcmk__mark_xml_node_dirty(xml); xml 128 lib/common/xml.c for (cIter = pcmk__xml_first_child(xml); cIter != NULL; xml 263 lib/common/xml.c xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls) xml 265 lib/common/xml.c xml_accept_changes(xml); xml 266 lib/common/xml.c crm_trace("Tracking changes%s to %p", enforce_acls?" with ACLs":"", xml); xml 267 lib/common/xml.c pcmk__set_xml_doc_flag(xml, pcmk__xf_tracking); xml 270 lib/common/xml.c acl_source = xml; xml 272 lib/common/xml.c pcmk__set_xml_doc_flag(xml, pcmk__xf_acl_enabled); xml 273 lib/common/xml.c pcmk__unpack_acl(acl_source, xml, user); xml 274 lib/common/xml.c pcmk__apply_acl(xml); xml 278 lib/common/xml.c bool xml_tracking_changes(xmlNode * xml) xml 280 lib/common/xml.c return (xml != NULL) && (xml->doc != NULL) && (xml->doc->_private != NULL) xml 281 lib/common/xml.c && pcmk_is_set(((xml_doc_private_t *)(xml->doc->_private))->flags, xml 285 lib/common/xml.c bool xml_document_dirty(xmlNode *xml) xml 287 lib/common/xml.c return (xml != NULL) && (xml->doc != NULL) && (xml->doc->_private != NULL) xml 288 lib/common/xml.c && pcmk_is_set(((xml_doc_private_t *)(xml->doc->_private))->flags, xml 302 lib/common/xml.c pcmk__xml_position(const xmlNode *xml, enum xml_private_flags ignore_if_set) xml 306 lib/common/xml.c for (const xmlNode *cIter = xml; cIter->prev; cIter = cIter->prev) { xml 319 lib/common/xml.c accept_attr_deletions(xmlNode *xml) xml 322 lib/common/xml.c ((xml_node_private_t *) xml->_private)->flags = pcmk__xf_none; xml 325 lib/common/xml.c pcmk__xe_remove_matching_attrs(xml, pcmk__marked_as_deleted, NULL); xml 328 lib/common/xml.c for (xmlNodePtr cIter = pcmk__xml_first_child(xml); cIter != NULL; xml 359 lib/common/xml.c xml_accept_changes(xmlNode * xml) xml 364 lib/common/xml.c if(xml == NULL) { xml 368 lib/common/xml.c crm_trace("Accepting changes to %p", xml); xml 369 lib/common/xml.c docpriv = xml->doc->_private; xml 370 lib/common/xml.c top = xmlDocGetRootElement(xml->doc); xml 372 lib/common/xml.c reset_xml_private_data(xml->doc->_private); xml 706 lib/common/xml.c pcmk_free_xml_subtree(xmlNode *xml) xml 708 lib/common/xml.c xmlUnlinkNode(xml); // Detaches from parent and siblings xml 709 lib/common/xml.c xmlFreeNode(xml); // Frees xml 802 lib/common/xml.c xmlNode *xml = NULL; xml 831 lib/common/xml.c xml = xmlDocGetRootElement(output); xml 847 lib/common/xml.c crm_err("Couldn't%s parse %d chars: %s", xml ? " fully" : "", (int)strlen(input), xml 849 lib/common/xml.c if (xml != NULL) { xml 850 lib/common/xml.c crm_log_xml_err(xml, "Partial"); xml 867 lib/common/xml.c return xml; xml 962 lib/common/xml.c pcmk__strip_xml_text(xmlNode *xml) xml 964 lib/common/xml.c xmlNode *iter = xml->children; xml 992 lib/common/xml.c xmlNode *xml = NULL; xml 1054 lib/common/xml.c if (output && (xml = xmlDocGetRootElement(output))) { xml 1055 lib/common/xml.c pcmk__strip_xml_text(xml); xml 1069 lib/common/xml.c crm_err("Couldn't%s parse %s", xml ? " fully" : "", filename); xml 1070 lib/common/xml.c if (xml != NULL) { xml 1071 lib/common/xml.c crm_log_xml_err(xml, "Partial"); xml 1077 lib/common/xml.c return xml; xml 1128 lib/common/xml.c crm_xml_set_id(xmlNode *xml, const char *format, ...) xml 1141 lib/common/xml.c crm_xml_add(xml, XML_ATTR_ID, id); xml 1158 lib/common/xml.c write_xml_stream(const xmlNode *xml, const char *filename, FILE *stream, xml 1165 lib/common/xml.c crm_log_xml_trace(xml, "writing"); xml 1167 lib/common/xml.c buffer = dump_xml_formatted(xml); xml 1169 lib/common/xml.c crm_log_xml_warn(xml, "formatting failed"); xml 1255 lib/common/xml.c write_xml_fd(const xmlNode *xml, const char *filename, int fd, xml 1262 lib/common/xml.c CRM_CHECK((xml != NULL) && (fd > 0), return -EINVAL); xml 1267 lib/common/xml.c rc = write_xml_stream(xml, filename, stream, compress, &nbytes); xml 1284 lib/common/xml.c write_xml_file(const xmlNode *xml, const char *filename, gboolean compress) xml 1290 lib/common/xml.c CRM_CHECK((xml != NULL) && (filename != NULL), return -EINVAL); xml 1295 lib/common/xml.c rc = write_xml_stream(xml, filename, stream, compress, &nbytes); xml 1632 lib/common/xml.c dump_xml_formatted_with_text(const xmlNode *xml) xml 1641 lib/common/xml.c pcmk__xml2text(xml, pcmk__xml_fmt_pretty|pcmk__xml_fmt_text, g_buffer, 0); xml 1649 lib/common/xml.c dump_xml_formatted(const xmlNode *xml) xml 1654 lib/common/xml.c pcmk__xml2text(xml, pcmk__xml_fmt_pretty, g_buffer, 0); xml 1662 lib/common/xml.c dump_xml_unformatted(const xmlNode *xml) xml 1667 lib/common/xml.c pcmk__xml2text(xml, 0, g_buffer, 0); xml 1718 lib/common/xml.c save_xml_to_file(const xmlNode *xml, const char *desc, const char *filename) xml 1731 lib/common/xml.c write_xml_file(xml, filename, FALSE); xml 1743 lib/common/xml.c set_attrs_flag(xmlNode *xml, enum xml_private_flags flag) xml 1745 lib/common/xml.c for (xmlAttr *attr = pcmk__xe_first_attr(xml); attr; attr = attr->next) { xml 2663 lib/common/xml.c pcmk__xe_foreach_child(xmlNode *xml, const char *child_element_name, xml 2664 lib/common/xml.c int (*handler)(xmlNode *xml, void *userdata), xml 2667 lib/common/xml.c xmlNode *children = (xml? xml->children : NULL); xml 369 lib/common/xml_display.c pcmk__xml_show_changes(pcmk__output_t *out, const xmlNode *xml) xml 376 lib/common/xml_display.c CRM_ASSERT(xml != NULL); xml 377 lib/common/xml_display.c CRM_ASSERT(xml->doc != NULL); xml 379 lib/common/xml_display.c docpriv = xml->doc->_private; xml 398 lib/common/xml_display.c temp_rc = show_xml_changes_recursive(out, xml, 0, pcmk__xml_fmt_pretty); xml 523 lib/common/xml_display.c xml_log_changes(uint8_t log_level, const char *function, const xmlNode *xml) xml 539 lib/common/xml_display.c rc = pcmk__xml_show_changes(out, xml); xml 110 lib/common/xpath.c xmlNode *xml = NULL; xml 117 lib/common/xpath.c xml = xpathObj->nodesetval->nodeTab[lpc]->parent; xml 119 lib/common/xpath.c for (; xml; xml = xml->parent) { xml 123 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[lpc2] == xml) { xml 170 lib/common/xpath.c crm_foreach_xpath_result(xmlNode *xml, const char *xpath, xml 173 lib/common/xpath.c xmlXPathObjectPtr xpathObj = xpath_search(xml, xpath); xml 278 lib/common/xpath.c pcmk__element_xpath(const xmlNode *xml) xml 284 lib/common/xpath.c if (xml == NULL) { xml 288 lib/common/xpath.c parent = xml->parent; xml 298 lib/common/xpath.c g_string_append(xpath, (const gchar *) xml->name); xml 300 lib/common/xpath.c pcmk__g_strcat(xpath, "/", (const char *) xml->name, NULL); xml 303 lib/common/xpath.c id = ID(xml); xml 358 lib/common/xpath.c xml_get_path(const xmlNode *xml) xml 361 lib/common/xpath.c GString *g_path = pcmk__element_xpath(xml); xml 434 lib/fencing/st_actions.c stonith__xe_set_result(xmlNode *xml, const pcmk__action_result_t *result) xml 442 lib/fencing/st_actions.c CRM_CHECK(xml != NULL, return); xml 452 lib/fencing/st_actions.c crm_xml_add_int(xml, XML_LRM_ATTR_OPSTATUS, (int) execution_status); xml 453 lib/fencing/st_actions.c crm_xml_add_int(xml, XML_LRM_ATTR_RC, exit_status); xml 454 lib/fencing/st_actions.c crm_xml_add(xml, XML_LRM_ATTR_EXIT_REASON, exit_reason); xml 455 lib/fencing/st_actions.c crm_xml_add(xml, F_STONITH_OUTPUT, action_stdout); xml 461 lib/fencing/st_actions.c crm_xml_add_int(xml, F_STONITH_RC, rc); xml 473 lib/fencing/st_actions.c stonith__find_xe_with_result(xmlNode *xml) xml 475 lib/fencing/st_actions.c xmlNode *match = get_xpath_object("//@" XML_LRM_ATTR_RC, xml, LOG_NEVER); xml 481 lib/fencing/st_actions.c match = get_xpath_object("//@" F_STONITH_RC, xml, LOG_ERR); xml 494 lib/fencing/st_actions.c stonith__xe_get_result(const xmlNode *xml, pcmk__action_result_t *result) xml 501 lib/fencing/st_actions.c CRM_CHECK((xml != NULL) && (result != NULL), return); xml 503 lib/fencing/st_actions.c exit_reason = crm_element_value(xml, XML_LRM_ATTR_EXIT_REASON); xml 504 lib/fencing/st_actions.c action_stdout = crm_element_value_copy(xml, F_STONITH_OUTPUT); xml 507 lib/fencing/st_actions.c if ((crm_element_value_int(xml, XML_LRM_ATTR_RC, &exit_status) < 0) xml 508 lib/fencing/st_actions.c || (crm_element_value_int(xml, XML_LRM_ATTR_OPSTATUS, xml 516 lib/fencing/st_actions.c if (crm_element_value_int(xml, F_STONITH_RC, &rc) == 0) { xml 72 lib/fencing/st_client.c xmlNode *xml; xml 277 lib/fencing/st_client.c blob.xml = create_xml_node(NULL, "notify"); xml 285 lib/fencing/st_client.c crm_xml_add(blob.xml, F_TYPE, T_STONITH_NOTIFY); xml 286 lib/fencing/st_client.c crm_xml_add(blob.xml, F_SUBTYPE, T_STONITH_NOTIFY_DISCONNECT); xml 289 lib/fencing/st_client.c free_xml(blob.xml); xml 1056 lib/fencing/st_client.c blob.xml = string2xml(buffer); xml 1057 lib/fencing/st_client.c if (blob.xml == NULL) { xml 1063 lib/fencing/st_client.c type = crm_element_value(blob.xml, F_TYPE); xml 1067 lib/fencing/st_client.c invoke_registered_callbacks(st, blob.xml, 0); xml 1075 lib/fencing/st_client.c crm_element_value_int(blob.xml, F_STONITH_TIMEOUT, &timeout); xml 1076 lib/fencing/st_client.c crm_element_value_int(blob.xml, F_STONITH_CALLID, &call_id); xml 1081 lib/fencing/st_client.c crm_log_xml_warn(blob.xml, "BadReply"); xml 1084 lib/fencing/st_client.c free_xml(blob.xml); xml 1495 lib/fencing/st_client.c if (blob->xml == NULL) { xml 1500 lib/fencing/st_client.c event = crm_element_value(blob->xml, F_SUBTYPE); xml 1519 lib/fencing/st_client.c st_event = xml_to_event(blob->xml); xml 125 lib/fencing/st_rhcs.c xmlNode *xml = NULL; xml 165 lib/fencing/st_rhcs.c xml = string2xml(result->action_stdout); xml 168 lib/fencing/st_rhcs.c if (xml == NULL) { xml 173 lib/fencing/st_rhcs.c xpathObj = xpath_search(xml, "//actions"); xml 180 lib/fencing/st_rhcs.c xpathObj = xpath_search(xml, "//action[@name='stop']"); xml 198 lib/fencing/st_rhcs.c stonith_rhcs_parameter_not_required(xml, "action"); xml 199 lib/fencing/st_rhcs.c stonith_rhcs_parameter_not_required(xml, "plug"); xml 200 lib/fencing/st_rhcs.c stonith_rhcs_parameter_not_required(xml, "port"); xml 203 lib/fencing/st_rhcs.c *metadata = xml; xml 206 lib/fencing/st_rhcs.c free_xml(xml); xml 223 lib/fencing/st_rhcs.c xmlNode *xml = NULL; xml 225 lib/fencing/st_rhcs.c int rc = stonith__rhcs_get_metadata(agent, timeout_sec, &xml); xml 228 lib/fencing/st_rhcs.c free_xml(xml); xml 232 lib/fencing/st_rhcs.c buffer = dump_xml_formatted_with_text(xml); xml 233 lib/fencing/st_rhcs.c free_xml(xml); xml 380 lib/lrmd/lrmd_client.c xmlNode *xml = NULL; xml 407 lib/lrmd/lrmd_client.c xml = pcmk__remote_message_xml(native->remote); xml 411 lib/lrmd/lrmd_client.c xml = pcmk__remote_message_xml(native->remote); xml 417 lib/lrmd/lrmd_client.c while (xml) { xml 418 lib/lrmd/lrmd_client.c const char *msg_type = crm_element_value(xml, F_LRMD_REMOTE_MSG_TYPE); xml 420 lib/lrmd/lrmd_client.c lrmd_dispatch_internal(lrmd, xml); xml 426 lib/lrmd/lrmd_client.c crm_element_value_int(xml, F_LRMD_CALLID, &reply_id); xml 431 lib/lrmd/lrmd_client.c free_xml(xml); xml 432 lib/lrmd/lrmd_client.c xml = pcmk__remote_message_xml(native->remote); xml 740 lib/lrmd/lrmd_client.c xmlNode *xml = NULL; xml 751 lib/lrmd/lrmd_client.c rc = read_remote_reply(lrmd, timeout, global_remote_msg_id, &xml); xml 760 lib/lrmd/lrmd_client.c *reply = xml; xml 762 lib/lrmd/lrmd_client.c free_xml(xml); xml 123 lib/lrmd/proxy_common.c xmlNode *xml = NULL; xml 127 lib/lrmd/proxy_common.c xml = string2xml(buffer); xml 128 lib/lrmd/proxy_common.c if (xml == NULL) { xml 136 lib/lrmd/proxy_common.c remote_proxy_relay_response(proxy, xml, proxy->last_request_id); xml 141 lib/lrmd/proxy_common.c remote_proxy_relay_event(proxy, xml); xml 143 lib/lrmd/proxy_common.c free_xml(xml); xml 315 lib/pacemaker/libpacemaker_private.h void (*add_graph_meta)(const pcmk_resource_t *rsc, xmlNode *xml); xml 792 lib/pacemaker/libpacemaker_private.h void pcmk__primitive_add_graph_meta(const pcmk_resource_t *rsc, xmlNode *xml); xml 911 lib/pacemaker/libpacemaker_private.h void pcmk__clone_add_graph_meta(const pcmk_resource_t *rsc, xmlNode *xml); xml 1084 lib/pacemaker/libpacemaker_private.h void pcmk__noop_add_graph_meta(const pcmk_resource_t *rsc, xmlNode *xml); xml 50 lib/pacemaker/pcmk_agents.c pcmk_list_alternatives(xmlNodePtr *xml, const char *agent_spec) xml 55 lib/pacemaker/pcmk_agents.c rc = pcmk__xml_output_new(&out, xml); xml 63 lib/pacemaker/pcmk_agents.c pcmk__xml_output_finish(out, xml); xml 121 lib/pacemaker/pcmk_agents.c pcmk_list_agents(xmlNodePtr *xml, char *agent_spec) xml 126 lib/pacemaker/pcmk_agents.c rc = pcmk__xml_output_new(&out, xml); xml 134 lib/pacemaker/pcmk_agents.c pcmk__xml_output_finish(out, xml); xml 177 lib/pacemaker/pcmk_agents.c pcmk_list_providers(xmlNodePtr *xml, const char *agent_spec) xml 182 lib/pacemaker/pcmk_agents.c rc = pcmk__xml_output_new(&out, xml); xml 190 lib/pacemaker/pcmk_agents.c pcmk__xml_output_finish(out, xml); xml 228 lib/pacemaker/pcmk_agents.c pcmk_list_standards(xmlNodePtr *xml) xml 233 lib/pacemaker/pcmk_agents.c rc = pcmk__xml_output_new(&out, xml); xml 241 lib/pacemaker/pcmk_agents.c pcmk__xml_output_finish(out, xml); xml 498 lib/pacemaker/pcmk_cluster_queries.c pcmk_controller_status(xmlNodePtr *xml, const char *node_name, xml 504 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); xml 512 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, xml); xml 567 lib/pacemaker/pcmk_cluster_queries.c pcmk_designated_controller(xmlNodePtr *xml, unsigned int message_timeout_ms) xml 572 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); xml 580 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, xml); xml 690 lib/pacemaker/pcmk_cluster_queries.c pcmk_query_node_info(xmlNodePtr *xml, uint32_t *node_id, char **node_name, xml 700 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); xml 710 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, xml); xml 786 lib/pacemaker/pcmk_cluster_queries.c pcmk_pacemakerd_status(xmlNodePtr *xml, const char *ipc_name, xml 792 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); xml 800 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, xml); xml 884 lib/pacemaker/pcmk_cluster_queries.c pcmk_list_nodes(xmlNodePtr *xml, const char *node_types) xml 889 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); xml 897 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, xml); xml 305 lib/pacemaker/pcmk_fence.c pcmk_fence_history(xmlNodePtr *xml, stonith_t *st, const char *target, xml 312 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 323 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 354 lib/pacemaker/pcmk_fence.c pcmk_fence_installed(xmlNodePtr *xml, stonith_t *st, unsigned int timeout) xml 359 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 367 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 392 lib/pacemaker/pcmk_fence.c pcmk_fence_last(xmlNodePtr *xml, const char *target, bool as_nodeid) xml 397 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 405 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 438 lib/pacemaker/pcmk_fence.c pcmk_fence_list_targets(xmlNodePtr *xml, stonith_t *st, const char *device_id, xml 444 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 452 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 476 lib/pacemaker/pcmk_fence.c pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, const char *agent, xml 482 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 490 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 525 lib/pacemaker/pcmk_fence.c pcmk_fence_registered(xmlNodePtr *xml, stonith_t *st, const char *target, xml 531 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 539 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 591 lib/pacemaker/pcmk_fence.c pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent, xml 598 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 606 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 238 lib/pacemaker/pcmk_graph_consumer.c const char *id = ID(action->xml); xml 255 lib/pacemaker/pcmk_graph_consumer.c if (pcmk__str_eq(crm_element_value(action->xml, XML_LRM_ATTR_TASK), xml 267 lib/pacemaker/pcmk_graph_consumer.c action->xml->name, id); xml 292 lib/pacemaker/pcmk_graph_consumer.c action->xml->name, action->id, synapse->id, xml 518 lib/pacemaker/pcmk_graph_consumer.c action->xml = copy_xml(xml_action); xml 521 lib/pacemaker/pcmk_graph_consumer.c action->params = xml2list(action->xml); xml 783 lib/pacemaker/pcmk_graph_consumer.c free_xml(action->xml); xml 852 lib/pacemaker/pcmk_graph_consumer.c action_resource = first_named_child(action->xml, XML_CIB_TAG_RESOURCE); xml 853 lib/pacemaker/pcmk_graph_consumer.c CRM_CHECK(action_resource != NULL, crm_log_xml_warn(action->xml, "invalid"); xml 857 lib/pacemaker/pcmk_graph_consumer.c crm_element_value(action->xml, XML_LRM_ATTR_TASK), xml 129 lib/pacemaker/pcmk_graph_logging.c pcmk__add_word(&pending, 1024, ID(input->xml)); xml 136 lib/pacemaker/pcmk_graph_logging.c pcmk__add_word(&pending, 1024, ID(input->xml)); xml 149 lib/pacemaker/pcmk_graph_logging.c const char *key = crm_element_value(input->xml, XML_LRM_ATTR_TASK_KEY); xml 150 lib/pacemaker/pcmk_graph_logging.c const char *host = crm_element_value(input->xml, XML_LRM_ATTR_TARGET); xml 165 lib/pacemaker/pcmk_graph_logging.c const char *key = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 166 lib/pacemaker/pcmk_graph_logging.c const char *host = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 46 lib/pacemaker/pcmk_graph_producer.c add_node_to_xml_by_id(const char *id, xmlNode *xml) xml 50 lib/pacemaker/pcmk_graph_producer.c node_xml = create_xml_node(xml, XML_CIB_TAG_NODE); xml 64 lib/pacemaker/pcmk_graph_producer.c add_node_to_xml(const pcmk_node_t *node, void *xml) xml 66 lib/pacemaker/pcmk_graph_producer.c add_node_to_xml_by_id(node->details->id, (xmlNode *) xml); xml 80 lib/pacemaker/pcmk_graph_producer.c add_maintenance_nodes(xmlNode *xml, const pcmk_scheduler_t *scheduler) xml 85 lib/pacemaker/pcmk_graph_producer.c if (xml != NULL) { xml 86 lib/pacemaker/pcmk_graph_producer.c maintenance = create_xml_node(xml, XML_GRAPH_TAG_MAINTENANCE); xml 138 lib/pacemaker/pcmk_graph_producer.c add_downed_nodes(xmlNode *xml, const pcmk_action_t *action) xml 140 lib/pacemaker/pcmk_graph_producer.c CRM_CHECK((xml != NULL) && (action != NULL) && (action->node != NULL), xml 146 lib/pacemaker/pcmk_graph_producer.c xmlNode *downed = create_xml_node(xml, XML_GRAPH_TAG_DOWNED); xml 156 lib/pacemaker/pcmk_graph_producer.c xmlNode *downed = create_xml_node(xml, XML_GRAPH_TAG_DOWNED); xml 184 lib/pacemaker/pcmk_graph_producer.c xmlNode *downed = create_xml_node(xml, XML_GRAPH_TAG_DOWNED); xml 226 lib/pacemaker/pcmk_graph_producer.c add_node_details(const pcmk_action_t *action, xmlNode *xml) xml 230 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(xml, XML_LRM_ATTR_TARGET, action->node->details->uname); xml 231 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(xml, XML_LRM_ATTR_TARGET_UUID, action->node->details->id); xml 233 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(xml, XML_LRM_ATTR_ROUTER_NODE, router_node->details->uname); xml 265 lib/pacemaker/pcmk_graph_producer.c (const char *) action->rsc->xml->name); xml 282 lib/pacemaker/pcmk_graph_producer.c const char *xml_id = ID(action->rsc->xml); xml 599 lib/pacemaker/pcmk_injections.c rclass = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 600 lib/pacemaker/pcmk_injections.c rtype = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 601 lib/pacemaker/pcmk_injections.c rprovider = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 252 lib/pacemaker/pcmk_output.c xmlNode *xml = NULL; xml 275 lib/pacemaker/pcmk_output.c xml = pcmk__output_create_xml_node(out, "rsc_action", xml 283 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 291 lib/pacemaker/pcmk_output.c crm_xml_add(xml, "node", destination->details->uname); xml 295 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 302 lib/pacemaker/pcmk_output.c crm_xml_add(xml, "node", origin->details->uname); xml 306 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 313 lib/pacemaker/pcmk_output.c crm_xml_add(xml, "source", origin->details->uname); xml 317 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 325 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 332 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 340 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 350 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 356 lib/pacemaker/pcmk_output.c crm_xml_add(xml, "reason", source->reason); xml 359 lib/pacemaker/pcmk_output.c pcmk__xe_set_bool_attr(xml, "blocked", true); xml 1040 lib/pacemaker/pcmk_output.c xmlNode *xml = NULL; xml 1042 lib/pacemaker/pcmk_output.c xml = pcmk__output_create_xml_node(out, "digests", xml 1051 lib/pacemaker/pcmk_output.c add_digest_xml(xml, "all", digests->digest_all_calc, xml 1053 lib/pacemaker/pcmk_output.c add_digest_xml(xml, "nonprivate", digests->digest_secure_calc, xml 1055 lib/pacemaker/pcmk_output.c add_digest_xml(xml, "nonreloadable", digests->digest_restart_calc, xml 158 lib/pacemaker/pcmk_resource.c pcmk_resource_digests(xmlNodePtr *xml, pcmk_resource_t *rsc, xml 165 lib/pacemaker/pcmk_resource.c rc = pcmk__xml_output_new(&out, xml); xml 171 lib/pacemaker/pcmk_resource.c pcmk__xml_output_finish(out, xml); xml 62 lib/pacemaker/pcmk_result_code.c pcmk_show_result_code(xmlNodePtr *xml, int code, enum pcmk_result_type type, xml 68 lib/pacemaker/pcmk_result_code.c rc = pcmk__xml_output_new(&out, xml); xml 76 lib/pacemaker/pcmk_result_code.c pcmk__xml_output_finish(out, xml); xml 151 lib/pacemaker/pcmk_result_code.c pcmk_list_result_codes(xmlNodePtr *xml, enum pcmk_result_type type, xml 157 lib/pacemaker/pcmk_result_code.c rc = pcmk__xml_output_new(&out, xml); xml 165 lib/pacemaker/pcmk_result_code.c pcmk__xml_output_finish(out, xml); xml 280 lib/pacemaker/pcmk_rule.c pcmk_check_rules(xmlNodePtr *xml, xmlNodePtr input, const crm_time_t *date, xml 286 lib/pacemaker/pcmk_rule.c rc = pcmk__xml_output_new(&out, xml); xml 294 lib/pacemaker/pcmk_rule.c pcmk__xml_output_finish(out, xml); xml 790 lib/pacemaker/pcmk_sched_bundle.c xmlNode *nvpair = get_xpath_object(XPATH_REMOTE, replica->remote->xml, xml 609 lib/pacemaker/pcmk_sched_clone.c pcmk__clone_add_graph_meta(const pcmk_resource_t *rsc, xmlNode *xml) xml 613 lib/pacemaker/pcmk_sched_clone.c CRM_ASSERT(pe_rsc_is_clone(rsc) && (xml != NULL)); xml 616 lib/pacemaker/pcmk_sched_clone.c crm_xml_add(xml, name, pe__rsc_bool_str(rsc, pcmk_rsc_unique)); xml 620 lib/pacemaker/pcmk_sched_clone.c crm_xml_add(xml, name, pe__rsc_bool_str(rsc, pcmk_rsc_notify)); xml 624 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, pe__clone_max(rsc)); xml 628 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, pe__clone_node_max(rsc)); xml 636 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, promoted_max); xml 640 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, promoted_node_max); xml 647 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, promoted_max); xml 651 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, promoted_node_max); xml 235 lib/pacemaker/pcmk_sched_ordering.c get_ordering_resource(const xmlNode *xml, const char *resource_attr, xml 241 lib/pacemaker/pcmk_sched_ordering.c const char *rsc_id = crm_element_value(xml, resource_attr); xml 242 lib/pacemaker/pcmk_sched_ordering.c const char *instance_id = crm_element_value(xml, instance_attr); xml 246 lib/pacemaker/pcmk_sched_ordering.c ID(xml), resource_attr); xml 253 lib/pacemaker/pcmk_sched_ordering.c "does not exist", ID(xml), rsc_id); xml 266 lib/pacemaker/pcmk_sched_ordering.c ID(xml), rsc_id, instance_id); xml 273 lib/pacemaker/pcmk_sched_ordering.c "'%s'", ID(xml), rsc_id, instance_id); xml 290 lib/pacemaker/pcmk_sched_ordering.c get_minimum_first_instances(const pcmk_resource_t *rsc, const xmlNode *xml) xml 310 lib/pacemaker/pcmk_sched_ordering.c if (pcmk__xe_get_bool_attr(xml, "require-all", &require_all) != ENODATA) { xml 769 lib/pacemaker/pcmk_sched_primitive.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 1485 lib/pacemaker/pcmk_sched_primitive.c pcmk__primitive_add_graph_meta(const pcmk_resource_t *rsc, xmlNode *xml) xml 1492 lib/pacemaker/pcmk_sched_primitive.c && (xml != NULL)); xml 1501 lib/pacemaker/pcmk_sched_primitive.c crm_xml_add(xml, name, value); xml 1509 lib/pacemaker/pcmk_sched_primitive.c crm_xml_add(xml, name, value); xml 1519 lib/pacemaker/pcmk_sched_primitive.c crm_xml_add(xml, CRM_META "_" XML_RSC_ATTR_CONTAINER, xml 1530 lib/pacemaker/pcmk_sched_primitive.c crm_xml_add(xml, "pcmk_external_ip", value); xml 1603 lib/pacemaker/pcmk_sched_primitive.c class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 173 lib/pacemaker/pcmk_sched_probes.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 41 lib/pacemaker/pcmk_sched_recurring.c xe_interval(const xmlNode *xml) xml 43 lib/pacemaker/pcmk_sched_recurring.c return crm_parse_interval_spec(crm_element_value(xml, xml 125 lib/pacemaker/pcmk_sched_recurring.c is_recurring_history(const pcmk_resource_t *rsc, const xmlNode *xml, xml 130 lib/pacemaker/pcmk_sched_recurring.c op->interval_ms = xe_interval(xml); xml 135 lib/pacemaker/pcmk_sched_recurring.c op->id = ID(xml); xml 141 lib/pacemaker/pcmk_sched_recurring.c op->name = crm_element_value(xml, "name"); xml 154 lib/pacemaker/pcmk_sched_recurring.c role = crm_element_value(xml, "role"); xml 122 lib/pacemaker/pcmk_sched_resource.c const char *value = crm_element_value(rsc->xml, attr_list[i]); xml 306 lib/pacemaker/pcmk_sched_resource.c pcmk__noop_add_graph_meta(const pcmk_resource_t *rsc, xmlNode *xml) xml 337 lib/pacemaker/pcmk_scheduler.c rsc->xml->name, rsc->id); xml 670 lib/pacemaker/pcmk_scheduler.c out->message(out, crm_map_element_name(rsc->xml), 0, rsc, all, all); xml 472 lib/pacemaker/pcmk_simulate.c const char *node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 473 lib/pacemaker/pcmk_simulate.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 503 lib/pacemaker/pcmk_simulate.c const char *operation = crm_element_value(action->xml, "operation"); xml 509 lib/pacemaker/pcmk_simulate.c xmlNode *action_rsc = first_named_child(action->xml, XML_CIB_TAG_RESOURCE); xml 511 lib/pacemaker/pcmk_simulate.c char *node = crm_element_value_copy(action->xml, XML_LRM_ATTR_TARGET); xml 513 lib/pacemaker/pcmk_simulate.c const char *router_node = crm_element_value(action->xml, xml 523 lib/pacemaker/pcmk_simulate.c crm_log_xml_err(action->xml, "Bad"); xml 535 lib/pacemaker/pcmk_simulate.c crm_log_xml_err(action->xml, "No ID"); xml 567 lib/pacemaker/pcmk_simulate.c uuid = crm_element_value_copy(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 665 lib/pacemaker/pcmk_simulate.c const char *node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 666 lib/pacemaker/pcmk_simulate.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 667 lib/pacemaker/pcmk_simulate.c xmlNode *rsc = first_named_child(action->xml, XML_CIB_TAG_RESOURCE); xml 688 lib/pacemaker/pcmk_simulate.c char *target = crm_element_value_copy(action->xml, XML_LRM_ATTR_TARGET); xml 985 lib/pacemaker/pcmk_simulate.c pcmk_simulate(xmlNodePtr *xml, pcmk_scheduler_t *scheduler, xml 994 lib/pacemaker/pcmk_simulate.c rc = pcmk__xml_output_new(&out, xml); xml 1004 lib/pacemaker/pcmk_simulate.c pcmk__xml_output_finish(out, xml); xml 154 lib/pacemaker/pcmk_status.c pcmk_status(xmlNodePtr *xml) xml 170 lib/pacemaker/pcmk_status.c rc = pcmk__xml_output_new(&out, xml); xml 182 lib/pacemaker/pcmk_status.c pcmk__xml_output_finish(out, xml); xml 934 lib/pengine/bundle.c && xml_contains_remote_node(rsc->xml); xml 939 lib/pengine/bundle.c xmlNode *xml, const char *field) xml 970 lib/pengine/bundle.c if(xml != NULL && field != NULL) { xml 971 lib/pengine/bundle.c crm_xml_add(xml, field, node->details->uname); xml 999 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, PE__CONTAINER_AGENT_DOCKER_S); xml 1003 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, PE__CONTAINER_AGENT_RKT_S); xml 1007 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, PE__CONTAINER_AGENT_PODMAN_S); xml 1048 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, "network"); xml 1085 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, "storage"); xml 1110 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, "primitive"); xml 1525 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->ip->xml), show_opts, xml 1530 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), show_opts, xml 1535 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->container->xml), show_opts, xml 1540 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), show_opts, xml 1668 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->ip->xml), xml 1673 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), xml 1678 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->container->xml), xml 1683 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), xml 1804 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->ip->xml), xml 1809 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), xml 1814 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->container->xml), xml 1819 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), xml 1962 lib/pengine/bundle.c free_xml(replica->ip->xml); xml 1963 lib/pengine/bundle.c replica->ip->xml = NULL; xml 1968 lib/pengine/bundle.c free_xml(replica->container->xml); xml 1969 lib/pengine/bundle.c replica->container->xml = NULL; xml 1974 lib/pengine/bundle.c free_xml(replica->remote->xml); xml 1975 lib/pengine/bundle.c replica->remote->xml = NULL; xml 2010 lib/pengine/bundle.c free_xml(bundle_data->child->xml); xml 2011 lib/pengine/bundle.c bundle_data->child->xml = NULL; xml 329 lib/pengine/clone.c xmlNode *xml_obj = rsc->xml; xml 878 lib/pengine/clone.c out->message(out, crm_map_element_name(child_rsc->xml), show_opts, xml 1014 lib/pengine/clone.c out->message(out, crm_map_element_name(child_rsc->xml), show_opts, xml 1193 lib/pengine/clone.c free_xml(child_rsc->xml); xml 1194 lib/pengine/clone.c child_rsc->xml = NULL; xml 130 lib/pengine/complex.c pe__unpack_dataset_nvpairs(p->xml, XML_TAG_META_SETS, rule_data, xml 161 lib/pengine/complex.c .standard = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS), xml 162 lib/pengine/complex.c .provider = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER), xml 163 lib/pengine/complex.c .agent = crm_element_value(rsc->xml, XML_EXPR_ATTR_TYPE) xml 179 lib/pengine/complex.c for (xmlAttrPtr a = pcmk__xe_first_attr(rsc->xml); a != NULL; a = a->next) { xml 186 lib/pengine/complex.c pe__unpack_dataset_nvpairs(rsc->xml, XML_TAG_META_SETS, &rule_data, xml 223 lib/pengine/complex.c pe__unpack_dataset_nvpairs(rsc->xml, XML_TAG_ATTR_SETS, &rule_data, xml 416 lib/pengine/complex.c if (pcmk__xe_is(rsc->xml, PCMK_XE_PROMOTABLE_LEGACY)) { xml 533 lib/pengine/complex.c && xml_contains_remote_node(rsc->xml)) { xml 568 lib/pengine/complex.c const char *std = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 651 lib/pengine/complex.c (*rsc)->xml = expanded_xml; xml 655 lib/pengine/complex.c (*rsc)->xml = xml_obj; xml 663 lib/pengine/complex.c ops = find_xml_node((*rsc)->xml, "operations", FALSE); xml 666 lib/pengine/complex.c (*rsc)->variant = get_resource_type((const char *) (*rsc)->xml->name); xml 669 lib/pengine/complex.c id, (*rsc)->xml->name); xml 683 lib/pengine/complex.c value = crm_element_value((*rsc)->xml, XML_RSC_ATTR_INCARNATION); xml 728 lib/pengine/complex.c if (xml_contains_remote_node((*rsc)->xml)) { xml 844 lib/pengine/complex.c if (pcmk__str_eq(crm_element_value((*rsc)->xml, XML_AGENT_ATTR_CLASS), xml 905 lib/pengine/complex.c pe__unpack_dataset_nvpairs((*rsc)->xml, XML_TAG_UTILIZATION, &rule_data, xml 1006 lib/pengine/complex.c free_xml(rsc->xml); xml 1007 lib/pengine/complex.c rsc->xml = NULL; xml 1013 lib/pengine/complex.c free_xml(rsc->xml); xml 1014 lib/pengine/complex.c rsc->xml = NULL; xml 101 lib/pengine/failcounts.c xmlXPathObject *xpathObj = xpath_search(rsc->xml, xpath); xml 182 lib/pengine/group.c xmlNode *xml_obj = rsc->xml; xml 199 lib/pengine/group.c clone_id = crm_element_value(rsc->xml, XML_RSC_ATTR_INCARNATION); xml 387 lib/pengine/group.c out->message(out, crm_map_element_name(child_rsc->xml), show_opts, child_rsc, xml 445 lib/pengine/group.c out->message(out, crm_map_element_name(child_rsc->xml), show_opts, xml 209 lib/pengine/native.c const char *standard = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 284 lib/pengine/native.c const char *rid = ID(rsc->xml); xml 469 lib/pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 470 lib/pengine/native.c const char *prov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 480 lib/pengine/native.c crm_element_value(rsc->xml, XML_ATTR_TYPE)); xml 567 lib/pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 569 lib/pengine/native.c const char *kind = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 582 lib/pengine/native.c provider = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 689 lib/pengine/native.c const char *desc = crm_element_value(rsc->xml, XML_ATTR_DESC); xml 721 lib/pengine/native.c const char *kind = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 963 lib/pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 964 lib/pengine/native.c const char *prov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 989 lib/pengine/native.c crm_element_value(rsc->xml, XML_ATTR_TYPE)); xml 1173 lib/pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 1174 lib/pengine/native.c const char *kind = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 1188 lib/pengine/native.c const char *prov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 703 lib/pengine/pe_actions.c .standard = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS), xml 704 lib/pengine/pe_actions.c .provider = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER), xml 705 lib/pengine/pe_actions.c .agent = crm_element_value(rsc->xml, XML_EXPR_ATTR_TYPE), xml 192 lib/pengine/pe_digest.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 27 lib/pengine/pe_output.c desc = crm_element_value(rsc->xml, XML_ATTR_DESC); xml 383 lib/pengine/pe_output.c return dump_xml_formatted(rsc->orig_xml ? rsc->orig_xml : rsc->xml); xml 385 lib/pengine/pe_output.c return dump_xml_formatted(rsc->xml); xml 1693 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), show_opts, xml 1836 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), show_opts, xml 1926 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), show_opts, xml 2089 lib/pengine/pe_output.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 2090 lib/pengine/pe_output.c const char *kind = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 2094 lib/pengine/pe_output.c pcmk_is_set(pcmk_get_ra_caps(class), pcmk_ra_cap_provider) ? crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER) : "", xml 2866 lib/pengine/pe_output.c x = out->message(out, crm_map_element_name(rsc->xml), show_opts, rsc, xml 84 lib/pengine/remote.c xml_contains_remote_node(xmlNode *xml) xml 88 lib/pengine/remote.c if (xml == NULL) { xml 92 lib/pengine/remote.c value = crm_element_value(xml, XML_ATTR_TYPE); xml 97 lib/pengine/remote.c value = crm_element_value(xml, XML_AGENT_ATTR_CLASS); xml 102 lib/pengine/remote.c value = crm_element_value(xml, XML_AGENT_ATTR_PROVIDER); xml 276 lib/pengine/rules.c update_field(crm_time_t *t, const xmlNode *xml, const char *attr, xml 281 lib/pengine/rules.c if ((pcmk__scan_ll(crm_element_value(xml, attr), &value, 0LL) == pcmk_rc_ok) xml 22 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c xmlNodePtr xml = string2xml(x); xml 24 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c assert_int_equal(pe_cron_range_satisfied(tm, xml), expected); xml 27 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c free_xml(xml); xml 34 lib/pengine/unpack.c xmlNode *xml; // History entry XML xml 80 lib/pengine/unpack.c static void unpack_node_lrm(pcmk_node_t *node, const xmlNode *xml, xml 2770 lib/pengine/unpack.c unpack_node_lrm(pcmk_node_t *node, const xmlNode *xml, xml 2776 lib/pengine/unpack.c xml = find_xml_node(xml, XML_CIB_TAG_LRM, FALSE); xml 2777 lib/pengine/unpack.c if (xml == NULL) { xml 2780 lib/pengine/unpack.c xml = find_xml_node(xml, XML_LRM_TAG_RESOURCES, FALSE); xml 2781 lib/pengine/unpack.c if (xml == NULL) { xml 2786 lib/pengine/unpack.c for (const xmlNode *rsc_entry = first_named_child(xml, XML_LRM_TAG_RESOURCE); xml 2801 lib/pengine/unpack.c handle_orphaned_container_fillers(xml, scheduler); xml 2838 lib/pengine/unpack.c xmlNode *xml = NULL; xml 2865 lib/pengine/unpack.c xml = get_xpath_object((const char *) xpath->str, scheduler->input, xml 2869 lib/pengine/unpack.c if (xml && target_rc >= 0) { xml 2873 lib/pengine/unpack.c crm_element_value_int(xml, XML_LRM_ATTR_RC, &rc); xml 2874 lib/pengine/unpack.c crm_element_value_int(xml, XML_LRM_ATTR_OPSTATUS, &status); xml 2879 lib/pengine/unpack.c return xml; xml 2887 lib/pengine/unpack.c xmlNode *xml = NULL; xml 2897 lib/pengine/unpack.c xml = get_xpath_object((const char *) xpath->str, scheduler->input, xml 2901 lib/pengine/unpack.c return xml; xml 3184 lib/pengine/unpack.c if (get_migration_node_names(history->xml, history->node, NULL, &source, xml 3190 lib/pengine/unpack.c source_newer_op = non_monitor_after(history->rsc->id, source, history->xml, xml 3213 lib/pengine/unpack.c history->xml, migrate_from, xml 3300 lib/pengine/unpack.c if (get_migration_node_names(history->xml, history->node, NULL, &source, xml 3324 lib/pengine/unpack.c && !newer_state_after_migrate(history->rsc->id, target, history->xml, xml 3339 lib/pengine/unpack.c } else if (!non_monitor_after(history->rsc->id, source, history->xml, true, xml 3367 lib/pengine/unpack.c if (get_migration_node_names(history->xml, NULL, history->node, &source, xml 3392 lib/pengine/unpack.c source_migrate_to, history->xml, xml 3437 lib/pengine/unpack.c crm_xml_add(history->xml, XML_ATTR_UNAME, history->node->details->uname); xml 3438 lib/pengine/unpack.c crm_xml_add(history->xml, XML_LRM_ATTR_RSCID, history->rsc->id); xml 3439 lib/pengine/unpack.c add_node_copy(history->rsc->cluster->failed, history->xml); xml 3639 lib/pengine/unpack.c *last_failure = history->xml; xml 3641 lib/pengine/unpack.c is_probe = pcmk_xe_is_probe(history->xml); xml 3642 lib/pengine/unpack.c last_change_s = last_change_str(history->xml); xml 3767 lib/pengine/unpack.c last_change_s = last_change_str(history->xml); xml 3845 lib/pengine/unpack.c && pcmk_xe_mask_probe_failure(history->xml) xml 3874 lib/pengine/unpack.c is_probe = pcmk_xe_is_probe(history->xml); xml 3914 lib/pengine/unpack.c char *last_change_s = last_change_str(history->xml); xml 3944 lib/pengine/unpack.c char *last_change_s = last_change_str(history->xml); xml 3973 lib/pengine/unpack.c crm_element_value_ms(history->xml, XML_LRM_ATTR_INTERVAL_MS, xml 4000 lib/pengine/unpack.c char *last_change_s = last_change_str(history->xml); xml 4154 lib/pengine/unpack.c && (crm_element_value_epoch(history->xml, XML_RSC_OP_LAST_CHANGE, xml 4174 lib/pengine/unpack.c history->xml); xml 4191 lib/pengine/unpack.c pcmk__fc_default, history->xml)) { xml 4222 lib/pengine/unpack.c && should_clear_for_param_change(history->xml, history->task, xml 4305 lib/pengine/unpack.c && pcmk_xe_mask_probe_failure(history->xml))) { xml 4438 lib/pengine/unpack.c if ((crm_element_value_int(history->xml, XML_LRM_ATTR_OPSTATUS, xml 4446 lib/pengine/unpack.c pcmk__s(crm_element_value(history->xml, XML_LRM_ATTR_OPSTATUS), xml 4450 lib/pengine/unpack.c if ((crm_element_value_int(history->xml, XML_LRM_ATTR_RC, xml 4461 lib/pengine/unpack.c pcmk__s(crm_element_value(history->xml, XML_LRM_ATTR_RC), xml 4468 lib/pengine/unpack.c history->exit_reason = crm_element_value(history->xml, xml 4487 lib/pengine/unpack.c && pcmk_xe_mask_probe_failure(history->xml) xml 4527 lib/pengine/unpack.c crm_xml_add(history->xml, XML_LRM_ATTR_RESTART_DIGEST, xml 4560 lib/pengine/unpack.c crm_xml_add(history->xml, XML_ATTR_UNAME, history->node->details->uname); xml 4602 lib/pengine/unpack.c if ((pcmk__scan_ll(crm_element_value(history->xml, XML_RSC_OP_LAST_CHANGE), xml 4653 lib/pengine/unpack.c migrate_target = crm_element_value(history->xml, xml 4697 lib/pengine/unpack.c .xml = xml_op, xml 548 lib/pengine/utils.c return pcmk_is_set(rsc->flags, pcmk_rsc_unique)? rsc->id : ID(rsc->xml); xml 73 tools/cibadmin.c print_xml_output(xmlNode * xml) xml 75 tools/cibadmin.c if (!xml) { xml 77 tools/cibadmin.c } else if (xml->type != XML_ELEMENT_NODE) { xml 82 tools/cibadmin.c const char *id = crm_element_value(xml, XML_ATTR_ID); xml 84 tools/cibadmin.c if (pcmk__str_eq((const char *)xml->name, "xpath-query", pcmk__str_casei)) { xml 87 tools/cibadmin.c for (child = xml->children; child; child = child->next) { xml 96 tools/cibadmin.c char *buffer = dump_xml_formatted(xml); xml 1799 tools/crm_mon.c handle_rsc_op(xmlNode *xml, void *userdata) xml 1814 tools/crm_mon.c xmlNode *n = xml; xml 1815 tools/crm_mon.c xmlNode * rsc_op = xml; xml 1817 tools/crm_mon.c if(strcmp((const char*)xml->name, XML_LRM_TAG_RSC_OP) != 0) { xml 1818 tools/crm_mon.c pcmk__xe_foreach_child(xml, NULL, handle_rsc_op, (void *) node_id); xml 1903 tools/crm_mon.c handle_op_for_node(xmlNode *xml, void *userdata) xml 1905 tools/crm_mon.c const char *node = crm_element_value(xml, XML_ATTR_UNAME); xml 1908 tools/crm_mon.c node = ID(xml); xml 1911 tools/crm_mon.c handle_rsc_op(xml, (void *) node); xml 546 tools/crm_node.c xmlNode *xml = NULL; xml 549 tools/crm_node.c xml = create_xml_node(NULL, element); xml 550 tools/crm_node.c if (xml == NULL) { xml 553 tools/crm_node.c crm_xml_add(xml, XML_ATTR_UNAME, node_name); xml 555 tools/crm_node.c crm_xml_set_id(xml, "%ld", node_id); xml 557 tools/crm_node.c rc = cib->cmds->remove(cib, section, xml, cib_transaction); xml 558 tools/crm_node.c free_xml(xml); xml 1950 tools/crm_resource.c value = crm_element_value(rsc->xml, options.prop_name); xml 1955 tools/crm_resource.c pe__unpack_dataset_nvpairs(rsc->xml, XML_TAG_UTILIZATION, NULL, params, xml 123 tools/crm_resource.h int update_scheduler_input(pcmk_scheduler_t *scheduler, xmlNode **xml); xml 67 tools/crm_resource_print.c const char *rtype = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 68 tools/crm_resource_print.c const char *rprov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 69 tools/crm_resource_print.c const char *rclass = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 83 tools/crm_resource_print.c rsc->xml->name, rsc->id, xml 128 tools/crm_resource_print.c out->message(out, crm_map_element_name(rsc->xml), show_opts, rsc, all, all); xml 289 tools/crm_resource_print.c const char *value = crm_element_value(rsc->xml, attr); xml 306 tools/crm_resource_print.c const char *value = crm_element_value(rsc->xml, attr); xml 302 tools/crm_resource_runtime.c crm_xml_add(rsc->xml, attr_name, attr_value); xml 304 tools/crm_resource_runtime.c rc = cib->cmds->replace(cib, XML_CIB_TAG_RESOURCES, rsc->xml, xml 366 tools/crm_resource_runtime.c xml_top = create_xml_node(NULL, (const char *) rsc->xml->name); xml 470 tools/crm_resource_runtime.c xml_remove_prop(rsc->xml, attr_name); xml 472 tools/crm_resource_runtime.c rc = cib->cmds->replace(cib, XML_CIB_TAG_RESOURCES, rsc->xml, xml 564 tools/crm_resource_runtime.c rsc_class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 565 tools/crm_resource_runtime.c rsc_provider = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER), xml 566 tools/crm_resource_runtime.c rsc_type = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 1200 tools/crm_resource_runtime.c update_scheduler_input(pcmk_scheduler_t *scheduler, xmlNode **xml) xml 1202 tools/crm_resource_runtime.c if (cli_config_update(xml, NULL, FALSE) == FALSE) { xml 1205 tools/crm_resource_runtime.c scheduler->input = *xml; xml 2106 tools/crm_resource_runtime.c rclass = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 2107 tools/crm_resource_runtime.c rprov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 2108 tools/crm_resource_runtime.c rtype = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 521 tools/crm_shadow.c write_shadow_file(const xmlNode *xml, const char *filename, bool reset, xml 524 tools/crm_shadow.c int rc = write_xml_file(xml, filename, FALSE);