xpath 116 daemons/attrd/pacemaker-attrd.c char *xpath = crm_strdup_printf(XPATH_TRANSIENT, attrd_cluster->uname); xpath 119 daemons/attrd/pacemaker-attrd.c xpath); xpath 121 daemons/attrd/pacemaker-attrd.c call_id = the_cib->cmds->remove(the_cib, xpath, NULL, cib_xpath); xpath 122 daemons/attrd/pacemaker-attrd.c the_cib->cmds->register_callback_full(the_cib, call_id, 120, FALSE, xpath, xpath 1165 daemons/based/based_callbacks.c calculate_section_digest(const char *xpath, xmlNode * xml_obj) xpath 1173 daemons/based/based_callbacks.c xml_section = get_xpath_object(xpath, xml_obj, LOG_TRACE); xpath 416 daemons/controld/controld_cib.c char *xpath = NULL; xpath 426 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_NODE_LRM, uname); xpath 430 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_NODE_LRM_UNLOCKED, xpath 436 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_NODE_ATTRS, uname); xpath 440 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_NODE_ALL, uname); xpath 444 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_NODE_ALL_UNLOCKED, xpath 459 daemons/controld/controld_cib.c call_id = cib_conn->cmds->remove(cib_conn, xpath, NULL, options); xpath 461 daemons/controld/controld_cib.c desc, call_id, xpath); xpath 465 daemons/controld/controld_cib.c free(xpath); xpath 492 daemons/controld/controld_cib.c char *xpath = NULL; xpath 505 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_RESOURCE_HISTORY, node, rsc_id); xpath 507 daemons/controld/controld_cib.c NULL, xpath, NULL, NULL, call_options|cib_xpath, xpath 517 daemons/controld/controld_cib.c free(xpath); xpath 531 daemons/controld/controld_cib.c desc, rc, xpath); xpath 536 daemons/controld/controld_cib.c free(xpath); xpath 1088 daemons/controld/controld_cib.c char *xpath = NULL; xpath 1096 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_HISTORY_ID, node, rsc_id, xpath 1101 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_HISTORY_ORIG, node, rsc_id, xpath 1107 daemons/controld/controld_cib.c controld_globals.cib_conn->cmds->remove(controld_globals.cib_conn, xpath, xpath 1109 daemons/controld/controld_cib.c free(xpath); xpath 1125 daemons/controld/controld_cib.c char *xpath = NULL; xpath 1130 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_HISTORY_CALL, node, rsc_id, key, xpath 1133 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_HISTORY_ID, node, rsc_id, key); xpath 1135 daemons/controld/controld_cib.c controld_globals.cib_conn->cmds->remove(controld_globals.cib_conn, xpath, xpath 1137 daemons/controld/controld_cib.c free(xpath); xpath 313 daemons/controld/controld_membership.c GString *xpath = NULL; xpath 321 daemons/controld/controld_membership.c if (xpath == NULL) { xpath 322 daemons/controld/controld_membership.c xpath = g_string_sized_new(512); xpath 324 daemons/controld/controld_membership.c g_string_truncate(xpath, 0); xpath 333 daemons/controld/controld_membership.c pcmk__g_strcat(xpath, xpath 340 daemons/controld/controld_membership.c (const char *) xpath->str, xpath 348 daemons/controld/controld_membership.c if (xpath != NULL) { xpath 349 daemons/controld/controld_membership.c g_string_free(xpath, TRUE); xpath 220 daemons/controld/controld_te_callbacks.c const char *op, const char *xpath) xpath 263 daemons/controld/controld_te_callbacks.c static char *extract_node_uuid(const char *xpath) xpath 265 daemons/controld/controld_te_callbacks.c char *mutable_path = strdup(xpath); xpath 290 daemons/controld/controld_te_callbacks.c abort_unless_down(const char *xpath, const char *op, xmlNode *change, xpath 301 daemons/controld/controld_te_callbacks.c node_uuid = extract_node_uuid(xpath); xpath 303 daemons/controld/controld_te_callbacks.c crm_err("Could not extract node ID from %s", xpath); xpath 310 daemons/controld/controld_te_callbacks.c crm_trace("Not expecting %s to be down (%s)", node_uuid, xpath); xpath 313 daemons/controld/controld_te_callbacks.c crm_trace("Expecting changes to %s (%s)", node_uuid, xpath); xpath 319 daemons/controld/controld_te_callbacks.c process_op_deletion(const char *xpath, xmlNode *change) xpath 321 daemons/controld/controld_te_callbacks.c char *mutable_key = strdup(xpath); xpath 333 daemons/controld/controld_te_callbacks.c xpath); xpath 339 daemons/controld/controld_te_callbacks.c node_uuid = extract_node_uuid(xpath); xpath 349 daemons/controld/controld_te_callbacks.c process_delete_diff(const char *xpath, const char *op, xmlNode *change) xpath 351 daemons/controld/controld_te_callbacks.c if (strstr(xpath, "/" XML_LRM_TAG_RSC_OP "[")) { xpath 352 daemons/controld/controld_te_callbacks.c process_op_deletion(xpath, change); xpath 354 daemons/controld/controld_te_callbacks.c } else if (strstr(xpath, "/" XML_CIB_TAG_LRM "[")) { xpath 355 daemons/controld/controld_te_callbacks.c abort_unless_down(xpath, op, change, "Resource state removal"); xpath 357 daemons/controld/controld_te_callbacks.c } else if (strstr(xpath, "/" XML_CIB_TAG_STATE "[")) { xpath 358 daemons/controld/controld_te_callbacks.c abort_unless_down(xpath, op, change, "Node state removal"); xpath 361 daemons/controld/controld_te_callbacks.c crm_trace("Ignoring delete of %s", xpath); xpath 367 daemons/controld/controld_te_callbacks.c const char *xpath) xpath 371 daemons/controld/controld_te_callbacks.c process_resource_updates(ID(state), lrm, change, op, xpath); xpath 376 daemons/controld/controld_te_callbacks.c const char *xpath) xpath 380 daemons/controld/controld_te_callbacks.c process_node_state_diff(state, change, op, xpath); xpath 386 daemons/controld/controld_te_callbacks.c const char *xpath) xpath 392 daemons/controld/controld_te_callbacks.c process_status_diff(status, change, op, xpath); xpath 410 daemons/controld/controld_te_callbacks.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 419 daemons/controld/controld_te_callbacks.c } else if (xpath == NULL) { xpath 424 daemons/controld/controld_te_callbacks.c && (strstr(xpath, xpath 430 daemons/controld/controld_te_callbacks.c crm_trace("Ignoring move change at %s", xpath); xpath 446 daemons/controld/controld_te_callbacks.c op, xpath); xpath 452 daemons/controld/controld_te_callbacks.c crm_trace("Ignoring %s operation for comment at %s", op, xpath); xpath 459 daemons/controld/controld_te_callbacks.c op, (xpath? xpath : "CIB"), xpath 462 daemons/controld/controld_te_callbacks.c if (strstr(xpath, "/" XML_TAG_CIB "/" XML_CIB_TAG_CONFIGURATION)) { xpath 467 daemons/controld/controld_te_callbacks.c } else if (strstr(xpath, "/" XML_CIB_TAG_TICKETS) xpath 473 daemons/controld/controld_te_callbacks.c } else if (strstr(xpath, "/" XML_TAG_TRANSIENT_NODEATTRS "[") xpath 476 daemons/controld/controld_te_callbacks.c abort_unless_down(xpath, op, change, "Transient attribute change"); xpath 480 daemons/controld/controld_te_callbacks.c process_delete_diff(xpath, op, change); xpath 484 daemons/controld/controld_te_callbacks.c op, xpath); xpath 487 daemons/controld/controld_te_callbacks.c process_cib_diff(match, change, op, xpath); xpath 490 daemons/controld/controld_te_callbacks.c process_status_diff(match, change, op, xpath); xpath 493 daemons/controld/controld_te_callbacks.c process_node_state_diff(match, change, op, xpath); xpath 496 daemons/controld/controld_te_callbacks.c process_resource_updates(ID(match), match, change, op, xpath); xpath 499 daemons/controld/controld_te_callbacks.c char *local_node = pcmk__xpath_node_id(xpath, "lrm"); xpath 501 daemons/controld/controld_te_callbacks.c process_resource_updates(local_node, match, change, op, xpath); xpath 505 daemons/controld/controld_te_callbacks.c char *local_node = pcmk__xpath_node_id(xpath, "lrm"); xpath 511 daemons/controld/controld_te_callbacks.c char *local_node = pcmk__xpath_node_id(xpath, "lrm"); xpath 518 daemons/controld/controld_te_callbacks.c op, xpath, name); xpath 380 daemons/controld/controld_te_events.c char *xpath = crm_strdup_printf(XPATH_DOWNED, target); xpath 392 daemons/controld/controld_te_events.c xpath_ret = xpath_search(match->xml, xpath); xpath 404 daemons/controld/controld_te_events.c free(xpath); xpath 903 daemons/fenced/fenced_commands.c xmlXPathObjectPtr xpath = NULL; xpath 913 daemons/fenced/fenced_commands.c xpath = xpath_search(xml, "//parameter[@name='nodeid']"); xpath 914 daemons/fenced/fenced_commands.c if (numXpathResults(xpath) <= 0) { xpath 915 daemons/fenced/fenced_commands.c freeXpathObject(xpath); xpath 919 daemons/fenced/fenced_commands.c freeXpathObject(xpath); xpath 926 daemons/fenced/fenced_commands.c xmlXPathObjectPtr xpath = NULL; xpath 934 daemons/fenced/fenced_commands.c xpath = xpath_search(device->agent_metadata, "//action"); xpath 935 daemons/fenced/fenced_commands.c max = numXpathResults(xpath); xpath 938 daemons/fenced/fenced_commands.c freeXpathObject(xpath); xpath 944 daemons/fenced/fenced_commands.c xmlNode *match = getXpathResult(xpath, lpc); xpath 975 daemons/fenced/fenced_commands.c freeXpathObject(xpath); xpath 582 daemons/fenced/pacemaker-fenced.c const char *xpath = "//" XML_TAG_FENCING_LEVEL; xpath 589 daemons/fenced/pacemaker-fenced.c xpathObj = xpath_search(local_cib, xpath); xpath 855 daemons/fenced/pacemaker-fenced.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 860 daemons/fenced/pacemaker-fenced.c strstr(xpath, "/"XML_CIB_TAG_STATUS)) { xpath 862 daemons/fenced/pacemaker-fenced.c } else if (pcmk__str_eq(op, "delete", pcmk__str_casei) && strstr(xpath, "/"XML_CIB_TAG_RESOURCE)) { xpath 867 daemons/fenced/pacemaker-fenced.c if (strstr(xpath, XML_TAG_ATTR_SETS) || xpath 868 daemons/fenced/pacemaker-fenced.c strstr(xpath, XML_TAG_META_SETS)) { xpath 874 daemons/fenced/pacemaker-fenced.c pcmk__str_update(&mutable, xpath); xpath 890 daemons/fenced/pacemaker-fenced.c } else if (strstr(xpath, "/"XML_CIB_TAG_RESOURCES) || xpath 891 daemons/fenced/pacemaker-fenced.c strstr(xpath, "/"XML_CIB_TAG_CONSTRAINTS) || xpath 892 daemons/fenced/pacemaker-fenced.c strstr(xpath, "/"XML_CIB_TAG_RSCCONFIG)) { xpath 893 daemons/fenced/pacemaker-fenced.c shortpath = strrchr(xpath, '/'); CRM_ASSERT(shortpath); xpath 1004 daemons/fenced/pacemaker-fenced.c GString *xpath = NULL; xpath 1015 daemons/fenced/pacemaker-fenced.c xpath = g_string_sized_new(256); xpath 1016 daemons/fenced/pacemaker-fenced.c pcmk__g_strcat(xpath, xpath 1023 daemons/fenced/pacemaker-fenced.c match = get_xpath_object((const char *) xpath->str, local_cib, LOG_NEVER); xpath 1025 daemons/fenced/pacemaker-fenced.c g_string_free(xpath, TRUE); xpath 1051 daemons/fenced/pacemaker-fenced.c const char *xpath; xpath 1060 daemons/fenced/pacemaker-fenced.c xpath = "//" F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_REMOVED "//" XML_TAG_FENCING_LEVEL; xpath 1061 daemons/fenced/pacemaker-fenced.c xpathObj = xpath_search(msg, xpath); xpath 1067 daemons/fenced/pacemaker-fenced.c xpath = "//" F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_ADDED "//" XML_TAG_FENCING_LEVEL; xpath 1068 daemons/fenced/pacemaker-fenced.c xpathObj = xpath_search(msg, xpath); xpath 1083 daemons/fenced/pacemaker-fenced.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 1088 daemons/fenced/pacemaker-fenced.c } else if(strstr(xpath, "/" XML_TAG_FENCING_LEVEL) != NULL) { xpath 1091 daemons/fenced/pacemaker-fenced.c crm_trace("Handling %s operation %d.%d.%d for %s", op, add[0], add[1], add[2], xpath); xpath 1109 daemons/fenced/pacemaker-fenced.c op, add[0], add[1], add[2], xpath); xpath 1114 daemons/fenced/pacemaker-fenced.c } else if (strstr(xpath, "/" XML_TAG_FENCING_TOPOLOGY) != NULL) { xpath 1117 daemons/fenced/pacemaker-fenced.c op, add[0], add[1], add[2], xpath); xpath 1121 daemons/fenced/pacemaker-fenced.c } else if (strstr(xpath, "/" XML_CIB_TAG_CONFIGURATION)) { xpath 1125 daemons/fenced/pacemaker-fenced.c op, add[0], add[1], add[2], xpath); xpath 1129 daemons/fenced/pacemaker-fenced.c op, add[0], add[1], add[2], xpath); xpath 1136 daemons/fenced/pacemaker-fenced.c op, add[0], add[1], add[2], xpath); xpath 169 include/crm/common/xml.h xmlNode *get_xpath_object(const char *xpath, xmlNode * xml_obj, int error_level); xpath 170 include/crm/common/xml.h xmlNode *get_xpath_object_relative(const char *xpath, xmlNode * xml_obj, int error_level); xpath 262 include/crm/common/xml.h void crm_foreach_xpath_result(xmlNode *xml, const char *xpath, xpath 361 include/crm/common/xml_internal.h pcmk__xpath_node_id(const char *xpath, const char *node); xpath 61 lib/cib/cib_attrs.c GString *xpath = NULL; xpath 96 lib/cib/cib_attrs.c xpath = g_string_sized_new(1024); xpath 97 lib/cib/cib_attrs.c g_string_append(xpath, xpath_base); xpath 100 lib/cib/cib_attrs.c pcmk__g_strcat(xpath, "//", node_type, NULL); xpath 109 lib/cib/cib_attrs.c pcmk__g_strcat(xpath, xpath 114 lib/cib/cib_attrs.c pcmk__g_strcat(xpath, "//", set_type, NULL); xpath 116 lib/cib/cib_attrs.c pcmk__g_strcat(xpath, "[@" XML_ATTR_ID "='", set_name, "']", NULL); xpath 119 lib/cib/cib_attrs.c g_string_append(xpath, "//nvpair"); xpath 122 lib/cib/cib_attrs.c pcmk__g_strcat(xpath, xpath 127 lib/cib/cib_attrs.c pcmk__g_strcat(xpath, "[@" XML_ATTR_ID "='", attr_id, "']", NULL); xpath 130 lib/cib/cib_attrs.c pcmk__g_strcat(xpath, "[@" XML_ATTR_NAME "='", attr_name, "']", NULL); xpath 134 lib/cib/cib_attrs.c (const char *) xpath->str, NULL, &xml_search, xpath 140 lib/cib/cib_attrs.c pcmk__s(set_name, "<null>"), (const char *) xpath->str, xpath 147 lib/cib/cib_attrs.c g_string_free(xpath, TRUE); xpath 29 lib/common/acl.c char *xpath; xpath 38 lib/common/acl.c free(acl->xpath); xpath 56 lib/common/acl.c const char *xpath = crm_element_value(xml, XML_ACL_ATTR_XPATH); xpath 68 lib/common/acl.c if ((tag == NULL) && (ref == NULL) && (xpath == NULL)) { xpath 79 lib/common/acl.c if (xpath) { xpath 80 lib/common/acl.c acl->xpath = strdup(xpath); xpath 81 lib/common/acl.c CRM_ASSERT(acl->xpath != NULL); xpath 83 lib/common/acl.c crm_element_name(xml), acl->xpath); xpath 104 lib/common/acl.c acl->xpath = strdup((const char *) buf->str); xpath 105 lib/common/acl.c CRM_ASSERT(acl->xpath != NULL); xpath 109 lib/common/acl.c crm_element_name(xml), acl->xpath); xpath 241 lib/common/acl.c xpathObj = xpath_search(xml, acl->xpath); xpath 255 lib/common/acl.c acl_to_text(acl->mode), path->str, acl->xpath); xpath 262 lib/common/acl.c acl_to_text(acl->mode), acl->xpath, max, xpath 468 lib/common/acl.c } else if (acl->xpath) { xpath 470 lib/common/acl.c xmlXPathObjectPtr xpathObj = xpath_search(target, acl->xpath); xpath 484 lib/common/acl.c user, acl->xpath, max, xpath 659 lib/common/acl.c GString *xpath = NULL; xpath 665 lib/common/acl.c xpath = pcmk__element_xpath(xml); xpath 667 lib/common/acl.c pcmk__g_strcat(xpath, "[@", name, "]", NULL); xpath 674 lib/common/acl.c (const char *) xpath->str); xpath 675 lib/common/acl.c g_string_free(xpath, TRUE); xpath 701 lib/common/acl.c xpath = pcmk__element_xpath(xml); xpath 703 lib/common/acl.c pcmk__g_strcat(xpath, "[@", name, "]", NULL); xpath 711 lib/common/acl.c (const char *) xpath->str); xpath 712 lib/common/acl.c g_string_free(xpath, TRUE); xpath 721 lib/common/acl.c xpath = pcmk__element_xpath(xml); xpath 723 lib/common/acl.c pcmk__g_strcat(xpath, "[@", name, "]", NULL); xpath 730 lib/common/acl.c (const char *) xpath->str); xpath 731 lib/common/acl.c g_string_free(xpath, TRUE); xpath 222 lib/common/alerts.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 224 lib/common/alerts.c if (xpath == NULL) { xpath 228 lib/common/alerts.c if ((!config || !strstr(xpath, XPATH_CRMCONFIG)) xpath 229 lib/common/alerts.c && !strstr(xpath, XPATH_ALERTS)) { xpath 236 lib/common/alerts.c if ((strcmp(xpath, XPATH_CONFIG) != 0) || xpath 46 lib/common/patchset.c GString *xpath = pcmk__element_xpath(xml->parent); xpath 48 lib/common/patchset.c if (xpath != NULL) { xpath 54 lib/common/patchset.c crm_xml_add(change, XML_DIFF_PATH, (const char *) xpath->str); xpath 57 lib/common/patchset.c g_string_free(xpath, TRUE); xpath 74 lib/common/patchset.c GString *xpath = pcmk__element_xpath(xml); xpath 76 lib/common/patchset.c if (xpath != NULL) { xpath 80 lib/common/patchset.c crm_xml_add(change, XML_DIFF_PATH, (const char *) xpath->str); xpath 83 lib/common/patchset.c g_string_free(xpath, TRUE); xpath 125 lib/common/patchset.c GString *xpath = pcmk__element_xpath(xml); xpath 130 lib/common/patchset.c if (xpath != NULL) { xpath 134 lib/common/patchset.c crm_xml_add(change, XML_DIFF_PATH, (const char *) xpath->str); xpath 137 lib/common/patchset.c g_string_free(xpath, TRUE); xpath 924 lib/common/patchset.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 937 lib/common/patchset.c match = search_v2_xpath(xml, xpath, position); xpath 938 lib/common/patchset.c crm_trace("Performing %s on %s with %p", op, xpath, match); xpath 941 lib/common/patchset.c crm_debug("No %s match for %s in %p", op, xpath, xml->doc); xpath 945 lib/common/patchset.c crm_err("No %s match for %s in %p", op, xpath, xml->doc); xpath 1002 lib/common/patchset.c const char *xpath = NULL; xpath 1007 lib/common/patchset.c xpath = crm_element_value(change, XML_DIFF_PATH); xpath 1009 lib/common/patchset.c crm_trace("Continue performing %s on %s with %p", op, xpath, match); xpath 203 lib/common/patchset_display.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 211 lib/common/patchset_display.c xpath); xpath 234 lib/common/patchset_display.c xpath, position); xpath 264 lib/common/patchset_display.c temp_rc = out->info(out, "+ %s: %s", xpath, buffer_set->str); xpath 271 lib/common/patchset_display.c xpath, buffer_unset->str); xpath 281 lib/common/patchset_display.c temp_rc = out->info(out, "-- %s (%d)", xpath, position); xpath 283 lib/common/patchset_display.c temp_rc = out->info(out, "-- %s", xpath); xpath 27 lib/common/tests/xpath/pcmk__xpath_node_id_test.c const char *xpath = "/some/xpath/lrm[@" XML_ATTR_ID "=xyz]"; xpath 28 lib/common/tests/xpath/pcmk__xpath_node_id_test.c pcmk__assert_asserts(pcmk__xpath_node_id(xpath, "lrm")); xpath 33 lib/common/tests/xpath/pcmk__xpath_node_id_test.c const char *xpath = "/some/xpath/string[@" XML_ATTR_ID "='xyz']"; xpath 34 lib/common/tests/xpath/pcmk__xpath_node_id_test.c assert_null(pcmk__xpath_node_id(xpath, "lrm")); xpath 36 lib/common/tests/xpath/pcmk__xpath_node_id_test.c xpath = "/some/xpath/containing[@" XML_ATTR_ID "='lrm']"; xpath 37 lib/common/tests/xpath/pcmk__xpath_node_id_test.c assert_null(pcmk__xpath_node_id(xpath, "lrm")); xpath 43 lib/common/tests/xpath/pcmk__xpath_node_id_test.c const char *xpath = "/some/xpath/containing/lrm[@" XML_ATTR_ID "='xyz']"; xpath 45 lib/common/tests/xpath/pcmk__xpath_node_id_test.c s = pcmk__xpath_node_id(xpath, "lrm"); xpath 49 lib/common/tests/xpath/pcmk__xpath_node_id_test.c xpath = "/some/other/lrm[@" XML_ATTR_ID "='xyz']/xpath"; xpath 50 lib/common/tests/xpath/pcmk__xpath_node_id_test.c s = pcmk__xpath_node_id(xpath, "lrm"); xpath 760 lib/common/xml.c GString *xpath = NULL; xpath 763 lib/common/xml.c xpath = pcmk__element_xpath(child); xpath 766 lib/common/xml.c __LINE__, 0, (const char *) xpath->str, xpath 768 lib/common/xml.c g_string_free(xpath, TRUE); xpath 775 lib/common/xml.c GString *xpath = pcmk__element_xpath(child); xpath 777 lib/common/xml.c if (xpath != NULL) { xpath 781 lib/common/xml.c (const char *) xpath->str, child, doc); xpath 784 lib/common/xml.c deleted_obj->path = strdup((const char *) xpath->str); xpath 787 lib/common/xml.c g_string_free(xpath, TRUE); xpath 173 lib/common/xpath.c crm_foreach_xpath_result(xmlNode *xml, const char *xpath, xpath 176 lib/common/xpath.c xmlXPathObjectPtr xpathObj = xpath_search(xml, xpath); xpath 192 lib/common/xpath.c get_xpath_object_relative(const char *xpath, xmlNode * xml_obj, int error_level) xpath 198 lib/common/xpath.c if (xml_obj == NULL || xpath == NULL) { xpath 204 lib/common/xpath.c xpath_full = crm_strdup_printf("%s%s", xpath_prefix, xpath); xpath 214 lib/common/xpath.c get_xpath_object(const char *xpath, xmlNode * xml_obj, int error_level) xpath 222 lib/common/xpath.c if (xpath == NULL) { xpath 226 lib/common/xpath.c xpathObj = xpath_search(xml_obj, xpath); xpath 233 lib/common/xpath.c xpath, pcmk__s(nodePath, "unknown path")); xpath 242 lib/common/xpath.c xpath, pcmk__s(nodePath, "unknown path")); xpath 251 lib/common/xpath.c xpath, lpc, xpath 284 lib/common/xpath.c GString *xpath = NULL; xpath 292 lib/common/xpath.c xpath = pcmk__element_xpath(parent); xpath 293 lib/common/xpath.c if (xpath == NULL) { xpath 294 lib/common/xpath.c xpath = g_string_sized_new(256); xpath 299 lib/common/xpath.c g_string_append_c(xpath, '/'); xpath 301 lib/common/xpath.c g_string_append(xpath, TYPE(xml)); xpath 303 lib/common/xpath.c pcmk__g_strcat(xpath, "/", TYPE(xml), NULL); xpath 308 lib/common/xpath.c pcmk__g_strcat(xpath, "[@" XML_ATTR_ID "='", id, "']", NULL); xpath 311 lib/common/xpath.c return xpath; xpath 315 lib/common/xpath.c pcmk__xpath_node_id(const char *xpath, const char *node) xpath 322 lib/common/xpath.c if (node == NULL || xpath == NULL) { xpath 327 lib/common/xpath.c start = strstr(xpath, patt); xpath 2391 lib/fencing/st_client.c xmlXPathObjectPtr xpath = NULL; xpath 2397 lib/fencing/st_client.c xpath = xpath_search(metadata, "//parameter"); xpath 2398 lib/fencing/st_client.c max = numXpathResults(xpath); xpath 2401 lib/fencing/st_client.c freeXpathObject(xpath); xpath 2407 lib/fencing/st_client.c xmlNode *match = getXpathResult(xpath, lpc); xpath 2426 lib/fencing/st_client.c freeXpathObject(xpath); xpath 95 lib/fencing/st_rhcs.c char *xpath = NULL; xpath 101 lib/fencing/st_rhcs.c xpath = crm_strdup_printf("//parameter[@name='%s']", parameter); xpath 104 lib/fencing/st_rhcs.c xpathObj = xpath_search(metadata, xpath); xpath 111 lib/fencing/st_rhcs.c free(xpath); xpath 126 lib/pacemaker/pcmk_injections.c char *xpath = crm_strdup_printf(XPATH_NODE_CONFIG, node); xpath 128 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath, NULL, xpath 144 lib/pacemaker/pcmk_injections.c free(xpath); xpath 226 lib/pacemaker/pcmk_injections.c char *xpath = crm_strdup_printf(XPATH_NODE_STATE, node); xpath 234 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, xpath 239 lib/pacemaker/pcmk_injections.c xpath); xpath 285 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, xpath 292 lib/pacemaker/pcmk_injections.c free(xpath); xpath 352 lib/pacemaker/pcmk_injections.c char *xpath = crm_strdup_printf(XPATH_RSC_HISTORY, node, resource); xpath 353 lib/pacemaker/pcmk_injections.c xmlNode *match = get_xpath_object(xpath, cib_node, LOG_TRACE); xpath 355 lib/pacemaker/pcmk_injections.c free(xpath); xpath 459 lib/pacemaker/pcmk_injections.c GString *xpath = g_string_sized_new(256); xpath 464 lib/pacemaker/pcmk_injections.c g_string_append(xpath, xpath 469 lib/pacemaker/pcmk_injections.c pcmk__g_strcat(xpath, xpath 473 lib/pacemaker/pcmk_injections.c rc = the_cib->cmds->query(the_cib, (const char *) xpath->str, &xml_search, xpath 475 lib/pacemaker/pcmk_injections.c g_string_free(xpath, TRUE); xpath 679 lib/pacemaker/pcmk_injections.c char *xpath = NULL; xpath 691 lib/pacemaker/pcmk_injections.c xpath = crm_strdup_printf("//node_state[@uname='%s']/%s", xpath 693 lib/pacemaker/pcmk_injections.c cib->cmds->remove(cib, xpath, NULL, xpath 695 lib/pacemaker/pcmk_injections.c free(xpath); xpath 697 lib/pacemaker/pcmk_injections.c xpath = crm_strdup_printf("//node_state[@uname='%s']/%s", xpath 699 lib/pacemaker/pcmk_injections.c cib->cmds->remove(cib, xpath, NULL, xpath 701 lib/pacemaker/pcmk_injections.c free(xpath); xpath 34 lib/pacemaker/pcmk_resource.c char *xpath = NULL; xpath 43 lib/pacemaker/pcmk_resource.c xpath = crm_strdup_printf(XPATH_OP_HISTORY, node->details->uname, rsc->id); xpath 44 lib/pacemaker/pcmk_resource.c history = get_xpath_object(xpath, data_set->input, LOG_NEVER); xpath 45 lib/pacemaker/pcmk_resource.c free(xpath); xpath 126 lib/pacemaker/pcmk_rule.c char *xpath = NULL; xpath 146 lib/pacemaker/pcmk_rule.c xpath = crm_strdup_printf(XPATH_NODE_RULE, rule_id); xpath 147 lib/pacemaker/pcmk_rule.c xpath_obj = xpath_search(cib_constraints, xpath); xpath 150 lib/pacemaker/pcmk_rule.c free(xpath); xpath 165 lib/pacemaker/pcmk_rule.c xpath = crm_strdup_printf(XPATH_NODE_RULE "//date_expression", rule_id); xpath 166 lib/pacemaker/pcmk_rule.c xpath_obj = xpath_search(cib_constraints, xpath); xpath 169 lib/pacemaker/pcmk_rule.c free(xpath); xpath 182 lib/pacemaker/pcmk_rule.c xpath = crm_strdup_printf(XPATH_NODE_RULE "//date_expression[" xpath 185 lib/pacemaker/pcmk_rule.c xpath_obj = xpath_search(cib_constraints, xpath); xpath 188 lib/pacemaker/pcmk_rule.c free(xpath); xpath 193 lib/pacemaker/pcmk_rule.c xpath = crm_strdup_printf(XPATH_NODE_RULE "//date_expression[" xpath 197 lib/pacemaker/pcmk_rule.c xpath_obj = xpath_search(cib_constraints, xpath); xpath 200 lib/pacemaker/pcmk_rule.c free(xpath); xpath 1909 lib/pacemaker/pcmk_sched_actions.c char *xpath = NULL; xpath 1912 lib/pacemaker/pcmk_sched_actions.c xpath = crm_strdup_printf(XPATH_NODE_HISTORY, node->details->uname); xpath 1913 lib/pacemaker/pcmk_sched_actions.c history = get_xpath_object(xpath, data_set->input, LOG_NEVER); xpath 1914 lib/pacemaker/pcmk_sched_actions.c free(xpath); xpath 689 lib/pacemaker/pcmk_simulate.c GString *xpath = g_string_sized_new(512); xpath 702 lib/pacemaker/pcmk_simulate.c pcmk__g_strcat(xpath, xpath 706 lib/pacemaker/pcmk_simulate.c fake_cib->cmds->remove(fake_cib, (const char *) xpath->str, NULL, xpath 709 lib/pacemaker/pcmk_simulate.c g_string_truncate(xpath, 0); xpath 710 lib/pacemaker/pcmk_simulate.c pcmk__g_strcat(xpath, xpath 714 lib/pacemaker/pcmk_simulate.c fake_cib->cmds->remove(fake_cib, (const char *) xpath->str, NULL, xpath 718 lib/pacemaker/pcmk_simulate.c g_string_free(xpath, TRUE); xpath 94 lib/pengine/failcounts.c char *xpath = crm_strdup_printf("//" XML_CIB_TAG_RESOURCE xpath 100 lib/pengine/failcounts.c xmlXPathObject *xpathObj = xpath_search(rsc->xml, xpath); xpath 103 lib/pengine/failcounts.c free(xpath); xpath 200 lib/pengine/unpack.c set_if_xpath(uint64_t flag, const char *xpath, pe_working_set_t *data_set) xpath 205 lib/pengine/unpack.c result = xpath_search(data_set->input, xpath); xpath 2609 lib/pengine/unpack.c GString *xpath = NULL; xpath 2615 lib/pengine/unpack.c xpath = g_string_sized_new(256); xpath 2616 lib/pengine/unpack.c pcmk__g_strcat(xpath, xpath 2624 lib/pengine/unpack.c pcmk__g_strcat(xpath, xpath 2629 lib/pengine/unpack.c pcmk__g_strcat(xpath, xpath 2633 lib/pengine/unpack.c g_string_append_c(xpath, ']'); xpath 2636 lib/pengine/unpack.c xml = get_xpath_object((const char *) xpath->str, data_set->input, xpath 2638 lib/pengine/unpack.c g_string_free(xpath, TRUE); xpath 2657 lib/pengine/unpack.c GString *xpath = NULL; xpath 2662 lib/pengine/unpack.c xpath = g_string_sized_new(256); xpath 2663 lib/pengine/unpack.c pcmk__g_strcat(xpath, xpath 2668 lib/pengine/unpack.c xml = get_xpath_object((const char *) xpath->str, data_set->input, xpath 2671 lib/pengine/unpack.c g_string_free(xpath, TRUE); xpath 2689 lib/pengine/unpack.c GString *xpath = g_string_sized_new(256); xpath 2691 lib/pengine/unpack.c pcmk__g_strcat(xpath, xpath 2696 lib/pengine/unpack.c search = xpath_search(rsc->cluster->input, (const char *) xpath->str); xpath 2699 lib/pengine/unpack.c g_string_free(xpath, TRUE); xpath 1925 tools/crm_mon.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 1952 tools/crm_mon.c crm_trace("Handling %s operation for %s %p, %s", op, xpath, match, name); xpath 1953 tools/crm_mon.c if(xpath == NULL) { xpath 1957 tools/crm_mon.c crm_debug("No result for %s operation to %s", op, xpath); xpath 1979 tools/crm_mon.c char *local_node = pcmk__xpath_node_id(xpath, "lrm"); xpath 1985 tools/crm_mon.c char *local_node = pcmk__xpath_node_id(xpath, "lrm"); xpath 1991 tools/crm_mon.c char *local_node = pcmk__xpath_node_id(xpath, "lrm"); xpath 1997 tools/crm_mon.c crm_trace("Ignoring %s operation for %s %p, %s", op, xpath, match, name); xpath 84 tools/crm_resource_runtime.c GString *xpath = NULL; xpath 101 tools/crm_resource_runtime.c xpath = g_string_sized_new(1024); xpath 102 tools/crm_resource_runtime.c pcmk__g_strcat(xpath, xpath 106 tools/crm_resource_runtime.c pcmk__g_strcat(xpath, "/", attr_set_type, NULL); xpath 108 tools/crm_resource_runtime.c pcmk__g_strcat(xpath, "[@" XML_ATTR_ID "=\"", set_name, "\"]", xpath 113 tools/crm_resource_runtime.c g_string_append(xpath, "//" XML_CIB_TAG_NVPAIR "["); xpath 115 tools/crm_resource_runtime.c pcmk__g_strcat(xpath, "@" XML_ATTR_ID "=\"", attr_id, "\"", NULL); xpath 120 tools/crm_resource_runtime.c g_string_append(xpath, " and "); xpath 122 tools/crm_resource_runtime.c pcmk__g_strcat(xpath, "@" XML_NVPAIR_ATTR_NAME "=\"", attr_name, "\"", xpath 125 tools/crm_resource_runtime.c g_string_append_c(xpath, ']'); xpath 127 tools/crm_resource_runtime.c rc = the_cib->cmds->query(the_cib, (const char *) xpath->str, &xml_search, xpath 155 tools/crm_resource_runtime.c g_string_free(xpath, TRUE); xpath 346 tools/crm_ticket.c GString *xpath = NULL; xpath 351 tools/crm_ticket.c xpath = g_string_sized_new(1024); xpath 352 tools/crm_ticket.c g_string_append(xpath, xpath 357 tools/crm_ticket.c pcmk__g_strcat(xpath, xpath 362 tools/crm_ticket.c rc = the_cib->cmds->query(the_cib, (const char *) xpath->str, &xml_search, xpath 365 tools/crm_ticket.c g_string_free(xpath, TRUE); xpath 389 tools/crm_ticket.c GString *xpath = NULL; xpath 401 tools/crm_ticket.c xpath = g_string_sized_new(1024); xpath 402 tools/crm_ticket.c pcmk__g_strcat(xpath, xpath_base, "/" XML_CONS_TAG_RSC_TICKET, NULL); xpath 405 tools/crm_ticket.c pcmk__g_strcat(xpath, xpath 410 tools/crm_ticket.c rc = the_cib->cmds->query(the_cib, (const char *) xpath->str, &xml_search, xpath 413 tools/crm_ticket.c g_string_free(xpath, TRUE);