xpathObj 233 crmd/pengine.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 240 crmd/pengine.c xpathObj = xpath_search(xml, xpath_string); xpathObj 241 crmd/pengine.c max = numXpathResults(xpathObj); xpathObj 245 crmd/pengine.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 280 crmd/pengine.c freeXpathObject(xpathObj); xpathObj 72 crmd/te_callbacks.c xmlXPathObject *xpathObj = NULL; xpathObj 83 crmd/te_callbacks.c xpathObj = xpathObj 86 crmd/te_callbacks.c if (numXpathResults(xpathObj) > 0) { xpathObj 87 crmd/te_callbacks.c xmlNode *aborted = getXpathResult(xpathObj, 0); xpathObj 93 crmd/te_callbacks.c freeXpathObject(xpathObj); xpathObj 96 crmd/te_callbacks.c xpathObj = xpathObj 99 crmd/te_callbacks.c if (numXpathResults(xpathObj) > 0) { xpathObj 100 crmd/te_callbacks.c xmlNode *aborted = getXpathResult(xpathObj, 0); xpathObj 105 crmd/te_callbacks.c freeXpathObject(xpathObj); xpathObj 108 crmd/te_callbacks.c xpathObj = xpathObj 112 crmd/te_callbacks.c max = numXpathResults(xpathObj); xpathObj 115 crmd/te_callbacks.c xmlNode *attr = getXpathResult(xpathObj, lpc); xpathObj 130 crmd/te_callbacks.c freeXpathObject(xpathObj); xpathObj 133 crmd/te_callbacks.c xpathObj = xpathObj 137 crmd/te_callbacks.c if (numXpathResults(xpathObj) > 0) { xpathObj 138 crmd/te_callbacks.c xmlNode *aborted = getXpathResult(xpathObj, 0); xpathObj 144 crmd/te_callbacks.c freeXpathObject(xpathObj); xpathObj 154 crmd/te_callbacks.c xpathObj = NULL; xpathObj 156 crmd/te_callbacks.c xpathObj = xpathObj 162 crmd/te_callbacks.c max = numXpathResults(xpathObj); xpathObj 172 crmd/te_callbacks.c freeXpathObject(xpathObj); xpathObj 175 crmd/te_callbacks.c xpathObj = xpathObj 178 crmd/te_callbacks.c if (numXpathResults(xpathObj)) { xpathObj 186 crmd/te_callbacks.c int lpc = 0, max = numXpathResults(xpathObj); xpathObj 189 crmd/te_callbacks.c xmlNode *rsc_op = getXpathResult(xpathObj, lpc); xpathObj 195 crmd/te_callbacks.c freeXpathObject(xpathObj); xpathObj 198 crmd/te_callbacks.c xpathObj = xpath_search(diff, "//" XML_TAG_DIFF_REMOVED "//" XML_LRM_TAG_RSC_OP); xpathObj 199 crmd/te_callbacks.c max = numXpathResults(xpathObj); xpathObj 205 crmd/te_callbacks.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 241 crmd/te_callbacks.c freeXpathObject(xpathObj); xpathObj 601 crmd/te_callbacks.c xmlXPathObject *xpathObj = NULL; xpathObj 606 crmd/te_callbacks.c xpathObj = xpath_search(xml_data, "//" XML_LRM_TAG_RSC_OP); xpathObj 607 crmd/te_callbacks.c if (numXpathResults(xpathObj)) { xpathObj 608 crmd/te_callbacks.c int lpc = 0, max = numXpathResults(xpathObj); xpathObj 611 crmd/te_callbacks.c xmlNode *rsc_op = getXpathResult(xpathObj, lpc); xpathObj 616 crmd/te_callbacks.c freeXpathObject(xpathObj); xpathObj 620 crmd/te_callbacks.c freeXpathObject(xpathObj); xpathObj 444 fencing/main.c remove_cib_device(xmlXPathObjectPtr xpathObj) xpathObj 446 fencing/main.c int max = numXpathResults(xpathObj), lpc = 0; xpathObj 451 fencing/main.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 493 fencing/main.c remove_fencing_topology(xmlXPathObjectPtr xpathObj) xpathObj 495 fencing/main.c int max = numXpathResults(xpathObj), lpc = 0; xpathObj 498 fencing/main.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 522 fencing/main.c register_fencing_topology(xmlXPathObjectPtr xpathObj) xpathObj 524 fencing/main.c int max = numXpathResults(xpathObj), lpc = 0; xpathObj 527 fencing/main.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 555 fencing/main.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 566 fencing/main.c xpathObj = xpath_search(local_cib, xpath); xpathObj 567 fencing/main.c register_fencing_topology(xpathObj); xpathObj 569 fencing/main.c freeXpathObject(xpathObj); xpathObj 931 fencing/main.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 940 fencing/main.c xpathObj = xpath_search(msg, xpath); xpathObj 942 fencing/main.c remove_fencing_topology(xpathObj); xpathObj 943 fencing/main.c freeXpathObject(xpathObj); xpathObj 947 fencing/main.c xpathObj = xpath_search(msg, xpath); xpathObj 949 fencing/main.c register_fencing_topology(xpathObj); xpathObj 950 fencing/main.c freeXpathObject(xpathObj); xpathObj 362 include/crm/common/xml.h void freeXpathObject(xmlXPathObjectPtr xpathObj); xpathObj 363 include/crm/common/xml.h xmlNode *getXpathResult(xmlXPathObjectPtr xpathObj, int index); xpathObj 364 include/crm/common/xml.h void dedupXpathResults(xmlXPathObjectPtr xpathObj); xpathObj 366 include/crm/common/xml.h static inline int numXpathResults(xmlXPathObjectPtr xpathObj) xpathObj 368 include/crm/common/xml.h if(xpathObj == NULL || xpathObj->nodesetval == NULL) { xpathObj 371 include/crm/common/xml.h return xpathObj->nodesetval->nodeNr; xpathObj 367 lib/cib/cib_ops.c xmlXPathObjectPtr xpathObj = xpath_search(*result_cib, "//@__delete__"); xpathObj 369 lib/cib/cib_ops.c if (xpathObj) { xpathObj 370 lib/cib/cib_ops.c max = numXpathResults(xpathObj); xpathObj 375 lib/cib/cib_ops.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 383 lib/cib/cib_ops.c freeXpathObject(xpathObj); xpathObj 612 lib/cib/cib_ops.c xmlXPathObject *xpathObj = NULL; xpathObj 629 lib/cib/cib_ops.c xpathObj = xpath_search(*diff, "//" XML_CIB_TAG_CONFIGURATION); xpathObj 630 lib/cib/cib_ops.c if (numXpathResults(xpathObj) > 0) { xpathObj 634 lib/cib/cib_ops.c freeXpathObject(xpathObj); xpathObj 641 lib/cib/cib_ops.c xpathObj = xpath_search(*diff, "//" XML_TAG_DIFF_REMOVED "//" XML_TAG_CIB); xpathObj 642 lib/cib/cib_ops.c max = numXpathResults(xpathObj); xpathObj 645 lib/cib/cib_ops.c xmlNode *top = getXpathResult(xpathObj, lpc); xpathObj 675 lib/cib/cib_ops.c freeXpathObject(xpathObj); xpathObj 688 lib/cib/cib_ops.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 693 lib/cib/cib_ops.c xpathObj = xpath_search(existing_cib, section); xpathObj 695 lib/cib/cib_ops.c xpathObj = xpath_search(*result_cib, section); xpathObj 698 lib/cib/cib_ops.c max = numXpathResults(xpathObj); xpathObj 714 lib/cib/cib_ops.c dedupXpathResults(xpathObj); xpathObj 719 lib/cib/cib_ops.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 827 lib/cib/cib_ops.c freeXpathObject(xpathObj); xpathObj 824 lib/cib/cib_utils.c xmlXPathObject *xpathObj = xpath_search(diff, XPATH_CONFIG_CHANGE); xpathObj 826 lib/cib/cib_utils.c if (numXpathResults(xpathObj) > 0) { xpathObj 829 lib/cib/cib_utils.c freeXpathObject(xpathObj); xpathObj 239 lib/common/alerts.c xmlXPathObject *xpathObj = NULL; xpathObj 253 lib/common/alerts.c if ((xpathObj = xpath_search(msg, diff)) != NULL) { xpathObj 254 lib/common/alerts.c freeXpathObject(xpathObj); xpathObj 544 lib/common/xml.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 557 lib/common/xml.c xpathObj = xpath_search(xml, acl->xpath); xpathObj 558 lib/common/xml.c max = numXpathResults(xpathObj); xpathObj 561 lib/common/xml.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 584 lib/common/xml.c freeXpathObject(xpathObj); xpathObj 734 lib/common/xml.c xmlXPathObjectPtr xpathObj = xpath_search(target, acl->xpath); xpathObj 736 lib/common/xml.c max = numXpathResults(xpathObj); xpathObj 738 lib/common/xml.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 743 lib/common/xml.c freeXpathObject(xpathObj); xpathObj 748 lib/common/xml.c freeXpathObject(xpathObj); xpathObj 45 lib/common/xpath.c freeXpathObject(xmlXPathObjectPtr xpathObj) xpathObj 47 lib/common/xpath.c int lpc, max = numXpathResults(xpathObj); xpathObj 49 lib/common/xpath.c if (xpathObj == NULL) { xpathObj 54 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[lpc] && xpathObj->nodesetval->nodeTab[lpc]->type != XML_NAMESPACE_DECL) { xpathObj 55 lib/common/xpath.c xpathObj->nodesetval->nodeTab[lpc] = NULL; xpathObj 60 lib/common/xpath.c xmlXPathFreeObject(xpathObj); xpathObj 64 lib/common/xpath.c getXpathResult(xmlXPathObjectPtr xpathObj, int index) xpathObj 67 lib/common/xpath.c int max = numXpathResults(xpathObj); xpathObj 70 lib/common/xpath.c CRM_CHECK(xpathObj != NULL, return NULL); xpathObj 76 lib/common/xpath.c } else if(xpathObj->nodesetval->nodeTab[index] == NULL) { xpathObj 81 lib/common/xpath.c match = xpathObj->nodesetval->nodeTab[index]; xpathObj 84 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[index]->type != XML_NAMESPACE_DECL) { xpathObj 86 lib/common/xpath.c xpathObj->nodesetval->nodeTab[index] = NULL; xpathObj 107 lib/common/xpath.c dedupXpathResults(xmlXPathObjectPtr xpathObj) xpathObj 109 lib/common/xpath.c int lpc, max = numXpathResults(xpathObj); xpathObj 111 lib/common/xpath.c if (xpathObj == NULL) { xpathObj 119 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[lpc] == NULL) { xpathObj 123 lib/common/xpath.c xml = xpathObj->nodesetval->nodeTab[lpc]->parent; xpathObj 129 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[lpc2] == xml) { xpathObj 130 lib/common/xpath.c xpathObj->nodesetval->nodeTab[lpc] = NULL; xpathObj 148 lib/common/xpath.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 161 lib/common/xpath.c xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx); xpathObj 163 lib/common/xpath.c return xpathObj; xpathObj 182 lib/common/xpath.c xmlXPathObjectPtr xpathObj = xpath_search(xml, xpath); xpathObj 183 lib/common/xpath.c int nresults = numXpathResults(xpathObj); xpathObj 187 lib/common/xpath.c xmlNode *result = getXpathResult(xpathObj, i); xpathObj 194 lib/common/xpath.c freeXpathObject(xpathObj); xpathObj 228 lib/common/xpath.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 236 lib/common/xpath.c xpathObj = xpath_search(xml_obj, xpath); xpathObj 238 lib/common/xpath.c max = numXpathResults(xpathObj); xpathObj 250 lib/common/xpath.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 262 lib/common/xpath.c result = getXpathResult(xpathObj, 0); xpathObj 265 lib/common/xpath.c freeXpathObject(xpathObj); xpathObj 1252 lib/fencing/st_client.c xmlXPathObject *xpathObj = NULL; xpathObj 1268 lib/fencing/st_client.c xpathObj = xpath_search(xml, "//actions"); xpathObj 1269 lib/fencing/st_client.c if (numXpathResults(xpathObj) > 0) { xpathObj 1270 lib/fencing/st_client.c actions = getXpathResult(xpathObj, 0); xpathObj 1273 lib/fencing/st_client.c freeXpathObject(xpathObj); xpathObj 1276 lib/fencing/st_client.c xpathObj = xpath_search(xml, "//action[@name='stop']"); xpathObj 1277 lib/fencing/st_client.c if (numXpathResults(xpathObj) <= 0) { xpathObj 1289 lib/fencing/st_client.c freeXpathObject(xpathObj); xpathObj 1292 lib/fencing/st_client.c xpathObj = xpath_search(xml, "//parameter[@name='port']"); xpathObj 1293 lib/fencing/st_client.c if (numXpathResults(xpathObj) > 0) { xpathObj 1295 lib/fencing/st_client.c xmlNode *tmp = getXpathResult(xpathObj, 0); xpathObj 1300 lib/fencing/st_client.c freeXpathObject(xpathObj); xpathObj 1412 lib/fencing/st_client.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 1426 lib/fencing/st_client.c xpathObj = xpath_search(output, "//@agent"); xpathObj 1427 lib/fencing/st_client.c if (xpathObj) { xpathObj 1428 lib/fencing/st_client.c max = numXpathResults(xpathObj); xpathObj 1431 lib/fencing/st_client.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 1443 lib/fencing/st_client.c freeXpathObject(xpathObj); xpathObj 79 lib/pengine/failcounts.c xmlXPathObject *xpathObj = xpath_search(rsc->xml, xpath); xpathObj 92 lib/pengine/failcounts.c if (xpathObj) { xpathObj 93 lib/pengine/failcounts.c int max = numXpathResults(xpathObj); xpathObj 97 lib/pengine/failcounts.c xmlNode *pref = getXpathResult(xpathObj, lpc); xpathObj 148 lib/pengine/failcounts.c freeXpathObject(xpathObj); xpathObj 4029 tools/crm_mon.c xmlXPathObject *xpathObj = xpath_search(msg, xpathObj 4032 tools/crm_mon.c int lpc = 0, max = numXpathResults(xpathObj); xpathObj 4035 tools/crm_mon.c xmlNode *rsc_op = getXpathResult(xpathObj, lpc); xpathObj 4039 tools/crm_mon.c freeXpathObject(xpathObj);