xpathObj 1303 daemons/based/based_callbacks.c xmlXPathObject *xpathObj = xpath_search(diff, XPATH_CONFIG_CHANGE); xpathObj 1305 daemons/based/based_callbacks.c if (numXpathResults(xpathObj) > 0) { xpathObj 1308 daemons/based/based_callbacks.c freeXpathObject(xpathObj); xpathObj 379 daemons/controld/controld_schedulerd.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 390 daemons/controld/controld_schedulerd.c xpathObj = xpath_search(xml, xpath_string); xpathObj 391 daemons/controld/controld_schedulerd.c max = numXpathResults(xpathObj); xpathObj 395 daemons/controld/controld_schedulerd.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 433 daemons/controld/controld_schedulerd.c freeXpathObject(xpathObj); xpathObj 42 daemons/controld/controld_te_callbacks.c xmlXPathObject *xpathObj = NULL; xpathObj 58 daemons/controld/controld_te_callbacks.c xpathObj = xpathObj 61 daemons/controld/controld_te_callbacks.c if (numXpathResults(xpathObj) > 0) { xpathObj 62 daemons/controld/controld_te_callbacks.c xmlNode *aborted = getXpathResult(xpathObj, 0); xpathObj 69 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 72 daemons/controld/controld_te_callbacks.c xpathObj = xpathObj 75 daemons/controld/controld_te_callbacks.c if (numXpathResults(xpathObj) > 0) { xpathObj 76 daemons/controld/controld_te_callbacks.c xmlNode *aborted = getXpathResult(xpathObj, 0); xpathObj 82 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 85 daemons/controld/controld_te_callbacks.c xpathObj = xpathObj 89 daemons/controld/controld_te_callbacks.c if (numXpathResults(xpathObj) > 0) { xpathObj 90 daemons/controld/controld_te_callbacks.c xmlNode *aborted = getXpathResult(xpathObj, 0); xpathObj 97 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 100 daemons/controld/controld_te_callbacks.c xpathObj = xpath_search(diff, xpathObj 104 daemons/controld/controld_te_callbacks.c max = numXpathResults(xpathObj); xpathObj 126 daemons/controld/controld_te_callbacks.c xmlNode *lrm_resource = getXpathResult(xpathObj, 0); xpathObj 135 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 138 daemons/controld/controld_te_callbacks.c xpathObj = xpathObj 141 daemons/controld/controld_te_callbacks.c max = numXpathResults(xpathObj); xpathObj 146 daemons/controld/controld_te_callbacks.c xmlNode *rsc_op = getXpathResult(xpathObj, lpc); xpathObj 152 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 155 daemons/controld/controld_te_callbacks.c xpathObj = xpath_search(diff, "//" XML_TAG_DIFF_REMOVED "//" XML_LRM_TAG_RSC_OP); xpathObj 156 daemons/controld/controld_te_callbacks.c max = numXpathResults(xpathObj); xpathObj 160 daemons/controld/controld_te_callbacks.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 198 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 580 daemons/controld/controld_te_callbacks.c xmlXPathObject *xpathObj = NULL; xpathObj 614 daemons/controld/controld_te_callbacks.c xpathObj = xpath_search(xml_data, "//" XML_LRM_TAG_RSC_OP); xpathObj 615 daemons/controld/controld_te_callbacks.c nmatches = numXpathResults(xpathObj); xpathObj 620 daemons/controld/controld_te_callbacks.c xmlNode *rsc_op = getXpathResult(xpathObj, lpc); xpathObj 626 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 117 daemons/fenced/fenced_cib.c register_fencing_topology(xmlXPathObjectPtr xpathObj) xpathObj 119 daemons/fenced/fenced_cib.c int max = numXpathResults(xpathObj), lpc = 0; xpathObj 122 daemons/fenced/fenced_cib.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 151 daemons/fenced/fenced_cib.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 159 daemons/fenced/fenced_cib.c xpathObj = xpath_search(local_cib, xpath); xpathObj 160 daemons/fenced/fenced_cib.c register_fencing_topology(xpathObj); xpathObj 162 daemons/fenced/fenced_cib.c freeXpathObject(xpathObj); xpathObj 166 daemons/fenced/fenced_cib.c remove_cib_device(xmlXPathObjectPtr xpathObj) xpathObj 168 daemons/fenced/fenced_cib.c int max = numXpathResults(xpathObj), lpc = 0; xpathObj 173 daemons/fenced/fenced_cib.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 460 daemons/fenced/fenced_cib.c remove_fencing_topology(xmlXPathObjectPtr xpathObj) xpathObj 462 daemons/fenced/fenced_cib.c int max = numXpathResults(xpathObj), lpc = 0; xpathObj 465 daemons/fenced/fenced_cib.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 493 daemons/fenced/fenced_cib.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 502 daemons/fenced/fenced_cib.c xpathObj = xpath_search(msg, xpath); xpathObj 504 daemons/fenced/fenced_cib.c remove_fencing_topology(xpathObj); xpathObj 505 daemons/fenced/fenced_cib.c freeXpathObject(xpathObj); xpathObj 509 daemons/fenced/fenced_cib.c xpathObj = xpath_search(msg, xpath); xpathObj 511 daemons/fenced/fenced_cib.c register_fencing_topology(xpathObj); xpathObj 512 daemons/fenced/fenced_cib.c freeXpathObject(xpathObj); xpathObj 257 include/crm/common/xml.h void freeXpathObject(xmlXPathObjectPtr xpathObj); xpathObj 258 include/crm/common/xml.h xmlNode *getXpathResult(xmlXPathObjectPtr xpathObj, int index); xpathObj 259 include/crm/common/xml.h void dedupXpathResults(xmlXPathObjectPtr xpathObj); xpathObj 261 include/crm/common/xml.h static inline int numXpathResults(xmlXPathObjectPtr xpathObj) xpathObj 263 include/crm/common/xml.h if(xpathObj == NULL || xpathObj->nodesetval == NULL) { xpathObj 266 include/crm/common/xml.h return xpathObj->nodesetval->nodeNr; xpathObj 503 lib/cib/cib_ops.c xmlXPathObjectPtr xpathObj = xpath_search(*result_cib, "//@__delete__"); xpathObj 505 lib/cib/cib_ops.c if (xpathObj) { xpathObj 506 lib/cib/cib_ops.c max = numXpathResults(xpathObj); xpathObj 511 lib/cib/cib_ops.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 519 lib/cib/cib_ops.c freeXpathObject(xpathObj); xpathObj 794 lib/cib/cib_ops.c xmlXPathObject *xpathObj = NULL; xpathObj 810 lib/cib/cib_ops.c xpathObj = xpath_search(*diff, "//" XML_CIB_TAG_CONFIGURATION); xpathObj 811 lib/cib/cib_ops.c if (numXpathResults(xpathObj) > 0) { xpathObj 815 lib/cib/cib_ops.c freeXpathObject(xpathObj); xpathObj 822 lib/cib/cib_ops.c xpathObj = xpath_search(*diff, "//" XML_TAG_DIFF_REMOVED "//" XML_TAG_CIB); xpathObj 823 lib/cib/cib_ops.c max = numXpathResults(xpathObj); xpathObj 826 lib/cib/cib_ops.c xmlNode *top = getXpathResult(xpathObj, lpc); xpathObj 856 lib/cib/cib_ops.c freeXpathObject(xpathObj); xpathObj 870 lib/cib/cib_ops.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 875 lib/cib/cib_ops.c xpathObj = xpath_search(existing_cib, section); xpathObj 877 lib/cib/cib_ops.c xpathObj = xpath_search(*result_cib, section); xpathObj 880 lib/cib/cib_ops.c max = numXpathResults(xpathObj); xpathObj 898 lib/cib/cib_ops.c dedupXpathResults(xpathObj); xpathObj 903 lib/cib/cib_ops.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 1001 lib/cib/cib_ops.c freeXpathObject(xpathObj); xpathObj 227 lib/common/acl.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 239 lib/common/acl.c xpathObj = xpath_search(xml, acl->xpath); xpathObj 240 lib/common/acl.c max = numXpathResults(xpathObj); xpathObj 243 lib/common/acl.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 262 lib/common/acl.c freeXpathObject(xpathObj); xpathObj 467 lib/common/acl.c xmlXPathObjectPtr xpathObj = xpath_search(target, acl->xpath); xpathObj 469 lib/common/acl.c max = numXpathResults(xpathObj); xpathObj 471 lib/common/acl.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 476 lib/common/acl.c freeXpathObject(xpathObj); xpathObj 483 lib/common/acl.c freeXpathObject(xpathObj); xpathObj 39 lib/common/xpath.c freeXpathObject(xmlXPathObjectPtr xpathObj) xpathObj 41 lib/common/xpath.c int lpc, max = numXpathResults(xpathObj); xpathObj 43 lib/common/xpath.c if (xpathObj == NULL) { xpathObj 48 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[lpc] && xpathObj->nodesetval->nodeTab[lpc]->type != XML_NAMESPACE_DECL) { xpathObj 49 lib/common/xpath.c xpathObj->nodesetval->nodeTab[lpc] = NULL; xpathObj 54 lib/common/xpath.c xmlXPathFreeObject(xpathObj); xpathObj 58 lib/common/xpath.c getXpathResult(xmlXPathObjectPtr xpathObj, int index) xpathObj 61 lib/common/xpath.c int max = numXpathResults(xpathObj); xpathObj 64 lib/common/xpath.c CRM_CHECK(xpathObj != NULL, return NULL); xpathObj 70 lib/common/xpath.c } else if(xpathObj->nodesetval->nodeTab[index] == NULL) { xpathObj 75 lib/common/xpath.c match = xpathObj->nodesetval->nodeTab[index]; xpathObj 78 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[index]->type != XML_NAMESPACE_DECL) { xpathObj 80 lib/common/xpath.c xpathObj->nodesetval->nodeTab[index] = NULL; xpathObj 101 lib/common/xpath.c dedupXpathResults(xmlXPathObjectPtr xpathObj) xpathObj 103 lib/common/xpath.c int lpc, max = numXpathResults(xpathObj); xpathObj 105 lib/common/xpath.c if (xpathObj == NULL) { xpathObj 113 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[lpc] == NULL) { xpathObj 117 lib/common/xpath.c xml = xpathObj->nodesetval->nodeTab[lpc]->parent; xpathObj 123 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[lpc2] == xml) { xpathObj 124 lib/common/xpath.c xpathObj->nodesetval->nodeTab[lpc] = NULL; xpathObj 141 lib/common/xpath.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 152 lib/common/xpath.c xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx); xpathObj 154 lib/common/xpath.c return xpathObj; xpathObj 173 lib/common/xpath.c xmlXPathObjectPtr xpathObj = xpath_search(xml, xpath); xpathObj 174 lib/common/xpath.c int nresults = numXpathResults(xpathObj); xpathObj 178 lib/common/xpath.c xmlNode *result = getXpathResult(xpathObj, i); xpathObj 185 lib/common/xpath.c freeXpathObject(xpathObj); xpathObj 215 lib/common/xpath.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 223 lib/common/xpath.c xpathObj = xpath_search(xml_obj, xpath); xpathObj 225 lib/common/xpath.c max = numXpathResults(xpathObj); xpathObj 242 lib/common/xpath.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 257 lib/common/xpath.c result = getXpathResult(xpathObj, 0); xpathObj 260 lib/common/xpath.c freeXpathObject(xpathObj); xpathObj 549 lib/fencing/st_client.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 563 lib/fencing/st_client.c xpathObj = xpath_search(output, "//@agent"); xpathObj 564 lib/fencing/st_client.c if (xpathObj) { xpathObj 565 lib/fencing/st_client.c max = numXpathResults(xpathObj); xpathObj 568 lib/fencing/st_client.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 580 lib/fencing/st_client.c freeXpathObject(xpathObj); xpathObj 96 lib/fencing/st_rhcs.c xmlXPathObject *xpathObj = NULL; xpathObj 104 lib/fencing/st_rhcs.c xpathObj = xpath_search(metadata, xpath); xpathObj 105 lib/fencing/st_rhcs.c if (numXpathResults(xpathObj) > 0) { xpathObj 106 lib/fencing/st_rhcs.c xmlNode *tmp = getXpathResult(xpathObj, 0); xpathObj 110 lib/fencing/st_rhcs.c freeXpathObject(xpathObj); xpathObj 127 lib/fencing/st_rhcs.c xmlXPathObject *xpathObj = NULL; xpathObj 173 lib/fencing/st_rhcs.c xpathObj = xpath_search(xml, "//actions"); xpathObj 174 lib/fencing/st_rhcs.c if (numXpathResults(xpathObj) > 0) { xpathObj 175 lib/fencing/st_rhcs.c actions = getXpathResult(xpathObj, 0); xpathObj 177 lib/fencing/st_rhcs.c freeXpathObject(xpathObj); xpathObj 180 lib/fencing/st_rhcs.c xpathObj = xpath_search(xml, "//action[@name='stop']"); xpathObj 181 lib/fencing/st_rhcs.c if (numXpathResults(xpathObj) <= 0) { xpathObj 195 lib/fencing/st_rhcs.c freeXpathObject(xpathObj); xpathObj 101 lib/pengine/failcounts.c xmlXPathObject *xpathObj = xpath_search(rsc->xml, xpath); xpathObj 106 lib/pengine/failcounts.c if (xpathObj) { xpathObj 107 lib/pengine/failcounts.c int max = numXpathResults(xpathObj); xpathObj 111 lib/pengine/failcounts.c xmlNode *pref = getXpathResult(xpathObj, lpc); xpathObj 169 lib/pengine/failcounts.c freeXpathObject(xpathObj); xpathObj 2006 tools/crm_mon.c xmlXPathObject *xpathObj = xpath_search(msg, xpathObj 2009 tools/crm_mon.c int lpc = 0, max = numXpathResults(xpathObj); xpathObj 2012 tools/crm_mon.c xmlNode *rsc_op = getXpathResult(xpathObj, lpc); xpathObj 2016 tools/crm_mon.c freeXpathObject(xpathObj); xpathObj 326 tools/crm_resource.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 330 tools/crm_resource.c xpathObj = xpath_search(cib_constraints, "//" XML_CONS_TAG_RSC_LOCATION); xpathObj 332 tools/crm_resource.c for (ndx = 0; ndx < numXpathResults(xpathObj); ndx++) { xpathObj 333 tools/crm_resource.c xmlNode *match = getXpathResult(xpathObj, ndx); xpathObj 337 tools/crm_resource.c freeXpathObject(xpathObj); xpathObj 435 tools/crm_resource_ban.c xmlXPathObject *xpathObj = NULL; xpathObj 442 tools/crm_resource_ban.c xpathObj = xpath_search(cib_constraints, "//" XML_CONS_TAG_RSC_LOCATION); xpathObj 444 tools/crm_resource_ban.c for (i = 0; i < numXpathResults(xpathObj); i++) { xpathObj 445 tools/crm_resource_ban.c xmlNode *constraint_node = getXpathResult(xpathObj, i); xpathObj 497 tools/crm_resource_ban.c freeXpathObject(xpathObj);