xpath 182 daemons/attrd/attrd_cib.c char *xpath = crm_strdup_printf(XPATH_TRANSIENT, attrd_cluster->uname); xpath 185 daemons/attrd/attrd_cib.c xpath); xpath 187 daemons/attrd/attrd_cib.c call_id = the_cib->cmds->remove(the_cib, xpath, NULL, cib_xpath); xpath 188 daemons/attrd/attrd_cib.c the_cib->cmds->register_callback_full(the_cib, call_id, 120, FALSE, xpath, xpath 376 daemons/attrd/attrd_cib.c char *xpath = crm_strdup_printf("/" XML_TAG_CIB xpath 389 daemons/attrd/attrd_cib.c int rc = the_cib->cmds->remove(the_cib, xpath, NULL, xpath 392 daemons/attrd/attrd_cib.c free(xpath); xpath 319 daemons/controld/controld_cib.c char **xpath, char **desc) xpath 329 daemons/controld/controld_cib.c *xpath = crm_strdup_printf(XPATH_NODE_LRM, uname); xpath 333 daemons/controld/controld_cib.c *xpath = crm_strdup_printf(XPATH_NODE_LRM_UNLOCKED, xpath 338 daemons/controld/controld_cib.c *xpath = crm_strdup_printf(XPATH_NODE_ATTRS, uname); xpath 342 daemons/controld/controld_cib.c *xpath = crm_strdup_printf(XPATH_NODE_ALL, uname); xpath 346 daemons/controld/controld_cib.c *xpath = crm_strdup_printf(XPATH_NODE_ALL_UNLOCKED, xpath 374 daemons/controld/controld_cib.c char *xpath = NULL; xpath 380 daemons/controld/controld_cib.c controld_node_state_deletion_strings(uname, section, &xpath, &desc); xpath 384 daemons/controld/controld_cib.c cib_rc = cib->cmds->remove(cib, xpath, NULL, options); xpath 387 daemons/controld/controld_cib.c desc, cib_rc, xpath); xpath 390 daemons/controld/controld_cib.c free(xpath); xpath 417 daemons/controld/controld_cib.c char *xpath = NULL; xpath 431 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_RESOURCE_HISTORY, node, rsc_id); xpath 434 daemons/controld/controld_cib.c rc = cib->cmds->remove(cib, xpath, NULL, call_options|cib_xpath); xpath 444 daemons/controld/controld_cib.c free(xpath); xpath 458 daemons/controld/controld_cib.c desc, rc, xpath); xpath 463 daemons/controld/controld_cib.c free(xpath); xpath 1021 daemons/controld/controld_cib.c char *xpath = NULL; xpath 1028 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_HISTORY_ID, node, rsc_id, xpath 1033 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_HISTORY_ORIG, node, rsc_id, xpath 1039 daemons/controld/controld_cib.c controld_globals.cib_conn->cmds->remove(controld_globals.cib_conn, xpath, xpath 1041 daemons/controld/controld_cib.c free(xpath); xpath 1057 daemons/controld/controld_cib.c char *xpath = NULL; xpath 1062 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_HISTORY_CALL, node, rsc_id, key, xpath 1065 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_HISTORY_ID, node, rsc_id, key); xpath 1067 daemons/controld/controld_cib.c controld_globals.cib_conn->cmds->remove(controld_globals.cib_conn, xpath, xpath 1069 daemons/controld/controld_cib.c free(xpath); xpath 62 daemons/controld/controld_cib.h char **xpath, char **desc); xpath 706 daemons/controld/controld_join_dc.c char *xpath = NULL; xpath 768 daemons/controld/controld_join_dc.c controld_node_state_deletion_strings(join_from, section, &xpath, NULL); xpath 770 daemons/controld/controld_join_dc.c rc = cib->cmds->remove(cib, xpath, NULL, xpath 827 daemons/controld/controld_join_dc.c free(xpath); xpath 325 daemons/controld/controld_membership.c GString *xpath = NULL; xpath 333 daemons/controld/controld_membership.c if (xpath == NULL) { xpath 334 daemons/controld/controld_membership.c xpath = g_string_sized_new(512); xpath 336 daemons/controld/controld_membership.c g_string_truncate(xpath, 0); xpath 345 daemons/controld/controld_membership.c pcmk__g_strcat(xpath, xpath 352 daemons/controld/controld_membership.c (const char *) xpath->str, xpath 360 daemons/controld/controld_membership.c if (xpath != NULL) { xpath 361 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 45 daemons/fenced/fenced_cib.c GString *xpath = NULL; xpath 56 daemons/fenced/fenced_cib.c xpath = g_string_sized_new(256); xpath 57 daemons/fenced/fenced_cib.c pcmk__g_strcat(xpath, xpath 64 daemons/fenced/fenced_cib.c match = get_xpath_object((const char *) xpath->str, local_cib, LOG_NEVER); xpath 66 daemons/fenced/fenced_cib.c g_string_free(xpath, TRUE); xpath 152 daemons/fenced/fenced_cib.c const char *xpath = "//" XML_TAG_FENCING_LEVEL; xpath 159 daemons/fenced/fenced_cib.c xpathObj = xpath_search(local_cib, xpath); xpath 323 daemons/fenced/fenced_cib.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 328 daemons/fenced/fenced_cib.c strstr(xpath, "/"XML_CIB_TAG_STATUS)) { xpath 330 daemons/fenced/fenced_cib.c } else if (pcmk__str_eq(op, "delete", pcmk__str_casei) && strstr(xpath, "/"XML_CIB_TAG_RESOURCE)) { xpath 335 daemons/fenced/fenced_cib.c if (strstr(xpath, XML_TAG_ATTR_SETS) || xpath 336 daemons/fenced/fenced_cib.c strstr(xpath, XML_TAG_META_SETS)) { xpath 342 daemons/fenced/fenced_cib.c pcmk__str_update(&mutable, xpath); xpath 358 daemons/fenced/fenced_cib.c } else if (strstr(xpath, "/"XML_CIB_TAG_RESOURCES) || xpath 359 daemons/fenced/fenced_cib.c strstr(xpath, "/"XML_CIB_TAG_CONSTRAINTS) || xpath 360 daemons/fenced/fenced_cib.c strstr(xpath, "/"XML_CIB_TAG_RSCCONFIG)) { xpath 361 daemons/fenced/fenced_cib.c shortpath = strrchr(xpath, '/'); CRM_ASSERT(shortpath); xpath 492 daemons/fenced/fenced_cib.c const char *xpath; xpath 501 daemons/fenced/fenced_cib.c xpath = "//" F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_REMOVED "//" XML_TAG_FENCING_LEVEL; xpath 502 daemons/fenced/fenced_cib.c xpathObj = xpath_search(msg, xpath); xpath 508 daemons/fenced/fenced_cib.c xpath = "//" F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_ADDED "//" XML_TAG_FENCING_LEVEL; xpath 509 daemons/fenced/fenced_cib.c xpathObj = xpath_search(msg, xpath); xpath 524 daemons/fenced/fenced_cib.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 529 daemons/fenced/fenced_cib.c } else if(strstr(xpath, "/" XML_TAG_FENCING_LEVEL) != NULL) { xpath 532 daemons/fenced/fenced_cib.c crm_trace("Handling %s operation %d.%d.%d for %s", op, add[0], add[1], add[2], xpath); xpath 550 daemons/fenced/fenced_cib.c op, add[0], add[1], add[2], xpath); xpath 555 daemons/fenced/fenced_cib.c } else if (strstr(xpath, "/" XML_TAG_FENCING_TOPOLOGY) != NULL) { xpath 558 daemons/fenced/fenced_cib.c op, add[0], add[1], add[2], xpath); xpath 562 daemons/fenced/fenced_cib.c } else if (strstr(xpath, "/" XML_CIB_TAG_CONFIGURATION)) { xpath 566 daemons/fenced/fenced_cib.c op, add[0], add[1], add[2], xpath); xpath 570 daemons/fenced/fenced_cib.c op, add[0], add[1], add[2], xpath); xpath 577 daemons/fenced/fenced_cib.c op, add[0], add[1], add[2], xpath); xpath 901 daemons/fenced/fenced_commands.c xmlXPathObjectPtr xpath = NULL; xpath 911 daemons/fenced/fenced_commands.c xpath = xpath_search(xml, "//parameter[@name='nodeid']"); xpath 912 daemons/fenced/fenced_commands.c if (numXpathResults(xpath) <= 0) { xpath 913 daemons/fenced/fenced_commands.c freeXpathObject(xpath); xpath 917 daemons/fenced/fenced_commands.c freeXpathObject(xpath); xpath 924 daemons/fenced/fenced_commands.c xmlXPathObjectPtr xpath = NULL; xpath 932 daemons/fenced/fenced_commands.c xpath = xpath_search(device->agent_metadata, "//action"); xpath 933 daemons/fenced/fenced_commands.c max = numXpathResults(xpath); xpath 936 daemons/fenced/fenced_commands.c freeXpathObject(xpath); xpath 942 daemons/fenced/fenced_commands.c xmlNode *match = getXpathResult(xpath, lpc); xpath 973 daemons/fenced/fenced_commands.c freeXpathObject(xpath); xpath 168 include/crm/common/xml.h xmlNode *get_xpath_object(const char *xpath, xmlNode * xml_obj, int error_level); xpath 169 include/crm/common/xml.h xmlNode *get_xpath_object_relative(const char *xpath, xmlNode * xml_obj, int error_level); xpath 253 include/crm/common/xml.h void crm_foreach_xpath_result(xmlNode *xml, const char *xpath, xpath 384 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 134 lib/cib/cib_utils.c char *xpath = crm_strdup_printf(XPATH_DIFF_V1 "//%s", xpath 136 lib/cib/cib_utils.c xmlXPathObject *xpath_obj = xpath_search(patchset, xpath); xpath 138 lib/cib/cib_utils.c free(xpath); xpath 29 lib/common/acl.c gchar *xpath; xpath 38 lib/common/acl.c g_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 = g_strdup(xpath); xpath 82 lib/common/acl.c xml->name, acl->xpath); xpath 103 lib/common/acl.c acl->xpath = buf->str; xpath 107 lib/common/acl.c xml->name, acl->xpath); xpath 239 lib/common/acl.c xpathObj = xpath_search(xml, acl->xpath); xpath 253 lib/common/acl.c acl_to_text(acl->mode), path->str, acl->xpath); xpath 260 lib/common/acl.c acl_to_text(acl->mode), acl->xpath, max, xpath 465 lib/common/acl.c } else if (acl->xpath) { xpath 467 lib/common/acl.c xmlXPathObjectPtr xpathObj = xpath_search(target, acl->xpath); xpath 481 lib/common/acl.c user, acl->xpath, max, xpath 656 lib/common/acl.c GString *xpath = NULL; xpath 662 lib/common/acl.c xpath = pcmk__element_xpath(xml); xpath 664 lib/common/acl.c pcmk__g_strcat(xpath, "[@", name, "]", NULL); xpath 671 lib/common/acl.c (const char *) xpath->str); xpath 672 lib/common/acl.c g_string_free(xpath, TRUE); xpath 698 lib/common/acl.c xpath = pcmk__element_xpath(xml); xpath 700 lib/common/acl.c pcmk__g_strcat(xpath, "[@", name, "]", NULL); xpath 708 lib/common/acl.c (const char *) xpath->str); xpath 709 lib/common/acl.c g_string_free(xpath, TRUE); xpath 718 lib/common/acl.c xpath = pcmk__element_xpath(xml); xpath 720 lib/common/acl.c pcmk__g_strcat(xpath, "[@", name, "]", NULL); xpath 727 lib/common/acl.c (const char *) xpath->str); xpath 728 lib/common/acl.c g_string_free(xpath, TRUE); xpath 135 lib/common/cib.c const char *xpath = pcmk_cib_xpath_for(element); xpath 138 lib/common/cib.c return ((xpath != NULL)? (xpath + 1) : NULL); xpath 54 lib/common/patchset.c GString *xpath = pcmk__element_xpath(xml->parent); xpath 56 lib/common/patchset.c if (xpath != NULL) { xpath 62 lib/common/patchset.c crm_xml_add(change, XML_DIFF_PATH, (const char *) xpath->str); xpath 65 lib/common/patchset.c g_string_free(xpath, TRUE); xpath 82 lib/common/patchset.c GString *xpath = pcmk__element_xpath(xml); xpath 84 lib/common/patchset.c if (xpath != NULL) { xpath 88 lib/common/patchset.c crm_xml_add(change, XML_DIFF_PATH, (const char *) xpath->str); xpath 91 lib/common/patchset.c g_string_free(xpath, TRUE); xpath 133 lib/common/patchset.c GString *xpath = pcmk__element_xpath(xml); xpath 138 lib/common/patchset.c if (xpath != NULL) { xpath 142 lib/common/patchset.c crm_xml_add(change, XML_DIFF_PATH, (const char *) xpath->str); xpath 145 lib/common/patchset.c g_string_free(xpath, TRUE); xpath 923 lib/common/patchset.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 936 lib/common/patchset.c match = search_v2_xpath(xml, xpath, position); xpath 937 lib/common/patchset.c crm_trace("Performing %s on %s with %p", op, xpath, match); xpath 940 lib/common/patchset.c crm_debug("No %s match for %s in %p", op, xpath, xml->doc); xpath 944 lib/common/patchset.c crm_err("No %s match for %s in %p", op, xpath, xml->doc); xpath 1001 lib/common/patchset.c const char *xpath = NULL; xpath 1006 lib/common/patchset.c xpath = crm_element_value(change, XML_DIFF_PATH); xpath 1008 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 730 lib/common/xml.c GString *xpath = NULL; xpath 733 lib/common/xml.c xpath = pcmk__element_xpath(child); xpath 736 lib/common/xml.c __LINE__, 0, (const char *) xpath->str, xpath 738 lib/common/xml.c g_string_free(xpath, TRUE); xpath 745 lib/common/xml.c GString *xpath = pcmk__element_xpath(child); xpath 747 lib/common/xml.c if (xpath != NULL) { xpath 751 lib/common/xml.c (const char *) xpath->str, child, doc); xpath 754 lib/common/xml.c deleted_obj->path = strdup((const char *) xpath->str); xpath 757 lib/common/xml.c g_string_free(xpath, TRUE); xpath 170 lib/common/xpath.c crm_foreach_xpath_result(xmlNode *xml, const char *xpath, xpath 173 lib/common/xpath.c xmlXPathObjectPtr xpathObj = xpath_search(xml, xpath); xpath 189 lib/common/xpath.c get_xpath_object_relative(const char *xpath, xmlNode * xml_obj, int error_level) xpath 195 lib/common/xpath.c if (xml_obj == NULL || xpath == NULL) { xpath 201 lib/common/xpath.c xpath_full = crm_strdup_printf("%s%s", xpath_prefix, xpath); xpath 211 lib/common/xpath.c get_xpath_object(const char *xpath, xmlNode * xml_obj, int error_level) xpath 219 lib/common/xpath.c if (xpath == NULL) { xpath 223 lib/common/xpath.c xpathObj = xpath_search(xml_obj, xpath); xpath 230 lib/common/xpath.c xpath, pcmk__s(nodePath, "unknown path")); xpath 239 lib/common/xpath.c xpath, pcmk__s(nodePath, "unknown path")); xpath 248 lib/common/xpath.c xpath, lpc, xpath 281 lib/common/xpath.c GString *xpath = NULL; xpath 289 lib/common/xpath.c xpath = pcmk__element_xpath(parent); xpath 290 lib/common/xpath.c if (xpath == NULL) { xpath 291 lib/common/xpath.c xpath = g_string_sized_new(256); xpath 296 lib/common/xpath.c g_string_append_c(xpath, '/'); xpath 298 lib/common/xpath.c g_string_append(xpath, (const gchar *) xml->name); xpath 300 lib/common/xpath.c pcmk__g_strcat(xpath, "/", (const char *) xml->name, NULL); xpath 305 lib/common/xpath.c pcmk__g_strcat(xpath, "[@" XML_ATTR_ID "='", id, "']", NULL); xpath 308 lib/common/xpath.c return xpath; xpath 312 lib/common/xpath.c pcmk__xpath_node_id(const char *xpath, const char *node) xpath 319 lib/common/xpath.c if (node == NULL || xpath == NULL) { xpath 324 lib/common/xpath.c start = strstr(xpath, patt); xpath 2403 lib/fencing/st_client.c xmlXPathObjectPtr xpath = NULL; xpath 2409 lib/fencing/st_client.c xpath = xpath_search(metadata, "//parameter"); xpath 2410 lib/fencing/st_client.c max = numXpathResults(xpath); xpath 2413 lib/fencing/st_client.c freeXpathObject(xpath); xpath 2419 lib/fencing/st_client.c xmlNode *match = getXpathResult(xpath, lpc); xpath 2438 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 127 lib/pacemaker/pcmk_injections.c char *xpath = crm_strdup_printf(XPATH_NODE_CONFIG, node); xpath 129 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath, NULL, xpath 145 lib/pacemaker/pcmk_injections.c free(xpath); xpath 227 lib/pacemaker/pcmk_injections.c char *xpath = crm_strdup_printf(XPATH_NODE_STATE, node); xpath 235 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, xpath 240 lib/pacemaker/pcmk_injections.c xpath); xpath 287 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, xpath 294 lib/pacemaker/pcmk_injections.c free(xpath); xpath 354 lib/pacemaker/pcmk_injections.c char *xpath = crm_strdup_printf(XPATH_RSC_HISTORY, node, resource); xpath 355 lib/pacemaker/pcmk_injections.c xmlNode *match = get_xpath_object(xpath, cib_node, LOG_TRACE); xpath 357 lib/pacemaker/pcmk_injections.c free(xpath); xpath 463 lib/pacemaker/pcmk_injections.c GString *xpath = g_string_sized_new(256); xpath 468 lib/pacemaker/pcmk_injections.c g_string_append(xpath, xpath 473 lib/pacemaker/pcmk_injections.c pcmk__g_strcat(xpath, xpath 477 lib/pacemaker/pcmk_injections.c rc = the_cib->cmds->query(the_cib, (const char *) xpath->str, &xml_search, xpath 479 lib/pacemaker/pcmk_injections.c g_string_free(xpath, TRUE); xpath 683 lib/pacemaker/pcmk_injections.c char *xpath = NULL; xpath 695 lib/pacemaker/pcmk_injections.c xpath = crm_strdup_printf("//node_state[@uname='%s']/%s", xpath 697 lib/pacemaker/pcmk_injections.c cib->cmds->remove(cib, xpath, NULL, xpath 699 lib/pacemaker/pcmk_injections.c free(xpath); xpath 701 lib/pacemaker/pcmk_injections.c xpath = crm_strdup_printf("//node_state[@uname='%s']/%s", xpath 703 lib/pacemaker/pcmk_injections.c cib->cmds->remove(cib, xpath, NULL, xpath 705 lib/pacemaker/pcmk_injections.c free(xpath); xpath 33 lib/pacemaker/pcmk_resource.c char *xpath = NULL; xpath 42 lib/pacemaker/pcmk_resource.c xpath = crm_strdup_printf(XPATH_OP_HISTORY, node->details->uname, rsc->id); xpath 43 lib/pacemaker/pcmk_resource.c history = get_xpath_object(xpath, rsc->cluster->input, LOG_NEVER); xpath 44 lib/pacemaker/pcmk_resource.c free(xpath); xpath 127 lib/pacemaker/pcmk_rule.c char *xpath = NULL; xpath 147 lib/pacemaker/pcmk_rule.c xpath = crm_strdup_printf(XPATH_NODE_RULE, rule_id); xpath 148 lib/pacemaker/pcmk_rule.c xpath_obj = xpath_search(cib_constraints, xpath); xpath 151 lib/pacemaker/pcmk_rule.c free(xpath); xpath 166 lib/pacemaker/pcmk_rule.c xpath = crm_strdup_printf(XPATH_NODE_RULE "//date_expression", rule_id); xpath 167 lib/pacemaker/pcmk_rule.c xpath_obj = xpath_search(cib_constraints, xpath); xpath 170 lib/pacemaker/pcmk_rule.c free(xpath); xpath 183 lib/pacemaker/pcmk_rule.c xpath = crm_strdup_printf(XPATH_NODE_RULE "//date_expression[" xpath 186 lib/pacemaker/pcmk_rule.c xpath_obj = xpath_search(cib_constraints, xpath); xpath 189 lib/pacemaker/pcmk_rule.c free(xpath); xpath 194 lib/pacemaker/pcmk_rule.c xpath = crm_strdup_printf(XPATH_NODE_RULE "//date_expression[" xpath 198 lib/pacemaker/pcmk_rule.c xpath_obj = xpath_search(cib_constraints, xpath); xpath 201 lib/pacemaker/pcmk_rule.c free(xpath); xpath 1911 lib/pacemaker/pcmk_sched_actions.c char *xpath = NULL; xpath 1914 lib/pacemaker/pcmk_sched_actions.c xpath = crm_strdup_printf(XPATH_NODE_HISTORY, node->details->uname); xpath 1915 lib/pacemaker/pcmk_sched_actions.c history = get_xpath_object(xpath, scheduler->input, LOG_NEVER); xpath 1916 lib/pacemaker/pcmk_sched_actions.c free(xpath); xpath 694 lib/pacemaker/pcmk_simulate.c GString *xpath = g_string_sized_new(512); xpath 707 lib/pacemaker/pcmk_simulate.c pcmk__g_strcat(xpath, xpath 711 lib/pacemaker/pcmk_simulate.c fake_cib->cmds->remove(fake_cib, (const char *) xpath->str, NULL, xpath 714 lib/pacemaker/pcmk_simulate.c g_string_truncate(xpath, 0); xpath 715 lib/pacemaker/pcmk_simulate.c pcmk__g_strcat(xpath, xpath 719 lib/pacemaker/pcmk_simulate.c fake_cib->cmds->remove(fake_cib, (const char *) xpath->str, NULL, xpath 723 lib/pacemaker/pcmk_simulate.c g_string_free(xpath, TRUE); xpath 95 lib/pengine/failcounts.c char *xpath = crm_strdup_printf("//" XML_CIB_TAG_RESOURCE xpath 101 lib/pengine/failcounts.c xmlXPathObject *xpathObj = xpath_search(rsc->xml, xpath); xpath 104 lib/pengine/failcounts.c free(xpath); xpath 198 lib/pengine/unpack.c set_if_xpath(uint64_t flag, const char *xpath, pcmk_scheduler_t *scheduler) xpath 203 lib/pengine/unpack.c result = xpath_search(scheduler->input, xpath); xpath 2837 lib/pengine/unpack.c GString *xpath = NULL; xpath 2843 lib/pengine/unpack.c xpath = g_string_sized_new(256); xpath 2844 lib/pengine/unpack.c pcmk__g_strcat(xpath, xpath 2852 lib/pengine/unpack.c pcmk__g_strcat(xpath, xpath 2858 lib/pengine/unpack.c pcmk__g_strcat(xpath, xpath 2862 lib/pengine/unpack.c g_string_append_c(xpath, ']'); xpath 2865 lib/pengine/unpack.c xml = get_xpath_object((const char *) xpath->str, scheduler->input, xpath 2867 lib/pengine/unpack.c g_string_free(xpath, TRUE); xpath 2886 lib/pengine/unpack.c GString *xpath = NULL; xpath 2891 lib/pengine/unpack.c xpath = g_string_sized_new(256); xpath 2892 lib/pengine/unpack.c pcmk__g_strcat(xpath, xpath 2897 lib/pengine/unpack.c xml = get_xpath_object((const char *) xpath->str, scheduler->input, xpath 2900 lib/pengine/unpack.c g_string_free(xpath, TRUE); xpath 2918 lib/pengine/unpack.c GString *xpath = g_string_sized_new(256); xpath 2920 lib/pengine/unpack.c pcmk__g_strcat(xpath, xpath 2925 lib/pengine/unpack.c search = xpath_search(rsc->cluster->input, (const char *) xpath->str); xpath 2928 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 347 tools/crm_ticket.c GString *xpath = NULL; xpath 352 tools/crm_ticket.c xpath = g_string_sized_new(1024); xpath 353 tools/crm_ticket.c g_string_append(xpath, xpath 358 tools/crm_ticket.c pcmk__g_strcat(xpath, xpath 363 tools/crm_ticket.c rc = the_cib->cmds->query(the_cib, (const char *) xpath->str, &xml_search, xpath 366 tools/crm_ticket.c g_string_free(xpath, TRUE); xpath 390 tools/crm_ticket.c GString *xpath = NULL; xpath 402 tools/crm_ticket.c xpath = g_string_sized_new(1024); xpath 403 tools/crm_ticket.c pcmk__g_strcat(xpath, xpath_base, "/" XML_CONS_TAG_RSC_TICKET, NULL); xpath 406 tools/crm_ticket.c pcmk__g_strcat(xpath, xpath 411 tools/crm_ticket.c rc = the_cib->cmds->query(the_cib, (const char *) xpath->str, &xml_search, xpath 414 tools/crm_ticket.c g_string_free(xpath, TRUE);