xml 26 daemons/attrd/attrd_attributes.c attrd_create_attribute(xmlNode *xml) xml 29 daemons/attrd/attrd_attributes.c const char *value = crm_element_value(xml, PCMK__XA_ATTR_DAMPENING); xml 34 daemons/attrd/attrd_attributes.c a->id = crm_element_value_copy(xml, PCMK__XA_ATTR_NAME); xml 35 daemons/attrd/attrd_attributes.c a->set_id = crm_element_value_copy(xml, PCMK__XA_ATTR_SET); xml 36 daemons/attrd/attrd_attributes.c a->set_type = crm_element_value_copy(xml, PCMK__XA_ATTR_SET_TYPE); xml 37 daemons/attrd/attrd_attributes.c a->uuid = crm_element_value_copy(xml, PCMK__XA_ATTR_UUID); xml 40 daemons/attrd/attrd_attributes.c crm_element_value_int(xml, PCMK__XA_ATTR_IS_PRIVATE, &a->is_private); xml 42 daemons/attrd/attrd_attributes.c a->user = crm_element_value_copy(xml, PCMK__XA_ATTR_USER); xml 63 daemons/attrd/attrd_attributes.c attrd_update_dampening(attribute_t *a, xmlNode *xml, const char *attr) xml 65 daemons/attrd/attrd_attributes.c const char *dvalue = crm_element_value(xml, PCMK__XA_ATTR_DAMPENING); xml 119 daemons/attrd/attrd_attributes.c xmlNode *xml = create_xml_node(parent, __func__); xml 121 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_NAME, a->id); xml 122 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_SET, a->set_id); xml 123 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_UUID, a->uuid); xml 124 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_USER, a->user); xml 125 daemons/attrd/attrd_attributes.c pcmk__xe_add_node(xml, v->nodename, v->nodeid); xml 127 daemons/attrd/attrd_attributes.c crm_xml_add_int(xml, PCMK__XA_ATTR_IS_REMOTE, 1); xml 129 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_VALUE, v->current); xml 130 daemons/attrd/attrd_attributes.c crm_xml_add_int(xml, PCMK__XA_ATTR_DAMPENING, a->timeout_ms / 1000); xml 131 daemons/attrd/attrd_attributes.c crm_xml_add_int(xml, PCMK__XA_ATTR_IS_PRIVATE, a->is_private); xml 132 daemons/attrd/attrd_attributes.c crm_xml_add_int(xml, PCMK__XA_ATTR_FORCE, force_write); xml 134 daemons/attrd/attrd_attributes.c return xml; xml 156 daemons/attrd/attrd_attributes.c attrd_populate_attribute(xmlNode *xml, const char *attr) xml 161 daemons/attrd/attrd_attributes.c const char *op = crm_element_value(xml, PCMK__XA_TASK); xml 171 daemons/attrd/attrd_attributes.c a = attrd_create_attribute(xml); xml 180 daemons/attrd/attrd_attributes.c int rc = attrd_update_dampening(a, xml, attr); xml 42 daemons/attrd/attrd_corosync.c attrd_peer_message(crm_node_t *peer, xmlNode *xml) xml 44 daemons/attrd/attrd_corosync.c const char *election_op = crm_element_value(xml, F_CRM_TASK); xml 47 daemons/attrd/attrd_corosync.c attrd_handle_election_op(peer, xml); xml 64 daemons/attrd/attrd_corosync.c .xml = xml, xml 69 daemons/attrd/attrd_corosync.c request.op = crm_element_value_copy(request.xml, PCMK__XA_TASK); xml 77 daemons/attrd/attrd_corosync.c if (pcmk__xe_attr_is_true(xml, PCMK__XA_CONFIRM) && xml 86 daemons/attrd/attrd_corosync.c crm_element_value_int(xml, XML_LRM_ATTR_CALLID, &callid); xml 109 daemons/attrd/attrd_corosync.c xmlNode *xml = NULL; xml 118 daemons/attrd/attrd_corosync.c xml = string2xml(data); xml 121 daemons/attrd/attrd_corosync.c if (xml == NULL) { xml 126 daemons/attrd/attrd_corosync.c attrd_peer_message(peer, xml); xml 129 daemons/attrd/attrd_corosync.c free_xml(xml); xml 207 daemons/attrd/attrd_corosync.c const xmlNode *xml) xml 212 daemons/attrd/attrd_corosync.c crm_element_value_int(xml, PCMK__XA_ATTR_IS_REMOTE, &is_remote); xml 293 daemons/attrd/attrd_corosync.c update_attr_on_host(attribute_t *a, const crm_node_t *peer, const xmlNode *xml, xml 299 daemons/attrd/attrd_corosync.c v = attrd_lookup_or_create_value(a->values, host, xml); xml 354 daemons/attrd/attrd_corosync.c && (crm_element_value_int(xml, PCMK__XA_ATTR_NODE_ID, xml 361 daemons/attrd/attrd_corosync.c attrd_peer_update_one(const crm_node_t *peer, xmlNode *xml, bool filter) xml 364 daemons/attrd/attrd_corosync.c const char *attr = crm_element_value(xml, PCMK__XA_ATTR_NAME); xml 365 daemons/attrd/attrd_corosync.c const char *value = crm_element_value(xml, PCMK__XA_ATTR_VALUE); xml 366 daemons/attrd/attrd_corosync.c const char *host = crm_element_value(xml, PCMK__XA_ATTR_NODE_NAME); xml 374 daemons/attrd/attrd_corosync.c crm_element_value_int(xml, PCMK__XA_ATTR_FORCE, &is_force_write); xml 376 daemons/attrd/attrd_corosync.c a = attrd_populate_attribute(xml, attr); xml 386 daemons/attrd/attrd_corosync.c xml_remove_prop(xml, PCMK__XA_ATTR_NODE_ID); xml 390 daemons/attrd/attrd_corosync.c update_attr_on_host(a, peer, xml, attr, value, host, filter, is_force_write); xml 395 daemons/attrd/attrd_corosync.c update_attr_on_host(a, peer, xml, attr, value, host, filter, is_force_write); xml 458 daemons/attrd/attrd_corosync.c xmlNode *xml = request->xml; xml 459 daemons/attrd/attrd_corosync.c const char *rsc = crm_element_value(xml, PCMK__XA_ATTR_RESOURCE); xml 460 daemons/attrd/attrd_corosync.c const char *host = crm_element_value(xml, PCMK__XA_ATTR_NODE_NAME); xml 461 daemons/attrd/attrd_corosync.c const char *op = crm_element_value(xml, PCMK__XA_ATTR_OPERATION); xml 462 daemons/attrd/attrd_corosync.c const char *interval_spec = crm_element_value(xml, PCMK__XA_ATTR_INTERVAL); xml 476 daemons/attrd/attrd_corosync.c crm_xml_add(xml, PCMK__XA_TASK, PCMK__ATTRD_CMD_UPDATE); xml 479 daemons/attrd/attrd_corosync.c if (crm_element_value(xml, PCMK__XA_ATTR_VALUE)) { xml 480 daemons/attrd/attrd_corosync.c crm_xml_replace(xml, PCMK__XA_ATTR_VALUE, NULL); xml 488 daemons/attrd/attrd_corosync.c crm_xml_add(xml, PCMK__XA_ATTR_NAME, attr); xml 489 daemons/attrd/attrd_corosync.c attrd_peer_update(peer, xml, host, false); xml 504 daemons/attrd/attrd_corosync.c attrd_peer_sync_response(const crm_node_t *peer, bool peer_won, xmlNode *xml) xml 517 daemons/attrd/attrd_corosync.c for (xmlNode *child = pcmk__xml_first_child(xml); child != NULL; xml 563 daemons/attrd/attrd_corosync.c attrd_peer_sync(crm_node_t *peer, xmlNode *xml) xml 589 daemons/attrd/attrd_corosync.c attrd_peer_update(const crm_node_t *peer, xmlNode *xml, const char *host, xml 594 daemons/attrd/attrd_corosync.c if (xml_has_children(xml)) { xml 595 daemons/attrd/attrd_corosync.c for (xmlNode *child = first_named_child(xml, XML_ATTR_OP); child != NULL; xml 597 daemons/attrd/attrd_corosync.c attrd_copy_xml_attributes(xml, child); xml 606 daemons/attrd/attrd_corosync.c attrd_peer_update_one(peer, xml, filter); xml 608 daemons/attrd/attrd_corosync.c if (attrd_request_has_sync_point(xml)) { xml 618 daemons/attrd/attrd_corosync.c attrd_ack_waitlist_clients(attrd_sync_point_local, xml); xml 65 daemons/attrd/attrd_elections.c attrd_handle_election_op(const crm_node_t *peer, xmlNode *xml) xml 70 daemons/attrd/attrd_elections.c crm_xml_add(xml, F_CRM_HOST_FROM, peer->uname); xml 73 daemons/attrd/attrd_elections.c rc = election_count_vote(writer, xml, !attrd_shutting_down()); xml 114 daemons/attrd/attrd_elections.c attrd_check_for_new_writer(const crm_node_t *peer, const xmlNode *xml) xml 118 daemons/attrd/attrd_elections.c crm_element_value_int(xml, PCMK__XA_ATTR_WRITER, &peer_state); xml 176 daemons/attrd/attrd_elections.c attrd_xml_add_writer(xmlNode *xml) xml 178 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 if (crm_element_value(xml, PCMK__XA_ATTR_NAME)) { xml 144 daemons/attrd/attrd_ipc.c crm_xml_replace(xml, PCMK__XA_ATTR_NAME, NULL); xml 146 daemons/attrd/attrd_ipc.c if (crm_element_value(xml, PCMK__XA_ATTR_VALUE)) { xml 147 daemons/attrd/attrd_ipc.c crm_xml_replace(xml, PCMK__XA_ATTR_VALUE, NULL); xml 156 daemons/attrd/attrd_ipc.c xmlNode *xml = request->xml; xml 159 daemons/attrd/attrd_ipc.c const char *host = crm_element_value(xml, PCMK__XA_ATTR_NODE_NAME); xml 167 daemons/attrd/attrd_ipc.c crm_element_value_int(xml, PCMK__XA_ATTR_NODE_ID, &nodeid); xml 180 daemons/attrd/attrd_ipc.c pcmk__xe_add_node(xml, host, 0); xml 187 daemons/attrd/attrd_ipc.c attrd_send_message(NULL, xml, false); /* ends up at attrd_peer_message() */ xml 201 daemons/attrd/attrd_ipc.c xmlNode *query = request->xml; xml 245 daemons/attrd/attrd_ipc.c handle_missing_host(xmlNode *xml) xml 247 daemons/attrd/attrd_ipc.c const char *host = crm_element_value(xml, PCMK__XA_ATTR_NODE_NAME); xml 251 daemons/attrd/attrd_ipc.c pcmk__xe_add_node(xml, attrd_cluster->uname, attrd_cluster->nodeid); xml 259 daemons/attrd/attrd_ipc.c expand_regexes(xmlNode *xml, const char *attr, const char *value, const char *regex) xml 276 daemons/attrd/attrd_ipc.c xmlNode *child = create_xml_node(xml, XML_ATTR_OP); xml 284 daemons/attrd/attrd_ipc.c attrd_copy_xml_attributes(xml, child); xml 311 daemons/attrd/attrd_ipc.c xmlNode *xml = request->xml; xml 314 daemons/attrd/attrd_ipc.c const char *attr = crm_element_value(xml, PCMK__XA_ATTR_NAME); xml 315 daemons/attrd/attrd_ipc.c const char *value = crm_element_value(xml, PCMK__XA_ATTR_VALUE); xml 316 daemons/attrd/attrd_ipc.c const char *regex = crm_element_value(xml, PCMK__XA_ATTR_PATTERN); xml 318 daemons/attrd/attrd_ipc.c rc = expand_regexes(xml, attr, value, regex); xml 336 daemons/attrd/attrd_ipc.c handle_value_expansion(const char **value, xmlNode *xml, const char *op, xml 350 daemons/attrd/attrd_ipc.c const char *host = crm_element_value(xml, PCMK__XA_ATTR_NODE_NAME); xml 357 daemons/attrd/attrd_ipc.c crm_xml_add_int(xml, PCMK__XA_ATTR_VALUE, int_value); xml 360 daemons/attrd/attrd_ipc.c *value = crm_element_value(xml, PCMK__XA_ATTR_VALUE); xml 367 daemons/attrd/attrd_ipc.c send_update_msg_to_cluster(pcmk__request_t *request, xmlNode *xml) xml 369 daemons/attrd/attrd_ipc.c if (pcmk__str_eq(attrd_request_sync_point(xml), PCMK__VALUE_CLUSTER, pcmk__str_none)) { xml 375 daemons/attrd/attrd_ipc.c attrd_send_message(NULL, xml, true); /* ends up at attrd_peer_message() */ xml 384 daemons/attrd/attrd_ipc.c attrd_send_message(NULL, xml, false); /* ends up at attrd_peer_message() */ xml 396 daemons/attrd/attrd_ipc.c request->xml = child; xml 404 daemons/attrd/attrd_ipc.c xmlNode *xml = request->xml; xml 411 daemons/attrd/attrd_ipc.c if (xml_has_children(xml)) { xml 418 daemons/attrd/attrd_ipc.c for (xmlNode *child = first_named_child(xml, XML_ATTR_OP); child != NULL; xml 432 daemons/attrd/attrd_ipc.c send_update_msg_to_cluster(request, xml); xml 439 daemons/attrd/attrd_ipc.c xmlNode *orig_xml = request->xml; xml 445 daemons/attrd/attrd_ipc.c pcmk__xe_foreach_child(xml, XML_ATTR_OP, send_child_update, request); xml 446 daemons/attrd/attrd_ipc.c request->xml = orig_xml; xml 452 daemons/attrd/attrd_ipc.c attr = crm_element_value(xml, PCMK__XA_ATTR_NAME); xml 453 daemons/attrd/attrd_ipc.c value = crm_element_value(xml, PCMK__XA_ATTR_VALUE); xml 454 daemons/attrd/attrd_ipc.c regex = crm_element_value(xml, PCMK__XA_ATTR_PATTERN); xml 467 daemons/attrd/attrd_ipc.c handle_missing_host(xml); xml 469 daemons/attrd/attrd_ipc.c if (handle_value_expansion(&value, xml, request->op, attr) == EINVAL) { xml 475 daemons/attrd/attrd_ipc.c crm_debug("Broadcasting %s[%s]=%s%s", attr, crm_element_value(xml, PCMK__XA_ATTR_NODE_NAME), xml 478 daemons/attrd/attrd_ipc.c send_update_msg_to_cluster(request, xml); xml 561 daemons/attrd/attrd_ipc.c xmlNode *xml = NULL; xml 570 daemons/attrd/attrd_ipc.c xml = pcmk__client_data2xml(client, data, &id, &flags); xml 572 daemons/attrd/attrd_ipc.c if (xml == NULL) { xml 583 daemons/attrd/attrd_ipc.c .xml = xml, xml 589 daemons/attrd/attrd_ipc.c pcmk__update_acl_user(xml, PCMK__XA_ATTR_USER, client->user); xml 591 daemons/attrd/attrd_ipc.c request.op = crm_element_value_copy(request.xml, PCMK__XA_TASK); xml 598 daemons/attrd/attrd_ipc.c free_xml(xml); xml 45 daemons/attrd/attrd_messages.c if (attrd_request_has_sync_point(request->xml)) { xml 76 daemons/attrd/attrd_messages.c if (crm_element_value_int(request->xml, XML_LRM_ATTR_CALLID, &callid) == -1) { xml 118 daemons/attrd/attrd_messages.c const char *host = crm_element_value(request->xml, PCMK__XA_ATTR_NODE_NAME); xml 143 daemons/attrd/attrd_messages.c attrd_peer_sync(peer, request->xml); xml 159 daemons/attrd/attrd_messages.c bool peer_won = attrd_check_for_new_writer(peer, request->xml); xml 162 daemons/attrd/attrd_messages.c attrd_peer_sync_response(peer, peer_won, request->xml); xml 175 daemons/attrd/attrd_messages.c const char *host = crm_element_value(request->xml, PCMK__XA_ATTR_NODE_NAME); xml 178 daemons/attrd/attrd_messages.c attrd_peer_update(peer, request->xml, host, false); xml 183 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 if (xml_has_children(xml)) { xml 317 daemons/attrd/attrd_sync.c xmlNode *child = pcmk__xe_match(xml, XML_ATTR_OP, PCMK__XA_ATTR_SYNC_POINT, NULL); xml 326 daemons/attrd/attrd_sync.c return crm_element_value(xml, PCMK__XA_ATTR_SYNC_POINT); xml 339 daemons/attrd/attrd_sync.c attrd_request_has_sync_point(xmlNode *xml) xml 341 daemons/attrd/attrd_sync.c return attrd_request_sync_point(xml) != NULL; xml 350 daemons/attrd/attrd_sync.c free_xml(action->xml); xml 487 daemons/attrd/attrd_sync.c if (crm_element_value_int(request->xml, XML_LRM_ATTR_CALLID, &callid) == -1) { xml 512 daemons/attrd/attrd_sync.c action->xml = copy_xml(request->xml); xml 573 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 201 daemons/attrd/pacemaker-attrd.h void attrd_ack_waitlist_clients(enum attrd_sync_point sync_point, const xmlNode *xml); xml 202 daemons/attrd/pacemaker-attrd.h int attrd_cluster_sync_point_update(xmlNode *xml); xml 209 daemons/attrd/pacemaker-attrd.h const char *attrd_request_sync_point(xmlNode *xml); xml 210 daemons/attrd/pacemaker-attrd.h bool attrd_request_has_sync_point(xmlNode *xml); xml 107 daemons/based/based_notify.c cib_notify_send(xmlNode * xml) xml 113 daemons/based/based_notify.c int rc = pcmk__ipc_prepare_iov(0, xml, 0, &iov, &bytes); xml 116 daemons/based/based_notify.c update.msg = xml; xml 316 daemons/based/pacemaker-based.c xmlNode *xml = NULL; xml 324 daemons/based/pacemaker-based.c xml = string2xml(data); xml 325 daemons/based/pacemaker-based.c if (xml == NULL) { xml 330 daemons/based/pacemaker-based.c crm_xml_add(xml, F_ORIG, from); xml 332 daemons/based/pacemaker-based.c cib_peer_callback(xml, NULL); xml 335 daemons/based/pacemaker-based.c free_xml(xml); xml 275 daemons/controld/controld_callbacks.c const char *task = crm_element_value(down->xml, XML_LRM_ATTR_TASK); xml 945 daemons/controld/controld_cib.c xmlNode *xml = NULL; xml 962 daemons/controld/controld_cib.c xml = create_xml_node(update, XML_CIB_TAG_STATE); xml 968 daemons/controld/controld_cib.c pcmk__xe_set_bool_attr(xml, XML_NODE_IS_REMOTE, true); xml 970 daemons/controld/controld_cib.c crm_xml_add(xml, XML_ATTR_ID, node_id); xml 971 daemons/controld/controld_cib.c crm_xml_add(xml, XML_ATTR_UNAME, node_name); xml 972 daemons/controld/controld_cib.c crm_xml_add(xml, XML_ATTR_ORIGIN, __func__); xml 975 daemons/controld/controld_cib.c xml = create_xml_node(xml, XML_CIB_TAG_LRM); xml 976 daemons/controld/controld_cib.c crm_xml_add(xml, XML_ATTR_ID, node_id); xml 979 daemons/controld/controld_cib.c xml = create_xml_node(xml, XML_LRM_TAG_RESOURCES); xml 982 daemons/controld/controld_cib.c xml = create_xml_node(xml, XML_LRM_TAG_RESOURCE); xml 983 daemons/controld/controld_cib.c crm_xml_add(xml, XML_ATTR_ID, op->rsc_id); xml 984 daemons/controld/controld_cib.c crm_xml_add(xml, XML_AGENT_ATTR_CLASS, rsc->standard); xml 985 daemons/controld/controld_cib.c crm_xml_add(xml, XML_AGENT_ATTR_PROVIDER, rsc->provider); xml 986 daemons/controld/controld_cib.c crm_xml_add(xml, XML_ATTR_TYPE, rsc->type); xml 994 daemons/controld/controld_cib.c crm_xml_add_ll(xml, XML_CONFIG_ATTR_SHUTDOWN_LOCK, xml 1003 daemons/controld/controld_cib.c crm_xml_add(xml, XML_RSC_ATTR_CONTAINER, container); xml 1008 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 271 daemons/controld/controld_execd.c lrmd_event_data_t *op = construct_op(lrm_state, input->xml, rsc_id, task); xml 671 daemons/controld/controld_execd.c op = construct_op(lrm_state, input->xml, rsc_id, CRMD_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, CRMD_ACTION_DELETE); xml 1415 daemons/controld/controld_execd.c const char *target_node = lrm_op_target(input->xml); xml 1427 daemons/controld/controld_execd.c synthesize_lrmd_failure(NULL, input->xml, PCMK_EXEC_NOT_CONNECTED, xml 1447 daemons/controld/controld_execd.c } else if (input->xml != NULL) { xml 1448 daemons/controld/controld_execd.c operation = crm_element_value(input->xml, XML_LRM_ATTR_TASK); xml 1459 daemons/controld/controld_execd.c fail_lrm_resource(input->xml, lrm_state, user_name, from_host, xml 1479 daemons/controld/controld_execd.c if (input->xml != NULL) { xml 1481 daemons/controld/controld_execd.c raw_target = crm_element_value(input->xml, XML_LRM_ATTR_TARGET); xml 1488 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(input->xml, XML_CIB_TAG_RESOURCE, TRUE); xml 1498 daemons/controld/controld_execd.c synthesize_lrmd_failure(lrm_state, input->xml, xml 1511 daemons/controld/controld_execd.c rc, pcmk_strerror(rc), ID(input->xml)); xml 1520 daemons/controld/controld_execd.c synthesize_lrmd_failure(lrm_state, input->xml, PCMK_EXEC_ERROR, xml 1531 daemons/controld/controld_execd.c synthesize_lrmd_failure(lrm_state, input->xml, PCMK_EXEC_ERROR, xml 1539 daemons/controld/controld_execd.c crm_log_xml_warn(input->xml, "Bad command"); xml 1577 daemons/controld/controld_execd.c data = new_metadata_cb_data(rsc, input->xml); xml 1586 daemons/controld/controld_execd.c do_lrm_rsc_op(lrm_state, rsc, input->xml, md); xml 2245 daemons/controld/controld_execd.c xmlNode *xml = find_xml_node(action_xml, XML_CIB_TAG_RESOURCE, TRUE); xml 2247 daemons/controld/controld_execd.c const char *standard = crm_element_value(xml, XML_AGENT_ATTR_CLASS); xml 2248 daemons/controld/controld_execd.c const char *provider = crm_element_value(xml, XML_AGENT_ATTR_PROVIDER); xml 2249 daemons/controld/controld_execd.c const char *type = crm_element_value(xml, XML_ATTR_TYPE); xml 424 daemons/controld/controld_fencing.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 427 daemons/controld/controld_fencing.c last_action = action->xml; xml 430 daemons/controld/controld_fencing.c action->id, ID(action->xml)); xml 831 daemons/controld/controld_fencing.c target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 840 daemons/controld/controld_fencing.c const char *uuid = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 954 daemons/controld/controld_fencing.c const char *id = ID(action->xml); xml 955 daemons/controld/controld_fencing.c const char *uuid = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 956 daemons/controld/controld_fencing.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 971 daemons/controld/controld_fencing.c crm_log_xml_warn(action->xml, "BadAction"); xml 536 daemons/controld/controld_fsa.c crm_log_xml_trace(ha_input->xml, "FSA message data"); xml 410 daemons/controld/controld_join_dc.c generation = join_ack->xml; xml 506 daemons/controld/controld_join_dc.c max_generation_xml = copy_xml(join_ack->xml); xml 772 daemons/controld/controld_join_dc.c controld_update_cib(XML_CIB_TAG_STATUS, join_ack->xml, cib_opts, xml 778 daemons/controld/controld_join_dc.c controld_update_cib(XML_CIB_TAG_STATUS, join_ack->xml, cib_opts, xml 175 daemons/controld/controld_lrm.h void remote_ra_process_pseudo(xmlNode *xml); xml 177 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 817 daemons/controld/controld_messages.c xmlNode *xml = create_xml_node(reply_data, XML_CIB_TAG_NODE); xml 819 daemons/controld/controld_messages.c crm_xml_add_ll(xml, XML_ATTR_ID, (long long) node->id); // uint32_t xml 820 daemons/controld/controld_messages.c crm_xml_add(xml, XML_ATTR_UNAME, node->uname); xml 821 daemons/controld/controld_messages.c crm_xml_add(xml, XML_NODE_IN_CLUSTER, node->state); xml 1133 daemons/controld/controld_messages.c xmlNode *xml = get_message_xml(stored_msg, F_CRM_DATA); xml 1135 daemons/controld/controld_messages.c remote_ra_process_maintenance_nodes(xml); xml 1250 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 1329 daemons/controld/controld_remote_ra.c remote_ra_process_pseudo(xmlNode *xml) xml 1331 daemons/controld/controld_remote_ra.c xmlXPathObjectPtr search = xpath_search(xml, XPATH_PSEUDO_FENCE); xml 1398 daemons/controld/controld_remote_ra.c remote_ra_process_maintenance_nodes(xmlNode *xml) xml 1400 daemons/controld/controld_remote_ra.c xmlXPathObjectPtr search = xpath_search(xml, XPATH_PSEUDO_MAINTENANCE); xml 374 daemons/controld/controld_schedulerd.c force_local_option(xmlNode *xml, const char *attr_name, const char *attr_value) xml 391 daemons/controld/controld_schedulerd.c xpathObj = xpath_search(xml, xpath_string); xml 409 daemons/controld/controld_schedulerd.c configuration = pcmk__xe_match(xml, XML_CIB_TAG_CONFIGURATION, NULL, xml 412 daemons/controld/controld_schedulerd.c configuration = create_xml_node(xml, XML_CIB_TAG_CONFIGURATION); xml 428 daemons/controld/controld_schedulerd.c xml = create_xml_node(cluster_property_set, XML_CIB_TAG_NVPAIR); xml 430 daemons/controld/controld_schedulerd.c crm_xml_set_id(xml, "%s-%s", CIB_OPTIONS_FIRST, attr_name); xml 431 daemons/controld/controld_schedulerd.c crm_xml_add(xml, XML_NVPAIR_ATTR_NAME, attr_name); xml 432 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 165 daemons/controld/controld_te_actions.c cmd = create_request(task, action->xml, router_node, CRM_SYSTEM_CRMD, CRM_SYSTEM_TENGINE, NULL); xml 215 daemons/controld/controld_te_actions.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 224 daemons/controld/controld_te_actions.c router_node = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 256 daemons/controld/controld_te_actions.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 257 daemons/controld/controld_te_actions.c const char *task_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 258 daemons/controld/controld_te_actions.c const char *target_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 262 daemons/controld/controld_te_actions.c action_rsc = find_xml_node(action->xml, XML_CIB_TAG_RESOURCE, TRUE); xml 269 daemons/controld/controld_te_actions.c crm_log_xml_err(action->xml, "Bad:action"); return); xml 315 daemons/controld/controld_te_actions.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 316 daemons/controld/controld_te_actions.c const char *task_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 321 daemons/controld/controld_te_actions.c crm_element_name(action->xml), action->id, task_uuid, target); xml 361 daemons/controld/controld_te_actions.c CRM_ASSERT(action->xml != NULL); xml 364 daemons/controld/controld_te_actions.c on_node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 368 daemons/controld/controld_te_actions.c ID(action->xml), pcmk__s(task, "without task")); xml 371 daemons/controld/controld_te_actions.c rsc_op = action->xml; xml 373 daemons/controld/controld_te_actions.c task_uuid = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 406 daemons/controld/controld_te_actions.c .xml = rsc_op, xml 517 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 518 daemons/controld/controld_te_actions.c const char *target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 529 daemons/controld/controld_te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 541 daemons/controld/controld_te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 563 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 564 daemons/controld/controld_te_actions.c const char *id = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 614 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 625 daemons/controld/controld_te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_ROUTER_NODE); xml 637 daemons/controld/controld_te_actions.c target = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 654 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 (strcmp(TYPE(xml), XML_CIB_TAG_LRM) == 0) { 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(strcmp(TYPE(xml), XML_LRM_TAG_RESOURCES) == 0, 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 137 daemons/controld/controld_transition.c xmlNode *graph_data = input->xml; xml 193 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 901 daemons/fenced/fenced_commands.c is_nodeid_required(xmlNode * xml) xml 909 daemons/fenced/fenced_commands.c if (!xml) { xml 913 daemons/fenced/fenced_commands.c xpath = xpath_search(xml, "//parameter[@name='nodeid']"); xml 1664 daemons/fenced/fenced_commands.c unpack_level_request(xmlNode *xml, enum fenced_target_by *mode, char **target, xml 1675 daemons/fenced/fenced_commands.c if ((xml != NULL) xml 1676 daemons/fenced/fenced_commands.c && !pcmk__str_eq(TYPE(xml), XML_TAG_FENCING_LEVEL, pcmk__str_none)) { xml 1677 daemons/fenced/fenced_commands.c xml = get_xpath_object("//" XML_TAG_FENCING_LEVEL, xml, LOG_WARNING); xml 1680 daemons/fenced/fenced_commands.c if (xml == NULL) { xml 1685 daemons/fenced/fenced_commands.c local_mode = unpack_level_kind(xml); xml 1686 daemons/fenced/fenced_commands.c local_target = stonith_level_key(xml, local_mode); xml 1687 daemons/fenced/fenced_commands.c crm_element_value_int(xml, XML_ATTR_STONITH_INDEX, &local_id); xml 1706 daemons/fenced/fenced_commands.c return xml; xml 2297 daemons/fenced/fenced_commands.c add_action_specific_attributes(xmlNode *xml, const char *action, xml 2305 daemons/fenced/fenced_commands.c CRM_CHECK(xml && action && device, return); xml 2309 daemons/fenced/fenced_commands.c crm_xml_add_int(xml, F_STONITH_DEVICE_REQUIRED, 1); xml 2316 daemons/fenced/fenced_commands.c crm_xml_add_int(xml, F_STONITH_ACTION_TIMEOUT, action_specific_timeout); xml 2323 daemons/fenced/fenced_commands.c crm_xml_add_int(xml, F_STONITH_DELAY_MAX, delay_max); xml 2328 daemons/fenced/fenced_commands.c crm_xml_add_int(xml, F_STONITH_DELAY_BASE, delay_base); xml 2355 daemons/fenced/fenced_commands.c add_disallowed(xmlNode *xml, const char *action, const stonith_device_t *device, xml 2361 daemons/fenced/fenced_commands.c pcmk__xe_set_bool_attr(xml, F_STONITH_ACTION_DISALLOWED, true); xml 2376 daemons/fenced/fenced_commands.c add_action_reply(xmlNode *xml, const char *action, xml 2380 daemons/fenced/fenced_commands.c xmlNode *child = create_xml_node(xml, F_STONITH_ACTION); xml 3177 daemons/fenced/fenced_commands.c execute_agent_action(request->xml, &request->result); xml 3181 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3188 daemons/fenced/fenced_commands.c const char *call_id = crm_element_value(request->xml, F_STONITH_CALLID); xml 3189 daemons/fenced/fenced_commands.c const char *client_id = crm_element_value(request->xml, F_STONITH_CLIENTID); xml 3192 daemons/fenced/fenced_commands.c crm_element_value_int(request->xml, F_STONITH_TIMEOUT, &op_timeout); xml 3206 daemons/fenced/fenced_commands.c const char *client_id = crm_element_value(request->xml, F_STONITH_CLIENTID); xml 3211 daemons/fenced/fenced_commands.c create_remote_stonith_op(client_id, request->xml, TRUE); xml 3215 daemons/fenced/fenced_commands.c remove_relay_op(request->xml); xml 3219 daemons/fenced/fenced_commands.c dev = get_xpath_object("//@" F_STONITH_ACTION, request->xml, LOG_NEVER); xml 3230 daemons/fenced/fenced_commands.c crm_log_xml_trace(request->xml, "Query"); xml 3235 daemons/fenced/fenced_commands.c query->reply = fenced_construct_reply(request->xml, NULL, &request->result); xml 3242 daemons/fenced/fenced_commands.c crm_element_value_int(request->xml, F_STONITH_TIMEOUT, &timeout); xml 3256 daemons/fenced/fenced_commands.c flag_name = crm_element_value(request->xml, F_STONITH_NOTIFY_ACTIVATE); xml 3263 daemons/fenced/fenced_commands.c flag_name = crm_element_value(request->xml, F_STONITH_NOTIFY_DEACTIVATE); xml 3281 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request->xml, xml 3291 daemons/fenced/fenced_commands.c if (initiate_remote_stonith_op(NULL, request->xml, FALSE) == NULL) { xml 3293 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3305 daemons/fenced/fenced_commands.c fence_locally(request->xml, &request->result); xml 3309 daemons/fenced/fenced_commands.c request->xml)) { xml 3325 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request->xml, xml 3341 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, xml 3357 daemons/fenced/fenced_commands.c client_id = crm_element_value(request->xml, F_STONITH_CLIENTID); xml 3366 daemons/fenced/fenced_commands.c op = create_remote_stonith_op(client_id, request->xml, FALSE); xml 3368 daemons/fenced/fenced_commands.c crm_xml_add(request->xml, F_STONITH_OPERATION, STONITH_OP_RELAY); xml 3369 daemons/fenced/fenced_commands.c crm_xml_add(request->xml, F_STONITH_CLIENTID, xml 3371 daemons/fenced/fenced_commands.c crm_xml_add(request->xml, F_STONITH_REMOTE_OP_ID, op->id); xml 3373 daemons/fenced/fenced_commands.c crm_msg_stonith_ng, request->xml, FALSE); xml 3377 daemons/fenced/fenced_commands.c } else if (initiate_remote_stonith_op(request->ipc_client, request->xml, xml 3390 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3400 daemons/fenced/fenced_commands.c stonith_fence_history(request->xml, &data, request->peer, xml 3407 daemons/fenced/fenced_commands.c reply = fenced_construct_reply(request->xml, data, &request->result); xml 3417 daemons/fenced/fenced_commands.c const char *op = crm_element_value(request->xml, F_STONITH_OPERATION); xml 3418 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, request->xml, xml 3435 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3442 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, request->xml, xml 3445 daemons/fenced/fenced_commands.c const char *op = crm_element_value(request->xml, F_STONITH_OPERATION); xml 3456 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3464 daemons/fenced/fenced_commands.c const char *op = crm_element_value(request->xml, F_STONITH_OPERATION); xml 3467 daemons/fenced/fenced_commands.c fenced_register_level(request->xml, &desc, &request->result); xml 3469 daemons/fenced/fenced_commands.c unpack_level_request(request->xml, NULL, NULL, NULL, &desc); xml 3476 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3484 daemons/fenced/fenced_commands.c const char *op = crm_element_value(request->xml, F_STONITH_OPERATION); xml 3487 daemons/fenced/fenced_commands.c fenced_unregister_level(request->xml, &desc, &request->result); xml 3489 daemons/fenced/fenced_commands.c unpack_level_request(request->xml, NULL, NULL, NULL, &desc); xml 3496 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3506 daemons/fenced/fenced_commands.c crm_element_value_int(request->xml, XML_ATTR_ID, &node_id); xml 3507 daemons/fenced/fenced_commands.c name = crm_element_value(request->xml, XML_ATTR_UNAME); xml 3521 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); xml 3659 daemons/fenced/fenced_commands.c .xml = message, xml 3664 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 2073 daemons/fenced/fenced_remote.c parse_action_specific(const xmlNode *xml, const char *peer, const char *device, xml 2078 daemons/fenced/fenced_remote.c crm_element_value_int(xml, F_STONITH_ACTION_TIMEOUT, xml 2086 daemons/fenced/fenced_remote.c crm_element_value_int(xml, F_STONITH_DELAY_MAX, &props->delay_max[phase]); xml 2093 daemons/fenced/fenced_remote.c crm_element_value_int(xml, F_STONITH_DELAY_BASE, &props->delay_base[phase]); xml 2103 daemons/fenced/fenced_remote.c crm_element_value_int(xml, F_STONITH_DEVICE_REQUIRED, &required); xml 2114 daemons/fenced/fenced_remote.c if (pcmk__xe_attr_is_true(xml, F_STONITH_ACTION_DISALLOWED)) { xml 2131 daemons/fenced/fenced_remote.c add_device_properties(const xmlNode *xml, remote_fencing_op_t *op, xml 2144 daemons/fenced/fenced_remote.c crm_element_value_int(xml, F_STONITH_DEVICE_VERIFIED, &verified); xml 2151 daemons/fenced/fenced_remote.c crm_element_value_int(xml, F_STONITH_DEVICE_SUPPORT_FLAGS, &flags); xml 2155 daemons/fenced/fenced_remote.c parse_action_specific(xml, peer->host, device, op_requested_action(op), xml 2157 daemons/fenced/fenced_remote.c for (child = pcmk__xml_first_child(xml); child != NULL; xml 2186 daemons/fenced/fenced_remote.c const xmlNode *xml) xml 2198 daemons/fenced/fenced_remote.c for (child = pcmk__xml_first_child(xml); child != NULL; xml 211 daemons/fenced/pacemaker-fenced.c xmlNode *xml = NULL; xml 219 daemons/fenced/pacemaker-fenced.c xml = string2xml(data); xml 220 daemons/fenced/pacemaker-fenced.c if (xml == NULL) { xml 225 daemons/fenced/pacemaker-fenced.c crm_xml_add(xml, F_ORIG, from); xml 227 daemons/fenced/pacemaker-fenced.c stonith_peer_callback(xml, NULL); xml 230 daemons/fenced/pacemaker-fenced.c free_xml(xml); xml 633 daemons/fenced/pacemaker-fenced.c xmlNode *xml; xml 635 daemons/fenced/pacemaker-fenced.c xml = create_device_registration_xml( xml 644 daemons/fenced/pacemaker-fenced.c rc = stonith_device_register(xml, TRUE); xml 645 daemons/fenced/pacemaker-fenced.c free_xml(xml); xml 714 daemons/fenced/pacemaker-fenced.c rclass = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 770 daemons/fenced/pacemaker-fenced.c const char *agent = crm_element_value(rsc->xml, XML_EXPR_ATTR_TYPE); 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 177 include/crm/cluster.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 76 include/crm/common/internal.h void pcmk__xe_add_node(xmlNode *xml, const char *node, int nodeid); xml 123 include/crm/common/logging.h void pcmk_log_xml_impl(uint8_t level, const char *text, const xmlNode *xml); xml 258 include/crm/common/logging.h # define do_crm_log_xml(level, text, xml) do { \ xml 273 include/crm/common/logging.h pcmk_log_xml_impl(_level, text, xml); \ xml 385 include/crm/common/logging.h # define crm_log_xml_crit(xml, text) do_crm_log_xml(LOG_CRIT, text, xml) xml 386 include/crm/common/logging.h # define crm_log_xml_err(xml, text) do_crm_log_xml(LOG_ERR, text, xml) xml 387 include/crm/common/logging.h # define crm_log_xml_warn(xml, text) do_crm_log_xml(LOG_WARNING, text, xml) xml 388 include/crm/common/logging.h # define crm_log_xml_notice(xml, text) do_crm_log_xml(LOG_NOTICE, text, xml) xml 389 include/crm/common/logging.h # define crm_log_xml_info(xml, text) do_crm_log_xml(LOG_INFO, text, xml) xml 390 include/crm/common/logging.h # define crm_log_xml_debug(xml, text) do_crm_log_xml(LOG_DEBUG, text, xml) xml 391 include/crm/common/logging.h # define crm_log_xml_trace(xml, text) do_crm_log_xml(LOG_TRACE, text, xml) xml 393 include/crm/common/logging.h # define crm_log_xml_explicit(xml, text) do { \ xml 399 include/crm/common/logging.h do_crm_log_xml(LOG_TRACE, text, 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 53 include/crm/common/nvpair.h const char *crm_xml_add_timeval(xmlNode *xml, const char *name_sec, xml 61 include/crm/common/nvpair.h int crm_element_value_epoch(const xmlNode *xml, const char *name, time_t *dest); xml 915 include/crm/common/output_internal.h int pcmk__xml_output_new(pcmk__output_t **out, xmlNodePtr *xml); xml 916 include/crm/common/output_internal.h void pcmk__xml_output_finish(pcmk__output_t *out, xmlNodePtr *xml); xml 52 include/crm/common/xml.h gboolean add_message_xml(xmlNode * msg, const char *field, xmlNode * xml); xml 173 include/crm/common/xml.h crm_element_name(const xmlNode *xml) xml 175 include/crm/common/xml.h return xml? (const char *)(xml->name) : NULL; xml 179 include/crm/common/xml.h crm_map_element_name(const xmlNode *xml) xml 181 include/crm/common/xml.h const char *name = crm_element_name(xml); xml 244 include/crm/common/xml.h gboolean cli_config_update(xmlNode ** xml, int *best_version, gboolean to_logs); xml 254 include/crm/common/xml.h void pcmk_free_xml_subtree(xmlNode *xml); xml 262 include/crm/common/xml.h void crm_foreach_xpath_result(xmlNode *xml, const char *xpath, xml 278 include/crm/common/xml.h bool xml_tracking_changes(xmlNode * xml); xml 279 include/crm/common/xml.h bool xml_document_dirty(xmlNode *xml); xml 280 include/crm/common/xml.h void xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls); xml 283 include/crm/common/xml.h void xml_accept_changes(xmlNode * xml); xml 288 include/crm/common/xml.h int xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version); xml 292 include/crm/common/xml.h void save_xml_to_file(xmlNode * xml, const char *desc, const char *filename); xml 296 include/crm/common/xml.h void crm_xml_set_id(xmlNode *xml, const char *format, ...) G_GNUC_PRINTF(2, 3); xml 40 include/crm/common/xml_compat.h char *xml_get_path(const xmlNode *xml); xml 43 include/crm/common/xml_compat.h void xml_log_changes(uint8_t level, const char *function, const xmlNode *xml); xml 46 include/crm/common/xml_compat.h void xml_log_patchset(uint8_t level, const char *function, const xmlNode *xml); xml 169 include/crm/common/xml_internal.h int pcmk__xml_show_changes(pcmk__output_t *out, const xmlNode *xml); xml 201 include/crm/common/xml_internal.h void pcmk__strip_xml_text(xmlNode *xml); xml 211 include/crm/common/xml_internal.h GString *pcmk__element_xpath(const xmlNode *xml); xml 387 include/crm/common/xml_internal.h void pcmk__set_xml_doc_flag(xmlNode *xml, enum xml_private_flags flag); xml 410 include/crm/common/xml_internal.h pcmk__xe_foreach_child(xmlNode *xml, const char *child_element_name, xml 411 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 578 include/crm/pengine/internal.h xmlNode *xml, const char *field); xml 709 include/crm/pengine/internal.h pe__xe_history_key(const xmlNode *xml) xml 711 include/crm/pengine/internal.h if (xml == NULL) { xml 718 include/crm/pengine/internal.h const char *key = crm_element_value(xml, XML_LRM_ATTR_TASK_KEY); xml 720 include/crm/pengine/internal.h return pcmk__str_empty(key)? ID(xml) : key; xml 349 include/crm/pengine/pe_types.h xmlNode *xml; 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, pe_resource_t *rsc, xml 241 include/pacemaker.h int pcmk_simulate(xmlNodePtr *xml, pe_working_set_t *data_set, 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 384 include/pacemaker.h int pcmk_fence_history(xmlNodePtr *xml, stonith_t *st, const char *target, xml 398 include/pacemaker.h int pcmk_fence_installed(xmlNodePtr *xml, stonith_t *st, unsigned int timeout); xml 410 include/pacemaker.h int pcmk_fence_last(xmlNodePtr *xml, const char *target, bool as_nodeid); xml 423 include/pacemaker.h int pcmk_fence_list_targets(xmlNodePtr *xml, stonith_t *st, xml 440 include/pacemaker.h int pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, const char *agent, xml 454 include/pacemaker.h int pcmk_fence_registered(xmlNodePtr *xml, stonith_t *st, const char *target, xml 500 include/pacemaker.h int pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent, xml 42 include/pcmki/pcmki_sched_allocate.h void clone_append_meta(const pe_resource_t *rsc, xmlNode *xml); xml 78 include/pcmki/pcmki_transition.h xmlNode *xml; xml 126 lib/cib/cib_utils.c cib_acl_enabled(xmlNode *xml, const char *user) xml 134 lib/cib/cib_utils.c cib_read_config(options, xml); xml 304 lib/cluster/cluster.c set_uuid(xmlNode *xml, const char *attr, crm_node_t *node) xml 306 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 crm_element_name(xml)); xml 83 lib/common/acl.c crm_element_name(xml), acl->xpath); xml 109 lib/common/acl.c crm_element_name(xml), acl->xpath); xml 224 lib/common/acl.c pcmk__apply_acl(xmlNode *xml) xml 227 lib/common/acl.c xml_doc_private_t *docpriv = xml->doc->_private; xml 231 lib/common/acl.c if (!xml_acl_enabled(xml)) { xml 241 lib/common/acl.c xpathObj = xpath_search(xml, acl->xpath); xml 386 lib/common/acl.c purge_xml_attributes(xmlNode *xml) xml 391 lib/common/acl.c xml_node_private_t *nodepriv = xml->_private; xml 395 lib/common/acl.c crm_element_name(xml), ID(xml)); xml 399 lib/common/acl.c xIter = xml->properties; xml 409 lib/common/acl.c xmlUnsetProp(xml, tmp->name); xml 412 lib/common/acl.c child = pcmk__xml_first_child(xml); xml 421 lib/common/acl.c free_xml(xml); /* Nothing readable under here, purge completely */ xml 438 lib/common/acl.c xml_acl_filtered_copy(const char *user, xmlNode *acl_source, xmlNode *xml, xml 446 lib/common/acl.c if ((xml == NULL) || !pcmk_acl_required(user)) { xml 453 lib/common/acl.c target = copy_xml(xml); xml 526 lib/common/acl.c implicitly_allowed(const xmlNode *xml) xml 530 lib/common/acl.c for (xmlAttr *prop = xml->properties; prop != NULL; prop = prop->next) { xml 536 lib/common/acl.c path = pcmk__element_xpath(xml); xml 548 lib/common/acl.c #define display_id(xml) (ID(xml)? ID(xml) : "<unset>") xml 566 lib/common/acl.c pcmk__apply_creation_acl(xmlNode *xml, bool check_top) xml 568 lib/common/acl.c xml_node_private_t *nodepriv = xml->_private; xml 571 lib/common/acl.c if (implicitly_allowed(xml)) { xml 574 lib/common/acl.c crm_element_name(xml), display_id(xml)); xml 576 lib/common/acl.c } else if (pcmk__check_acl(xml, NULL, pcmk__xf_acl_write)) { xml 578 lib/common/acl.c crm_element_name(xml), display_id(xml)); xml 582 lib/common/acl.c crm_element_name(xml), display_id(xml)); xml 583 lib/common/acl.c pcmk_free_xml_subtree(xml); xml 588 lib/common/acl.c ((xml == xmlDocGetRootElement(xml->doc))? "root element " : ""), xml 589 lib/common/acl.c crm_element_name(xml), display_id(xml)); xml 593 lib/common/acl.c for (xmlNode *cIter = pcmk__xml_first_child(xml); cIter != NULL; ) { xml 608 lib/common/acl.c xml_acl_denied(const xmlNode *xml) xml 610 lib/common/acl.c if (xml && xml->doc && xml->doc->_private){ xml 611 lib/common/acl.c xml_doc_private_t *docpriv = xml->doc->_private; xml 619 lib/common/acl.c xml_acl_disable(xmlNode *xml) xml 621 lib/common/acl.c if (xml_acl_enabled(xml)) { xml 622 lib/common/acl.c xml_doc_private_t *docpriv = xml->doc->_private; xml 625 lib/common/acl.c pcmk__apply_acl(xml); xml 626 lib/common/acl.c pcmk__apply_creation_acl(xml, false); xml 639 lib/common/acl.c xml_acl_enabled(const xmlNode *xml) xml 641 lib/common/acl.c if (xml && xml->doc && xml->doc->_private){ xml 642 lib/common/acl.c xml_doc_private_t *docpriv = xml->doc->_private; xml 650 lib/common/acl.c pcmk__check_acl(xmlNode *xml, const char *name, enum xml_private_flags mode) xml 652 lib/common/acl.c CRM_ASSERT(xml); xml 653 lib/common/acl.c CRM_ASSERT(xml->doc); xml 654 lib/common/acl.c CRM_ASSERT(xml->doc->_private); xml 656 lib/common/acl.c if (pcmk__tracking_xml_changes(xml, false) && xml_acl_enabled(xml)) { xml 657 lib/common/acl.c xmlNode *parent = xml; xml 658 lib/common/acl.c xml_doc_private_t *docpriv = xml->doc->_private; xml 662 lib/common/acl.c pcmk__set_xml_doc_flag(xml, pcmk__xf_acl_denied); xml 665 lib/common/acl.c xpath = pcmk__element_xpath(xml); xml 685 lib/common/acl.c xmlAttr *attr = xmlHasProp(xml, (pcmkXmlStr) name); xml 698 lib/common/acl.c pcmk__set_xml_doc_flag(xml, pcmk__xf_acl_denied); xml 701 lib/common/acl.c xpath = pcmk__element_xpath(xml); xml 709 lib/common/acl.c (parent != xml)? "Parent ": "", xml 718 lib/common/acl.c pcmk__set_xml_doc_flag(xml, pcmk__xf_acl_denied); xml 721 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 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 434 lib/common/ipc_server.c xml = string2xml(text); xml 435 lib/common/ipc_server.c crm_log_xml_trace(xml, "[IPC received]"); xml 438 lib/common/ipc_server.c return xml; xml 1139 lib/common/logging.c pcmk_log_xml_impl(uint8_t level, const char *text, const xmlNode *xml) xml 1141 lib/common/logging.c if (xml == NULL) { xml 1151 lib/common/logging.c pcmk__xml_show(logger_out, text, xml, 1, 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 448 lib/common/nvpair.c crm_xml_add_ll(xmlNode *xml, const char *name, long long value) xml 455 lib/common/nvpair.c return crm_xml_add(xml, name, s); xml 472 lib/common/nvpair.c crm_xml_add_timeval(xmlNode *xml, const char *name_sec, const char *name_usec, xml 477 lib/common/nvpair.c if (xml && name_sec && value) { xml 478 lib/common/nvpair.c added = crm_xml_add_ll(xml, name_sec, (long long) value->tv_sec); xml 481 lib/common/nvpair.c crm_xml_add_ll(xml, name_usec, (long long) value->tv_usec); xml 617 lib/common/nvpair.c crm_element_value_epoch(const xmlNode *xml, const char *name, time_t *dest) xml 621 lib/common/nvpair.c if (crm_element_value_ll(xml, name, &value_ll) < 0) { xml 646 lib/common/nvpair.c crm_element_value_timeval(const xmlNode *xml, const char *name_sec, xml 655 lib/common/nvpair.c if (xml == NULL) { xml 667 lib/common/nvpair.c if (crm_element_value_ll(xml, name_sec, &value_i) < 0) { xml 673 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 46 lib/common/patchset.c GString *xpath = pcmk__element_xpath(xml->parent); xml 49 lib/common/patchset.c int position = pcmk__xml_position(xml, pcmk__xf_deleted); xml 56 lib/common/patchset.c add_node_copy(change, xml); xml 64 lib/common/patchset.c for (pIter = pcmk__xe_first_attr(xml); pIter != NULL; xml 74 lib/common/patchset.c GString *xpath = pcmk__element_xpath(xml); xml 96 lib/common/patchset.c value = crm_element_value(xml, (const char *) pIter->name); xml 105 lib/common/patchset.c result = create_xml_node(change, (const char *)xml->name); xml 107 lib/common/patchset.c for (pIter = pcmk__xe_first_attr(xml); pIter != NULL; xml 111 lib/common/patchset.c value = crm_element_value(xml, (const char *) pIter->name); xml 118 lib/common/patchset.c for (cIter = pcmk__xml_first_child(xml); cIter != NULL; xml 123 lib/common/patchset.c nodepriv = xml->_private; xml 125 lib/common/patchset.c GString *xpath = pcmk__element_xpath(xml); xml 128 lib/common/patchset.c xml->name, ID(xml), pcmk__xml_position(xml, pcmk__xf_skip)); xml 136 lib/common/patchset.c pcmk__xml_position(xml, pcmk__xf_deleted)); xml 143 lib/common/patchset.c is_config_change(xmlNode *xml) xml 148 lib/common/patchset.c xmlNode *config = first_named_child(xml, XML_CIB_TAG_CONFIGURATION); xml 157 lib/common/patchset.c if ((xml->doc != NULL) && (xml->doc->_private != NULL)) { xml 158 lib/common/patchset.c docpriv = xml->doc->_private; xml 622 lib/common/patchset.c xml_patch_version_check(const xmlNode *xml, const xmlNode *patchset, int format) xml 638 lib/common/patchset.c crm_element_value_int(xml, vfields[lpc], &(this[lpc])); xml 698 lib/common/patchset.c apply_v1_patchset(xmlNode *xml, const xmlNode *patchset) xml 706 lib/common/patchset.c xmlNode *old = copy_xml(xml); xml 713 lib/common/patchset.c process_v1_removals(xml, child_diff); xml 733 lib/common/patchset.c process_v1_additions(NULL, xml, child_diff); xml 745 lib/common/patchset.c purge_diff_markers(xml); // Purge prior to checking digest xml 913 lib/common/patchset.c apply_v2_patchset(xmlNode *xml, const xmlNode *patchset) xml 937 lib/common/patchset.c match = search_v2_xpath(xml, xpath, position); xml 941 lib/common/patchset.c crm_debug("No %s match for %s in %p", op, xpath, xml->doc); xml 945 lib/common/patchset.c crm_err("No %s match for %s in %p", op, xpath, xml->doc); xml 1096 lib/common/patchset.c xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version) xml 1126 lib/common/patchset.c rc = pcmk_rc2legacy(xml_patch_version_check(xml, patchset, format)); xml 1134 lib/common/patchset.c old = copy_xml(xml); xml 1140 lib/common/patchset.c rc = pcmk_rc2legacy(apply_v1_patchset(xml, patchset)); xml 1143 lib/common/patchset.c rc = pcmk_rc2legacy(apply_v2_patchset(xml, patchset)); xml 1153 lib/common/patchset.c char *version = crm_element_value_copy(xml, XML_ATTR_CRM_VERSION); xml 1155 lib/common/patchset.c new_digest = calculate_xml_versioned_digest(xml, FALSE, TRUE, version); xml 1163 lib/common/patchset.c save_xml_to_file(xml, "PatchDigest:result", NULL); xml 542 lib/common/remote.c xmlNode *xml = NULL; xml 590 lib/common/remote.c xml = string2xml(remote->buffer + header->payload_offset); xml 591 lib/common/remote.c if (xml == NULL && header->version > REMOTE_MSG_VERSION) { xml 595 lib/common/remote.c } else if (xml == NULL) { xml 599 lib/common/remote.c return xml; xml 593 lib/common/schemas.c validate_with(xmlNode *xml, int method, gboolean to_logs) xml 607 lib/common/schemas.c CRM_CHECK(xml != NULL, return FALSE); xml 615 lib/common/schemas.c doc = getDocPtr(xml); xml 638 lib/common/schemas.c validate_with_silent(xmlNode *xml, int method) xml 642 lib/common/schemas.c rc = validate_with(xml, method, TRUE); xml 683 lib/common/schemas.c xmlNode *xml = NULL; xml 696 lib/common/schemas.c xml = xmlDocGetRootElement(doc); xml 697 lib/common/schemas.c rc = validate_xml(xml, NULL, FALSE); xml 698 lib/common/schemas.c free_xml(xml); xml 907 lib/common/schemas.c apply_transformation(xmlNode *xml, const char *transform, gboolean to_logs) xml 920 lib/common/schemas.c CRM_CHECK(xml != NULL, return FALSE); xml 921 lib/common/schemas.c doc = getDocPtr(xml); xml 972 lib/common/schemas.c apply_upgrade(xmlNode *xml, const struct schema_s *schema, gboolean to_logs) xml 982 lib/common/schemas.c upgrade = apply_transformation(xml, schema->transform_enter, to_logs); xml 990 lib/common/schemas.c upgrade = xml; xml 996 lib/common/schemas.c if (upgrade != xml) { xml 1053 lib/common/schemas.c xmlNode *xml = NULL; xml 1065 lib/common/schemas.c xml = *xml_blob; xml 1066 lib/common/schemas.c value = crm_element_value_copy(xml, XML_ATTR_VALIDATION); xml 1093 lib/common/schemas.c if (validate_with(xml, lpc, to_logs) == FALSE) { xml 1141 lib/common/schemas.c || validate_with_silent(xml, next)) { xml 1152 lib/common/schemas.c upgrade = apply_upgrade(xml, &known_schemas[lpc], to_logs); xml 1163 lib/common/schemas.c free_xml(xml); xml 1164 lib/common/schemas.c xml = upgrade; xml 1188 lib/common/schemas.c crm_xml_add(xml, XML_ATTR_VALIDATION, known_schemas[*best].name); xml 1191 lib/common/schemas.c *xml_blob = xml; xml 1197 lib/common/schemas.c cli_config_update(xmlNode **xml, int *best_version, gboolean to_logs) xml 1200 lib/common/schemas.c const char *value = crm_element_value(*xml, XML_ATTR_VALIDATION); xml 1211 lib/common/schemas.c converted = copy_xml(*xml); xml 1264 lib/common/schemas.c free_xml(*xml); xml 1265 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, crm_element_name(xml)); 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(crm_element_name(xml), "node1", "node2", "node3", NULL)); xml 149 lib/common/tests/xml/pcmk__xe_foreach_child_test.c xmlNode *xml = string2xml(str3); xml 156 lib/common/tests/xml/pcmk__xe_foreach_child_test.c pcmk__xe_foreach_child(xml, NULL, any_of_handler, NULL); xml 157 lib/common/tests/xml/pcmk__xe_foreach_child_test.c free_xml(xml); xml 160 lib/common/tests/xml/pcmk__xe_foreach_child_test.c static int stops_on_first_handler(xmlNode *xml, void *userdata) { xml 163 lib/common/tests/xml/pcmk__xe_foreach_child_test.c if (pcmk__str_eq(crm_element_name(xml), "node1", pcmk__str_none)) { xml 170 lib/common/tests/xml/pcmk__xe_foreach_child_test.c static int stops_on_second_handler(xmlNode *xml, void *userdata) { xml 173 lib/common/tests/xml/pcmk__xe_foreach_child_test.c if (pcmk__str_eq(crm_element_name(xml), "node2", pcmk__str_none)) { xml 180 lib/common/tests/xml/pcmk__xe_foreach_child_test.c static int stops_on_third_handler(xmlNode *xml, void *userdata) { xml 183 lib/common/tests/xml/pcmk__xe_foreach_child_test.c if (pcmk__str_eq(crm_element_name(xml), "node3", pcmk__str_none)) { xml 192 lib/common/tests/xml/pcmk__xe_foreach_child_test.c xmlNode *xml = string2xml(str3); xml 196 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 199 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 202 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 204 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 48 lib/common/xml.c pcmk__tracking_xml_changes(xmlNode *xml, bool lazy) xml 50 lib/common/xml.c if(xml == NULL || xml->doc == NULL || xml->doc->_private == NULL) { xml 52 lib/common/xml.c } else if (!pcmk_is_set(((xml_doc_private_t *)xml->doc->_private)->flags, xml 55 lib/common/xml.c } else if (lazy && !pcmk_is_set(((xml_doc_private_t *)xml->doc->_private)->flags, xml 63 lib/common/xml.c set_parent_flag(xmlNode *xml, long flag) xml 65 lib/common/xml.c for(; xml; xml = xml->parent) { xml 66 lib/common/xml.c xml_node_private_t *nodepriv = xml->_private; xml 77 lib/common/xml.c pcmk__set_xml_doc_flag(xmlNode *xml, enum xml_private_flags flag) xml 79 lib/common/xml.c if(xml && xml->doc && xml->doc->_private){ xml 81 lib/common/xml.c xml_doc_private_t *docpriv = xml->doc->_private; xml 89 lib/common/xml.c mark_xml_node_dirty(xmlNode *xml) xml 91 lib/common/xml.c pcmk__set_xml_doc_flag(xml, pcmk__xf_dirty); xml 92 lib/common/xml.c set_parent_flag(xml, pcmk__xf_dirty); xml 97 lib/common/xml.c reset_xml_node_flags(xmlNode *xml) xml 100 lib/common/xml.c xml_node_private_t *nodepriv = xml->_private; xml 106 lib/common/xml.c for (cIter = pcmk__xml_first_child(xml); cIter != NULL; xml 114 lib/common/xml.c pcmk__mark_xml_created(xmlNode *xml) xml 117 lib/common/xml.c xml_node_private_t *nodepriv = xml->_private; xml 119 lib/common/xml.c if (nodepriv && pcmk__tracking_xml_changes(xml, FALSE)) { xml 122 lib/common/xml.c mark_xml_node_dirty(xml); xml 124 lib/common/xml.c for (cIter = pcmk__xml_first_child(xml); cIter != NULL; xml 270 lib/common/xml.c xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls) xml 272 lib/common/xml.c xml_accept_changes(xml); xml 273 lib/common/xml.c crm_trace("Tracking changes%s to %p", enforce_acls?" with ACLs":"", xml); xml 274 lib/common/xml.c pcmk__set_xml_doc_flag(xml, pcmk__xf_tracking); xml 277 lib/common/xml.c acl_source = xml; xml 279 lib/common/xml.c pcmk__set_xml_doc_flag(xml, pcmk__xf_acl_enabled); xml 280 lib/common/xml.c pcmk__unpack_acl(acl_source, xml, user); xml 281 lib/common/xml.c pcmk__apply_acl(xml); xml 285 lib/common/xml.c bool xml_tracking_changes(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 292 lib/common/xml.c bool xml_document_dirty(xmlNode *xml) xml 294 lib/common/xml.c return (xml != NULL) && (xml->doc != NULL) && (xml->doc->_private != NULL) xml 295 lib/common/xml.c && pcmk_is_set(((xml_doc_private_t *)(xml->doc->_private))->flags, xml 309 lib/common/xml.c pcmk__xml_position(const xmlNode *xml, enum xml_private_flags ignore_if_set) xml 313 lib/common/xml.c for (const xmlNode *cIter = xml; cIter->prev; cIter = cIter->prev) { xml 339 lib/common/xml.c accept_attr_deletions(xmlNode *xml) xml 342 lib/common/xml.c ((xml_node_private_t *) xml->_private)->flags = pcmk__xf_none; xml 345 lib/common/xml.c pcmk__xe_remove_matching_attrs(xml, marked_as_deleted, NULL); xml 348 lib/common/xml.c for (xmlNodePtr cIter = pcmk__xml_first_child(xml); cIter != NULL; xml 379 lib/common/xml.c xml_accept_changes(xmlNode * xml) xml 384 lib/common/xml.c if(xml == NULL) { xml 388 lib/common/xml.c crm_trace("Accepting changes to %p", xml); xml 389 lib/common/xml.c docpriv = xml->doc->_private; xml 390 lib/common/xml.c top = xmlDocGetRootElement(xml->doc); xml 392 lib/common/xml.c reset_xml_private_data(xml->doc->_private); xml 736 lib/common/xml.c pcmk_free_xml_subtree(xmlNode *xml) xml 738 lib/common/xml.c xmlUnlinkNode(xml); // Detaches from parent and siblings xml 739 lib/common/xml.c xmlFreeNode(xml); // Frees xml 833 lib/common/xml.c xmlNode *xml = NULL; xml 852 lib/common/xml.c xml = xmlDocGetRootElement(output); xml 868 lib/common/xml.c crm_err("Couldn't%s parse %d chars: %s", xml ? " fully" : "", (int)strlen(input), xml 870 lib/common/xml.c if (xml != NULL) { xml 871 lib/common/xml.c crm_log_xml_err(xml, "Partial"); xml 888 lib/common/xml.c return xml; xml 979 lib/common/xml.c pcmk__strip_xml_text(xmlNode *xml) xml 981 lib/common/xml.c xmlNode *iter = xml->children; xml 1009 lib/common/xml.c xmlNode *xml = NULL; xml 1042 lib/common/xml.c if (output && (xml = xmlDocGetRootElement(output))) { xml 1043 lib/common/xml.c pcmk__strip_xml_text(xml); xml 1057 lib/common/xml.c crm_err("Couldn't%s parse %s", xml ? " fully" : "", filename); xml 1058 lib/common/xml.c if (xml != NULL) { xml 1059 lib/common/xml.c crm_log_xml_err(xml, "Partial"); xml 1065 lib/common/xml.c return xml; xml 1116 lib/common/xml.c crm_xml_set_id(xmlNode *xml, const char *format, ...) xml 1129 lib/common/xml.c crm_xml_add(xml, XML_ATTR_ID, id); xml 1753 lib/common/xml.c save_xml_to_file(xmlNode * xml, const char *desc, const char *filename) xml 1766 lib/common/xml.c write_xml_file(xml, filename, FALSE); xml 1778 lib/common/xml.c set_attrs_flag(xmlNode *xml, enum xml_private_flags flag) xml 1780 lib/common/xml.c for (xmlAttr *attr = pcmk__xe_first_attr(xml); attr; attr = attr->next) { xml 2704 lib/common/xml.c pcmk__xe_foreach_child(xmlNode *xml, const char *child_element_name, xml 2705 lib/common/xml.c int (*handler)(xmlNode *xml, void *userdata), xml 2708 lib/common/xml.c xmlNode *children = (xml? xml->children : NULL); xml 370 lib/common/xml_display.c pcmk__xml_show_changes(pcmk__output_t *out, const xmlNode *xml) xml 377 lib/common/xml_display.c CRM_ASSERT(xml != NULL); xml 378 lib/common/xml_display.c CRM_ASSERT(xml->doc != NULL); xml 380 lib/common/xml_display.c docpriv = xml->doc->_private; xml 399 lib/common/xml_display.c temp_rc = show_xml_changes_recursive(out, xml, 0, pcmk__xml_fmt_pretty); xml 527 lib/common/xml_display.c xml_log_changes(uint8_t log_level, const char *function, const xmlNode *xml) xml 543 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 173 lib/common/xpath.c crm_foreach_xpath_result(xmlNode *xml, const char *xpath, xml 176 lib/common/xpath.c xmlXPathObjectPtr xpathObj = xpath_search(xml, xpath); xml 281 lib/common/xpath.c pcmk__element_xpath(const xmlNode *xml) xml 287 lib/common/xpath.c if (xml == NULL) { xml 291 lib/common/xpath.c parent = xml->parent; xml 301 lib/common/xpath.c g_string_append(xpath, TYPE(xml)); xml 303 lib/common/xpath.c pcmk__g_strcat(xpath, "/", TYPE(xml), NULL); xml 306 lib/common/xpath.c id = ID(xml); xml 361 lib/common/xpath.c xml_get_path(const xmlNode *xml) xml 364 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 1052 lib/fencing/st_client.c blob.xml = string2xml(buffer); xml 1053 lib/fencing/st_client.c if (blob.xml == NULL) { xml 1059 lib/fencing/st_client.c type = crm_element_value(blob.xml, F_TYPE); xml 1063 lib/fencing/st_client.c invoke_registered_callbacks(st, blob.xml, 0); xml 1071 lib/fencing/st_client.c crm_element_value_int(blob.xml, F_STONITH_TIMEOUT, &timeout); xml 1072 lib/fencing/st_client.c crm_element_value_int(blob.xml, F_STONITH_CALLID, &call_id); xml 1077 lib/fencing/st_client.c crm_log_xml_warn(blob.xml, "BadReply"); xml 1080 lib/fencing/st_client.c free_xml(blob.xml); xml 1484 lib/fencing/st_client.c if (blob->xml == NULL) { xml 1489 lib/fencing/st_client.c event = crm_element_value(blob->xml, F_SUBTYPE); xml 1508 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 195 lib/fencing/st_rhcs.c stonith_rhcs_parameter_not_required(xml, "action"); xml 196 lib/fencing/st_rhcs.c stonith_rhcs_parameter_not_required(xml, "plug"); xml 197 lib/fencing/st_rhcs.c stonith_rhcs_parameter_not_required(xml, "port"); xml 200 lib/fencing/st_rhcs.c *metadata = xml; xml 203 lib/fencing/st_rhcs.c free_xml(xml); xml 220 lib/fencing/st_rhcs.c xmlNode *xml = NULL; xml 222 lib/fencing/st_rhcs.c int rc = stonith__rhcs_get_metadata(agent, timeout_sec, &xml); xml 225 lib/fencing/st_rhcs.c free_xml(xml); xml 229 lib/fencing/st_rhcs.c buffer = dump_xml_formatted_with_text(xml); xml 230 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 725 lib/lrmd/lrmd_client.c xmlNode *xml = NULL; xml 736 lib/lrmd/lrmd_client.c rc = read_remote_reply(lrmd, timeout, global_remote_msg_id, &xml); xml 745 lib/lrmd/lrmd_client.c *reply = xml; xml 747 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 268 lib/pacemaker/libpacemaker_private.h void (*add_graph_meta)(const pe_resource_t *rsc, xmlNode *xml); xml 685 lib/pacemaker/libpacemaker_private.h void pcmk__primitive_add_graph_meta(const pe_resource_t *rsc, xmlNode *xml); xml 906 lib/pacemaker/libpacemaker_private.h void pcmk__noop_add_graph_meta(const pe_resource_t *rsc, xmlNode *xml); xml 497 lib/pacemaker/pcmk_cluster_queries.c pcmk_controller_status(xmlNodePtr *xml, const char *node_name, xml 503 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); xml 511 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, xml); xml 566 lib/pacemaker/pcmk_cluster_queries.c pcmk_designated_controller(xmlNodePtr *xml, unsigned int message_timeout_ms) xml 571 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); xml 579 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, xml); xml 689 lib/pacemaker/pcmk_cluster_queries.c pcmk_query_node_info(xmlNodePtr *xml, uint32_t *node_id, char **node_name, xml 699 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); xml 709 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, xml); xml 785 lib/pacemaker/pcmk_cluster_queries.c pcmk_pacemakerd_status(xmlNodePtr *xml, const char *ipc_name, xml 791 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); xml 799 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, xml); xml 885 lib/pacemaker/pcmk_cluster_queries.c pcmk_list_nodes(xmlNodePtr *xml, const char *node_types) xml 890 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); xml 898 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, xml); xml 301 lib/pacemaker/pcmk_fence.c pcmk_fence_history(xmlNodePtr *xml, stonith_t *st, const char *target, xml 308 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 318 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 347 lib/pacemaker/pcmk_fence.c pcmk_fence_installed(xmlNodePtr *xml, stonith_t *st, unsigned int timeout) xml 352 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 360 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 385 lib/pacemaker/pcmk_fence.c pcmk_fence_last(xmlNodePtr *xml, const char *target, bool as_nodeid) xml 390 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 398 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 431 lib/pacemaker/pcmk_fence.c pcmk_fence_list_targets(xmlNodePtr *xml, stonith_t *st, const char *device_id, xml 437 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 445 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 469 lib/pacemaker/pcmk_fence.c pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, const char *agent, xml 475 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 483 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 517 lib/pacemaker/pcmk_fence.c pcmk_fence_registered(xmlNodePtr *xml, stonith_t *st, const char *target, xml 523 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 531 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 583 lib/pacemaker/pcmk_fence.c pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent, xml 590 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); xml 598 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, xml); xml 229 lib/pacemaker/pcmk_graph_consumer.c const char *id = ID(action->xml); xml 246 lib/pacemaker/pcmk_graph_consumer.c if (pcmk__str_eq(crm_element_value(action->xml, XML_LRM_ATTR_TASK), xml 258 lib/pacemaker/pcmk_graph_consumer.c crm_element_name(action->xml), id); xml 283 lib/pacemaker/pcmk_graph_consumer.c crm_element_name(action->xml), action->id, synapse->id, xml 509 lib/pacemaker/pcmk_graph_consumer.c action->xml = copy_xml(xml_action); xml 512 lib/pacemaker/pcmk_graph_consumer.c action->params = xml2list(action->xml); xml 775 lib/pacemaker/pcmk_graph_consumer.c free_xml(action->xml); xml 844 lib/pacemaker/pcmk_graph_consumer.c action_resource = first_named_child(action->xml, XML_CIB_TAG_RESOURCE); xml 845 lib/pacemaker/pcmk_graph_consumer.c CRM_CHECK(action_resource != NULL, crm_log_xml_warn(action->xml, "invalid"); xml 849 lib/pacemaker/pcmk_graph_consumer.c crm_element_value(action->xml, XML_LRM_ATTR_TASK), xml 132 lib/pacemaker/pcmk_graph_logging.c pcmk__add_word(&pending, 1024, ID(input->xml)); xml 139 lib/pacemaker/pcmk_graph_logging.c pcmk__add_word(&pending, 1024, ID(input->xml)); xml 152 lib/pacemaker/pcmk_graph_logging.c const char *key = crm_element_value(input->xml, XML_LRM_ATTR_TASK_KEY); xml 153 lib/pacemaker/pcmk_graph_logging.c const char *host = crm_element_value(input->xml, XML_LRM_ATTR_TARGET); xml 168 lib/pacemaker/pcmk_graph_logging.c const char *key = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 169 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 pe_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 77 lib/pacemaker/pcmk_graph_producer.c add_maintenance_nodes(xmlNode *xml, const pe_working_set_t *data_set) xml 81 lib/pacemaker/pcmk_graph_producer.c xml?create_xml_node(xml, XML_GRAPH_TAG_MAINTENANCE):NULL; xml 138 lib/pacemaker/pcmk_graph_producer.c add_downed_nodes(xmlNode *xml, const pe_action_t *action, xml 141 lib/pacemaker/pcmk_graph_producer.c CRM_CHECK(xml && action && action->node && data_set, return); xml 146 lib/pacemaker/pcmk_graph_producer.c xmlNode *downed = create_xml_node(xml, XML_GRAPH_TAG_DOWNED); xml 155 lib/pacemaker/pcmk_graph_producer.c xmlNode *downed = create_xml_node(xml, XML_GRAPH_TAG_DOWNED); xml 179 lib/pacemaker/pcmk_graph_producer.c xmlNode *downed = create_xml_node(xml, XML_GRAPH_TAG_DOWNED); xml 221 lib/pacemaker/pcmk_graph_producer.c add_node_details(const pe_action_t *action, xmlNode *xml) xml 225 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(xml, XML_LRM_ATTR_TARGET, action->node->details->uname); xml 226 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(xml, XML_LRM_ATTR_TARGET_UUID, action->node->details->id); xml 228 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(xml, XML_LRM_ATTR_ROUTER_NODE, router_node->details->uname); xml 259 lib/pacemaker/pcmk_graph_producer.c rsc_xml = create_xml_node(action_xml, crm_element_name(action->rsc->xml)); xml 276 lib/pacemaker/pcmk_graph_producer.c const char *xml_id = ID(action->rsc->xml); xml 595 lib/pacemaker/pcmk_injections.c rclass = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 596 lib/pacemaker/pcmk_injections.c rtype = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 597 lib/pacemaker/pcmk_injections.c rprovider = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 246 lib/pacemaker/pcmk_output.c xmlNode *xml = NULL; xml 269 lib/pacemaker/pcmk_output.c xml = pcmk__output_create_xml_node(out, "rsc_action", xml 277 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 285 lib/pacemaker/pcmk_output.c crm_xml_add(xml, "node", destination->details->uname); xml 289 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 296 lib/pacemaker/pcmk_output.c crm_xml_add(xml, "node", origin->details->uname); xml 300 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 307 lib/pacemaker/pcmk_output.c crm_xml_add(xml, "source", origin->details->uname); xml 311 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 319 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 326 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 334 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 343 lib/pacemaker/pcmk_output.c pcmk__xe_set_props(xml, xml 349 lib/pacemaker/pcmk_output.c crm_xml_add(xml, "reason", source->reason); xml 352 lib/pacemaker/pcmk_output.c pcmk__xe_set_bool_attr(xml, "blocked", true); xml 1027 lib/pacemaker/pcmk_output.c xmlNode *xml = NULL; xml 1029 lib/pacemaker/pcmk_output.c xml = pcmk__output_create_xml_node(out, "digests", xml 1037 lib/pacemaker/pcmk_output.c add_digest_xml(xml, "all", digests->digest_all_calc, xml 1039 lib/pacemaker/pcmk_output.c add_digest_xml(xml, "nonprivate", digests->digest_secure_calc, xml 1041 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, pe_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 279 lib/pacemaker/pcmk_rule.c pcmk_check_rules(xmlNodePtr *xml, xmlNodePtr input, const crm_time_t *date, xml 285 lib/pacemaker/pcmk_rule.c rc = pcmk__xml_output_new(&out, xml); xml 293 lib/pacemaker/pcmk_rule.c pcmk__xml_output_finish(out, xml); xml 675 lib/pacemaker/pcmk_sched_bundle.c replica->remote->xml, LOG_ERR); xml 549 lib/pacemaker/pcmk_sched_clone.c clone_append_meta(const pe_resource_t *rsc, xmlNode *xml) xml 554 lib/pacemaker/pcmk_sched_clone.c crm_xml_add(xml, name, pe__rsc_bool_str(rsc, pe_rsc_unique)); xml 558 lib/pacemaker/pcmk_sched_clone.c crm_xml_add(xml, name, pe__rsc_bool_str(rsc, pe_rsc_notify)); xml 562 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, pe__clone_max(rsc)); xml 566 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, pe__clone_node_max(rsc)); xml 574 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, promoted_max); xml 578 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, promoted_node_max); xml 585 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, promoted_max); xml 589 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, promoted_node_max); xml 229 lib/pacemaker/pcmk_sched_ordering.c get_ordering_resource(const xmlNode *xml, const char *resource_attr, xml 235 lib/pacemaker/pcmk_sched_ordering.c const char *rsc_id = crm_element_value(xml, resource_attr); xml 236 lib/pacemaker/pcmk_sched_ordering.c const char *instance_id = crm_element_value(xml, instance_attr); xml 240 lib/pacemaker/pcmk_sched_ordering.c ID(xml), resource_attr); xml 247 lib/pacemaker/pcmk_sched_ordering.c "does not exist", ID(xml), rsc_id); xml 260 lib/pacemaker/pcmk_sched_ordering.c ID(xml), rsc_id, instance_id); xml 267 lib/pacemaker/pcmk_sched_ordering.c "'%s'", ID(xml), rsc_id, instance_id); xml 284 lib/pacemaker/pcmk_sched_ordering.c get_minimum_first_instances(const pe_resource_t *rsc, const xmlNode *xml) xml 305 lib/pacemaker/pcmk_sched_ordering.c if (pcmk__xe_get_bool_attr(xml, "require-all", &require_all) != ENODATA) { xml 732 lib/pacemaker/pcmk_sched_primitive.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 1405 lib/pacemaker/pcmk_sched_primitive.c pcmk__primitive_add_graph_meta(const pe_resource_t *rsc, xmlNode *xml) xml 1411 lib/pacemaker/pcmk_sched_primitive.c CRM_ASSERT((rsc != NULL) && (xml != NULL)); xml 1420 lib/pacemaker/pcmk_sched_primitive.c crm_xml_add(xml, name, value); xml 1428 lib/pacemaker/pcmk_sched_primitive.c crm_xml_add(xml, name, value); xml 1438 lib/pacemaker/pcmk_sched_primitive.c crm_xml_add(xml, CRM_META "_" XML_RSC_ATTR_CONTAINER, xml 1449 lib/pacemaker/pcmk_sched_primitive.c crm_xml_add(xml, "pcmk_external_ip", value); xml 1515 lib/pacemaker/pcmk_sched_primitive.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 170 lib/pacemaker/pcmk_sched_probes.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 40 lib/pacemaker/pcmk_sched_recurring.c xe_interval(const xmlNode *xml) xml 42 lib/pacemaker/pcmk_sched_recurring.c return crm_parse_interval_spec(crm_element_value(xml, xml 123 lib/pacemaker/pcmk_sched_recurring.c is_recurring_history(const pe_resource_t *rsc, const xmlNode *xml, xml 128 lib/pacemaker/pcmk_sched_recurring.c op->interval_ms = xe_interval(xml); xml 133 lib/pacemaker/pcmk_sched_recurring.c op->id = ID(xml); xml 139 lib/pacemaker/pcmk_sched_recurring.c op->name = crm_element_value(xml, "name"); xml 152 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 292 lib/pacemaker/pcmk_sched_resource.c pcmk__noop_add_graph_meta(const pe_resource_t *rsc, xmlNode *xml) xml 332 lib/pacemaker/pcmk_scheduler.c crm_element_name(rsc->xml), rsc->id); xml 663 lib/pacemaker/pcmk_scheduler.c out->message(out, crm_map_element_name(rsc->xml), 0, rsc, all, all); xml 468 lib/pacemaker/pcmk_simulate.c const char *node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 469 lib/pacemaker/pcmk_simulate.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); xml 499 lib/pacemaker/pcmk_simulate.c const char *operation = crm_element_value(action->xml, "operation"); xml 505 lib/pacemaker/pcmk_simulate.c xmlNode *action_rsc = first_named_child(action->xml, XML_CIB_TAG_RESOURCE); xml 507 lib/pacemaker/pcmk_simulate.c char *node = crm_element_value_copy(action->xml, XML_LRM_ATTR_TARGET); xml 509 lib/pacemaker/pcmk_simulate.c const char *router_node = crm_element_value(action->xml, xml 519 lib/pacemaker/pcmk_simulate.c crm_log_xml_err(action->xml, "Bad"); xml 531 lib/pacemaker/pcmk_simulate.c crm_log_xml_err(action->xml, "No ID"); xml 562 lib/pacemaker/pcmk_simulate.c uuid = crm_element_value_copy(action->xml, XML_LRM_ATTR_TARGET_UUID); xml 660 lib/pacemaker/pcmk_simulate.c const char *node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); xml 661 lib/pacemaker/pcmk_simulate.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); xml 662 lib/pacemaker/pcmk_simulate.c xmlNode *rsc = first_named_child(action->xml, XML_CIB_TAG_RESOURCE); xml 683 lib/pacemaker/pcmk_simulate.c char *target = crm_element_value_copy(action->xml, XML_LRM_ATTR_TARGET); xml 978 lib/pacemaker/pcmk_simulate.c pcmk_simulate(xmlNodePtr *xml, pe_working_set_t *data_set, xml 987 lib/pacemaker/pcmk_simulate.c rc = pcmk__xml_output_new(&out, xml); xml 997 lib/pacemaker/pcmk_simulate.c pcmk__xml_output_finish(out, xml); xml 152 lib/pacemaker/pcmk_status.c pcmk_status(xmlNodePtr *xml) xml 166 lib/pacemaker/pcmk_status.c rc = pcmk__xml_output_new(&out, xml); xml 178 lib/pacemaker/pcmk_status.c pcmk__xml_output_finish(out, xml); xml 739 lib/pengine/bundle.c && xml_contains_remote_node(rsc->xml); xml 744 lib/pengine/bundle.c xmlNode *xml, const char *field) xml 775 lib/pengine/bundle.c if(xml != NULL && field != NULL) { xml 776 lib/pengine/bundle.c crm_xml_add(xml, field, node->details->uname); xml 804 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, PE__CONTAINER_AGENT_DOCKER_S); xml 808 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, PE__CONTAINER_AGENT_RKT_S); xml 812 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, PE__CONTAINER_AGENT_PODMAN_S); xml 853 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, "network"); xml 890 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, "storage"); xml 915 lib/pengine/bundle.c xml_obj = first_named_child(rsc->xml, "primitive"); xml 1330 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->ip->xml), show_opts, xml 1335 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), show_opts, xml 1340 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->container->xml), show_opts, xml 1345 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), show_opts, xml 1472 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->ip->xml), xml 1477 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), xml 1482 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->container->xml), xml 1487 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), xml 1607 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->ip->xml), xml 1612 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), xml 1617 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->container->xml), xml 1622 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), xml 1765 lib/pengine/bundle.c free_xml(replica->ip->xml); xml 1766 lib/pengine/bundle.c replica->ip->xml = NULL; xml 1771 lib/pengine/bundle.c free_xml(replica->container->xml); xml 1772 lib/pengine/bundle.c replica->container->xml = NULL; xml 1777 lib/pengine/bundle.c free_xml(replica->remote->xml); xml 1778 lib/pengine/bundle.c replica->remote->xml = NULL; xml 1813 lib/pengine/bundle.c free_xml(bundle_data->child->xml); xml 1814 lib/pengine/bundle.c bundle_data->child->xml = NULL; xml 299 lib/pengine/clone.c xmlNode *xml_obj = rsc->xml; xml 870 lib/pengine/clone.c out->message(out, crm_map_element_name(child_rsc->xml), show_opts, xml 1003 lib/pengine/clone.c out->message(out, crm_map_element_name(child_rsc->xml), show_opts, xml 1182 lib/pengine/clone.c free_xml(child_rsc->xml); xml 1183 lib/pengine/clone.c child_rsc->xml = NULL; xml 122 lib/pengine/complex.c pe__unpack_dataset_nvpairs(p->xml, XML_TAG_META_SETS, xml 153 lib/pengine/complex.c .standard = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS), xml 154 lib/pengine/complex.c .provider = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER), xml 155 lib/pengine/complex.c .agent = crm_element_value(rsc->xml, XML_EXPR_ATTR_TYPE) xml 171 lib/pengine/complex.c for (xmlAttrPtr a = pcmk__xe_first_attr(rsc->xml); a != NULL; a = a->next) { xml 173 lib/pengine/complex.c const char *prop_value = crm_element_value(rsc->xml, prop_name); xml 178 lib/pengine/complex.c pe__unpack_dataset_nvpairs(rsc->xml, XML_TAG_META_SETS, &rule_data, xml 215 lib/pengine/complex.c pe__unpack_dataset_nvpairs(rsc->xml, XML_TAG_ATTR_SETS, &rule_data, xml 405 lib/pengine/complex.c if (pcmk__str_eq(crm_element_name(rsc->xml), PCMK_XE_PROMOTABLE_LEGACY, xml 522 lib/pengine/complex.c && xml_contains_remote_node(rsc->xml)) { xml 555 lib/pengine/complex.c const char *std = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 638 lib/pengine/complex.c (*rsc)->xml = expanded_xml; xml 642 lib/pengine/complex.c (*rsc)->xml = xml_obj; xml 650 lib/pengine/complex.c ops = find_xml_node((*rsc)->xml, "operations", FALSE); xml 653 lib/pengine/complex.c (*rsc)->variant = get_resource_type(crm_element_name((*rsc)->xml)); xml 656 lib/pengine/complex.c id, crm_element_name((*rsc)->xml)); xml 670 lib/pengine/complex.c value = crm_element_value((*rsc)->xml, XML_RSC_ATTR_INCARNATION); xml 715 lib/pengine/complex.c if (xml_contains_remote_node((*rsc)->xml)) { xml 831 lib/pengine/complex.c if (pcmk__str_eq(crm_element_value((*rsc)->xml, XML_AGENT_ATTR_CLASS), xml 891 lib/pengine/complex.c pe__unpack_dataset_nvpairs((*rsc)->xml, XML_TAG_UTILIZATION, &rule_data, xml 988 lib/pengine/complex.c free_xml(rsc->xml); xml 989 lib/pengine/complex.c rsc->xml = NULL; xml 995 lib/pengine/complex.c free_xml(rsc->xml); xml 996 lib/pengine/complex.c rsc->xml = NULL; xml 100 lib/pengine/failcounts.c xmlXPathObject *xpathObj = xpath_search(rsc->xml, xpath); xml 182 lib/pengine/group.c xmlNode *xml_obj = rsc->xml; xml 198 lib/pengine/group.c clone_id = crm_element_value(rsc->xml, XML_RSC_ATTR_INCARNATION); xml 385 lib/pengine/group.c out->message(out, crm_map_element_name(child_rsc->xml), show_opts, child_rsc, xml 442 lib/pengine/group.c out->message(out, crm_map_element_name(child_rsc->xml), show_opts, xml 202 lib/pengine/native.c const char *standard = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 274 lib/pengine/native.c const char *rid = ID(rsc->xml); xml 453 lib/pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 454 lib/pengine/native.c const char *prov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 464 lib/pengine/native.c crm_element_value(rsc->xml, XML_ATTR_TYPE)); xml 549 lib/pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 551 lib/pengine/native.c const char *kind = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 564 lib/pengine/native.c provider = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 670 lib/pengine/native.c const char *desc = crm_element_value(rsc->xml, XML_ATTR_DESC); xml 702 lib/pengine/native.c const char *kind = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 942 lib/pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 943 lib/pengine/native.c const char *prov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 968 lib/pengine/native.c crm_element_value(rsc->xml, XML_ATTR_TYPE)); xml 1149 lib/pengine/native.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 1150 lib/pengine/native.c const char *kind = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 1164 lib/pengine/native.c const char *prov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 645 lib/pengine/pe_actions.c .standard = crm_element_value(action->rsc->xml, XML_AGENT_ATTR_CLASS), xml 646 lib/pengine/pe_actions.c .provider = crm_element_value(action->rsc->xml, XML_AGENT_ATTR_PROVIDER), xml 647 lib/pengine/pe_actions.c .agent = crm_element_value(action->rsc->xml, XML_EXPR_ATTR_TYPE) xml 184 lib/pengine/pe_digest.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 25 lib/pengine/pe_output.c desc = crm_element_value(rsc->xml, XML_ATTR_DESC); xml 365 lib/pengine/pe_output.c return dump_xml_formatted(rsc->orig_xml ? rsc->orig_xml : rsc->xml); xml 367 lib/pengine/pe_output.c return dump_xml_formatted(rsc->xml); xml 1648 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), show_opts, xml 1790 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), show_opts, xml 1879 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), show_opts, xml 2042 lib/pengine/pe_output.c const char *class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 2043 lib/pengine/pe_output.c const char *kind = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 2047 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 2813 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 278 lib/pengine/rules.c update_field(crm_time_t *t, const xmlNode *xml, const char *attr, xml 283 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(pe_node_t *node, const xmlNode *xml, xml 2543 lib/pengine/unpack.c unpack_node_lrm(pe_node_t *node, const xmlNode *xml, pe_working_set_t *data_set) xml 2548 lib/pengine/unpack.c xml = find_xml_node(xml, XML_CIB_TAG_LRM, FALSE); xml 2549 lib/pengine/unpack.c if (xml == NULL) { xml 2552 lib/pengine/unpack.c xml = find_xml_node(xml, XML_LRM_TAG_RESOURCES, FALSE); xml 2553 lib/pengine/unpack.c if (xml == NULL) { xml 2558 lib/pengine/unpack.c for (const xmlNode *rsc_entry = first_named_child(xml, XML_LRM_TAG_RESOURCE); xml 2573 lib/pengine/unpack.c handle_orphaned_container_fillers(xml, data_set); xml 2610 lib/pengine/unpack.c xmlNode *xml = NULL; xml 2636 lib/pengine/unpack.c xml = get_xpath_object((const char *) xpath->str, data_set->input, xml 2640 lib/pengine/unpack.c if (xml && target_rc >= 0) { xml 2644 lib/pengine/unpack.c crm_element_value_int(xml, XML_LRM_ATTR_RC, &rc); xml 2645 lib/pengine/unpack.c crm_element_value_int(xml, XML_LRM_ATTR_OPSTATUS, &status); xml 2650 lib/pengine/unpack.c return xml; xml 2658 lib/pengine/unpack.c xmlNode *xml = NULL; xml 2668 lib/pengine/unpack.c xml = get_xpath_object((const char *) xpath->str, data_set->input, xml 2672 lib/pengine/unpack.c return xml; xml 2954 lib/pengine/unpack.c if (get_migration_node_names(history->xml, history->node, NULL, &source, xml 2960 lib/pengine/unpack.c source_newer_op = non_monitor_after(history->rsc->id, source, history->xml, xml 2983 lib/pengine/unpack.c history->xml, migrate_from, xml 3068 lib/pengine/unpack.c if (get_migration_node_names(history->xml, history->node, NULL, &source, xml 3092 lib/pengine/unpack.c && !newer_state_after_migrate(history->rsc->id, target, history->xml, xml 3107 lib/pengine/unpack.c } else if (!non_monitor_after(history->rsc->id, source, history->xml, true, xml 3135 lib/pengine/unpack.c if (get_migration_node_names(history->xml, NULL, history->node, &source, xml 3160 lib/pengine/unpack.c source_migrate_to, history->xml, xml 3205 lib/pengine/unpack.c crm_xml_add(history->xml, XML_ATTR_UNAME, history->node->details->uname); xml 3206 lib/pengine/unpack.c crm_xml_add(history->xml, XML_LRM_ATTR_RSCID, history->rsc->id); xml 3207 lib/pengine/unpack.c add_node_copy(history->rsc->cluster->failed, history->xml); xml 3375 lib/pengine/unpack.c *last_failure = history->xml; xml 3377 lib/pengine/unpack.c is_probe = pcmk_xe_is_probe(history->xml); xml 3378 lib/pengine/unpack.c last_change_s = last_change_str(history->xml); xml 3507 lib/pengine/unpack.c last_change_s = last_change_str(history->xml); xml 3585 lib/pengine/unpack.c && pcmk_xe_mask_probe_failure(history->xml) xml 3614 lib/pengine/unpack.c is_probe = pcmk_xe_is_probe(history->xml); xml 3654 lib/pengine/unpack.c char *last_change_s = last_change_str(history->xml); xml 3684 lib/pengine/unpack.c char *last_change_s = last_change_str(history->xml); xml 3713 lib/pengine/unpack.c crm_element_value_ms(history->xml, XML_LRM_ATTR_INTERVAL_MS, xml 3740 lib/pengine/unpack.c char *last_change_s = last_change_str(history->xml); xml 3894 lib/pengine/unpack.c && (crm_element_value_epoch(history->xml, XML_RSC_OP_LAST_CHANGE, xml 3913 lib/pengine/unpack.c history->xml); xml 3929 lib/pengine/unpack.c history->xml)) { xml 3960 lib/pengine/unpack.c && should_clear_for_param_change(history->xml, history->task, xml 4062 lib/pengine/unpack.c && pcmk_xe_mask_probe_failure(history->xml))) { xml 4195 lib/pengine/unpack.c if ((crm_element_value_int(history->xml, XML_LRM_ATTR_OPSTATUS, xml 4203 lib/pengine/unpack.c pcmk__s(crm_element_value(history->xml, XML_LRM_ATTR_OPSTATUS), xml 4207 lib/pengine/unpack.c if ((crm_element_value_int(history->xml, XML_LRM_ATTR_RC, xml 4218 lib/pengine/unpack.c pcmk__s(crm_element_value(history->xml, XML_LRM_ATTR_RC), xml 4225 lib/pengine/unpack.c history->exit_reason = crm_element_value(history->xml, xml 4244 lib/pengine/unpack.c && pcmk_xe_mask_probe_failure(history->xml) xml 4284 lib/pengine/unpack.c crm_xml_add(history->xml, XML_LRM_ATTR_RESTART_DIGEST, xml 4317 lib/pengine/unpack.c crm_xml_add(history->xml, XML_ATTR_UNAME, history->node->details->uname); xml 4359 lib/pengine/unpack.c if ((pcmk__scan_ll(crm_element_value(history->xml, XML_RSC_OP_LAST_CHANGE), xml 4410 lib/pengine/unpack.c migrate_target = crm_element_value(history->xml, xml 4453 lib/pengine/unpack.c .xml = xml_op, xml 585 lib/pengine/utils.c return pcmk_is_set(rsc->flags, pe_rsc_unique)? rsc->id : ID(rsc->xml); xml 73 tools/cibadmin.c print_xml_output(xmlNode * xml) xml 77 tools/cibadmin.c if (!xml) { xml 79 tools/cibadmin.c } else if (xml->type != XML_ELEMENT_NODE) { xml 84 tools/cibadmin.c const char *id = crm_element_value(xml, XML_ATTR_ID); xml 86 tools/cibadmin.c if (pcmk__str_eq((const char *)xml->name, "xpath-query", pcmk__str_casei)) { xml 89 tools/cibadmin.c for (child = xml->children; child; child = child->next) { xml 98 tools/cibadmin.c 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 2041 tools/crm_resource.c value = crm_element_value(rsc->xml, options.prop_name); xml 2046 tools/crm_resource.c pe__unpack_dataset_nvpairs(rsc->xml, XML_TAG_UTILIZATION, NULL, params, xml 116 tools/crm_resource.h int update_working_set_xml(pe_working_set_t *data_set, xmlNode **xml); xml 66 tools/crm_resource_print.c const char *rtype = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 67 tools/crm_resource_print.c const char *rprov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 68 tools/crm_resource_print.c const char *rclass = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 82 tools/crm_resource_print.c crm_element_name(rsc->xml), rsc->id, xml 126 tools/crm_resource_print.c out->message(out, crm_map_element_name(rsc->xml), show_opts, rsc, all, all); xml 285 tools/crm_resource_print.c const char *value = crm_element_value(rsc->xml, attr); xml 302 tools/crm_resource_print.c const char *value = crm_element_value(rsc->xml, attr); xml 297 tools/crm_resource_runtime.c crm_xml_add(rsc->xml, attr_name, attr_value); xml 299 tools/crm_resource_runtime.c rc = cib->cmds->replace(cib, XML_CIB_TAG_RESOURCES, rsc->xml, xml 361 tools/crm_resource_runtime.c xml_top = create_xml_node(NULL, crm_element_name(rsc->xml)); xml 465 tools/crm_resource_runtime.c xml_remove_prop(rsc->xml, attr_name); xml 467 tools/crm_resource_runtime.c rc = cib->cmds->replace(cib, XML_CIB_TAG_RESOURCES, rsc->xml, xml 558 tools/crm_resource_runtime.c rsc_class = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 559 tools/crm_resource_runtime.c rsc_provider = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER), xml 560 tools/crm_resource_runtime.c rsc_type = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 1188 tools/crm_resource_runtime.c update_working_set_xml(pe_working_set_t *data_set, xmlNode **xml) xml 1190 tools/crm_resource_runtime.c if (cli_config_update(xml, NULL, FALSE) == FALSE) { xml 1193 tools/crm_resource_runtime.c data_set->input = *xml; xml 2045 tools/crm_resource_runtime.c rclass = crm_element_value(rsc->xml, XML_AGENT_ATTR_CLASS); xml 2046 tools/crm_resource_runtime.c rprov = crm_element_value(rsc->xml, XML_AGENT_ATTR_PROVIDER); xml 2047 tools/crm_resource_runtime.c rtype = crm_element_value(rsc->xml, XML_ATTR_TYPE); xml 521 tools/crm_shadow.c write_shadow_file(xmlNode *xml, const char *filename, bool reset, xml 524 tools/crm_shadow.c int rc = write_xml_file(xml, filename, FALSE);