xpathObj 356 daemons/controld/controld_schedulerd.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 361 daemons/controld/controld_schedulerd.c xpathObj = xpath_search(xml, xpath_string); xpathObj 362 daemons/controld/controld_schedulerd.c max = numXpathResults(xpathObj); xpathObj 366 daemons/controld/controld_schedulerd.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 404 daemons/controld/controld_schedulerd.c freeXpathObject(xpathObj); xpathObj 47 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 68 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 71 daemons/controld/controld_te_callbacks.c xpathObj = xpathObj 74 daemons/controld/controld_te_callbacks.c if (numXpathResults(xpathObj) > 0) { xpathObj 75 daemons/controld/controld_te_callbacks.c xmlNode *aborted = getXpathResult(xpathObj, 0); xpathObj 80 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 83 daemons/controld/controld_te_callbacks.c xpathObj = xpathObj 87 daemons/controld/controld_te_callbacks.c max = numXpathResults(xpathObj); xpathObj 90 daemons/controld/controld_te_callbacks.c xmlNode *attr = getXpathResult(xpathObj, lpc); xpathObj 105 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 108 daemons/controld/controld_te_callbacks.c xpathObj = xpathObj 112 daemons/controld/controld_te_callbacks.c if (numXpathResults(xpathObj) > 0) { xpathObj 113 daemons/controld/controld_te_callbacks.c xmlNode *aborted = getXpathResult(xpathObj, 0); xpathObj 119 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 122 daemons/controld/controld_te_callbacks.c xpathObj = xpath_search(diff, xpathObj 126 daemons/controld/controld_te_callbacks.c max = numXpathResults(xpathObj); xpathObj 147 daemons/controld/controld_te_callbacks.c xmlNode *lrm_resource = getXpathResult(xpathObj, 0); xpathObj 156 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 159 daemons/controld/controld_te_callbacks.c xpathObj = xpathObj 162 daemons/controld/controld_te_callbacks.c max = numXpathResults(xpathObj); xpathObj 167 daemons/controld/controld_te_callbacks.c xmlNode *rsc_op = getXpathResult(xpathObj, lpc); xpathObj 173 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 176 daemons/controld/controld_te_callbacks.c xpathObj = xpath_search(diff, "//" XML_TAG_DIFF_REMOVED "//" XML_LRM_TAG_RSC_OP); xpathObj 177 daemons/controld/controld_te_callbacks.c max = numXpathResults(xpathObj); xpathObj 183 daemons/controld/controld_te_callbacks.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 219 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 625 daemons/controld/controld_te_callbacks.c xmlXPathObject *xpathObj = NULL; xpathObj 630 daemons/controld/controld_te_callbacks.c xpathObj = xpath_search(xml_data, "//" XML_LRM_TAG_RSC_OP); xpathObj 631 daemons/controld/controld_te_callbacks.c if (numXpathResults(xpathObj)) { xpathObj 632 daemons/controld/controld_te_callbacks.c int lpc = 0, max = numXpathResults(xpathObj); xpathObj 635 daemons/controld/controld_te_callbacks.c xmlNode *rsc_op = getXpathResult(xpathObj, lpc); xpathObj 640 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 644 daemons/controld/controld_te_callbacks.c freeXpathObject(xpathObj); xpathObj 418 daemons/fenced/pacemaker-fenced.c remove_cib_device(xmlXPathObjectPtr xpathObj) xpathObj 420 daemons/fenced/pacemaker-fenced.c int max = numXpathResults(xpathObj), lpc = 0; xpathObj 425 daemons/fenced/pacemaker-fenced.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 467 daemons/fenced/pacemaker-fenced.c remove_fencing_topology(xmlXPathObjectPtr xpathObj) xpathObj 469 daemons/fenced/pacemaker-fenced.c int max = numXpathResults(xpathObj), lpc = 0; xpathObj 472 daemons/fenced/pacemaker-fenced.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 496 daemons/fenced/pacemaker-fenced.c register_fencing_topology(xmlXPathObjectPtr xpathObj) xpathObj 498 daemons/fenced/pacemaker-fenced.c int max = numXpathResults(xpathObj), lpc = 0; xpathObj 501 daemons/fenced/pacemaker-fenced.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 529 daemons/fenced/pacemaker-fenced.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 537 daemons/fenced/pacemaker-fenced.c xpathObj = xpath_search(local_cib, xpath); xpathObj 538 daemons/fenced/pacemaker-fenced.c register_fencing_topology(xpathObj); xpathObj 540 daemons/fenced/pacemaker-fenced.c freeXpathObject(xpathObj); xpathObj 899 daemons/fenced/pacemaker-fenced.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 908 daemons/fenced/pacemaker-fenced.c xpathObj = xpath_search(msg, xpath); xpathObj 910 daemons/fenced/pacemaker-fenced.c remove_fencing_topology(xpathObj); xpathObj 911 daemons/fenced/pacemaker-fenced.c freeXpathObject(xpathObj); xpathObj 915 daemons/fenced/pacemaker-fenced.c xpathObj = xpath_search(msg, xpath); xpathObj 917 daemons/fenced/pacemaker-fenced.c register_fencing_topology(xpathObj); xpathObj 918 daemons/fenced/pacemaker-fenced.c freeXpathObject(xpathObj); xpathObj 255 include/crm/common/xml.h void freeXpathObject(xmlXPathObjectPtr xpathObj); xpathObj 256 include/crm/common/xml.h xmlNode *getXpathResult(xmlXPathObjectPtr xpathObj, int index); xpathObj 257 include/crm/common/xml.h void dedupXpathResults(xmlXPathObjectPtr xpathObj); xpathObj 259 include/crm/common/xml.h static inline int numXpathResults(xmlXPathObjectPtr xpathObj) xpathObj 261 include/crm/common/xml.h if(xpathObj == NULL || xpathObj->nodesetval == NULL) { xpathObj 264 include/crm/common/xml.h return xpathObj->nodesetval->nodeNr; xpathObj 360 lib/cib/cib_ops.c xmlXPathObjectPtr xpathObj = xpath_search(*result_cib, "//@__delete__"); xpathObj 362 lib/cib/cib_ops.c if (xpathObj) { xpathObj 363 lib/cib/cib_ops.c max = numXpathResults(xpathObj); xpathObj 368 lib/cib/cib_ops.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 376 lib/cib/cib_ops.c freeXpathObject(xpathObj); xpathObj 607 lib/cib/cib_ops.c xmlXPathObject *xpathObj = NULL; xpathObj 624 lib/cib/cib_ops.c xpathObj = xpath_search(*diff, "//" XML_CIB_TAG_CONFIGURATION); xpathObj 625 lib/cib/cib_ops.c if (numXpathResults(xpathObj) > 0) { xpathObj 629 lib/cib/cib_ops.c freeXpathObject(xpathObj); xpathObj 636 lib/cib/cib_ops.c xpathObj = xpath_search(*diff, "//" XML_TAG_DIFF_REMOVED "//" XML_TAG_CIB); xpathObj 637 lib/cib/cib_ops.c max = numXpathResults(xpathObj); xpathObj 640 lib/cib/cib_ops.c xmlNode *top = getXpathResult(xpathObj, lpc); xpathObj 670 lib/cib/cib_ops.c freeXpathObject(xpathObj); xpathObj 683 lib/cib/cib_ops.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 688 lib/cib/cib_ops.c xpathObj = xpath_search(existing_cib, section); xpathObj 690 lib/cib/cib_ops.c xpathObj = xpath_search(*result_cib, section); xpathObj 693 lib/cib/cib_ops.c max = numXpathResults(xpathObj); xpathObj 709 lib/cib/cib_ops.c dedupXpathResults(xpathObj); xpathObj 714 lib/cib/cib_ops.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 810 lib/cib/cib_ops.c freeXpathObject(xpathObj); xpathObj 698 lib/cib/cib_utils.c xmlXPathObject *xpathObj = xpath_search(diff, XPATH_CONFIG_CHANGE); xpathObj 700 lib/cib/cib_utils.c if (numXpathResults(xpathObj) > 0) { xpathObj 703 lib/cib/cib_utils.c freeXpathObject(xpathObj); xpathObj 247 lib/common/acl.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 259 lib/common/acl.c xpathObj = xpath_search(xml, acl->xpath); xpathObj 260 lib/common/acl.c max = numXpathResults(xpathObj); xpathObj 263 lib/common/acl.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 289 lib/common/acl.c freeXpathObject(xpathObj); xpathObj 453 lib/common/acl.c xmlXPathObjectPtr xpathObj = xpath_search(target, acl->xpath); xpathObj 455 lib/common/acl.c max = numXpathResults(xpathObj); xpathObj 457 lib/common/acl.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 462 lib/common/acl.c freeXpathObject(xpathObj); xpathObj 469 lib/common/acl.c freeXpathObject(xpathObj); xpathObj 205 lib/common/alerts.c xmlXPathObject *xpathObj = NULL; xpathObj 219 lib/common/alerts.c if ((xpathObj = xpath_search(msg, diff)) != NULL) { xpathObj 220 lib/common/alerts.c freeXpathObject(xpathObj); xpathObj 38 lib/common/xpath.c freeXpathObject(xmlXPathObjectPtr xpathObj) xpathObj 40 lib/common/xpath.c int lpc, max = numXpathResults(xpathObj); xpathObj 42 lib/common/xpath.c if (xpathObj == NULL) { xpathObj 47 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[lpc] && xpathObj->nodesetval->nodeTab[lpc]->type != XML_NAMESPACE_DECL) { xpathObj 48 lib/common/xpath.c xpathObj->nodesetval->nodeTab[lpc] = NULL; xpathObj 53 lib/common/xpath.c xmlXPathFreeObject(xpathObj); xpathObj 57 lib/common/xpath.c getXpathResult(xmlXPathObjectPtr xpathObj, int index) xpathObj 60 lib/common/xpath.c int max = numXpathResults(xpathObj); xpathObj 63 lib/common/xpath.c CRM_CHECK(xpathObj != NULL, return NULL); xpathObj 69 lib/common/xpath.c } else if(xpathObj->nodesetval->nodeTab[index] == NULL) { xpathObj 74 lib/common/xpath.c match = xpathObj->nodesetval->nodeTab[index]; xpathObj 77 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[index]->type != XML_NAMESPACE_DECL) { xpathObj 79 lib/common/xpath.c xpathObj->nodesetval->nodeTab[index] = NULL; xpathObj 100 lib/common/xpath.c dedupXpathResults(xmlXPathObjectPtr xpathObj) xpathObj 102 lib/common/xpath.c int lpc, max = numXpathResults(xpathObj); xpathObj 104 lib/common/xpath.c if (xpathObj == NULL) { xpathObj 112 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[lpc] == NULL) { xpathObj 116 lib/common/xpath.c xml = xpathObj->nodesetval->nodeTab[lpc]->parent; xpathObj 122 lib/common/xpath.c if (xpathObj->nodesetval->nodeTab[lpc2] == xml) { xpathObj 123 lib/common/xpath.c xpathObj->nodesetval->nodeTab[lpc] = NULL; xpathObj 141 lib/common/xpath.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 154 lib/common/xpath.c xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx); xpathObj 156 lib/common/xpath.c return xpathObj; xpathObj 175 lib/common/xpath.c xmlXPathObjectPtr xpathObj = xpath_search(xml, xpath); xpathObj 176 lib/common/xpath.c int nresults = numXpathResults(xpathObj); xpathObj 180 lib/common/xpath.c xmlNode *result = getXpathResult(xpathObj, i); xpathObj 187 lib/common/xpath.c freeXpathObject(xpathObj); xpathObj 217 lib/common/xpath.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 225 lib/common/xpath.c xpathObj = xpath_search(xml_obj, xpath); xpathObj 227 lib/common/xpath.c max = numXpathResults(xpathObj); xpathObj 244 lib/common/xpath.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 258 lib/common/xpath.c result = getXpathResult(xpathObj, 0); xpathObj 261 lib/common/xpath.c freeXpathObject(xpathObj); xpathObj 976 lib/fencing/st_client.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 990 lib/fencing/st_client.c xpathObj = xpath_search(output, "//@agent"); xpathObj 991 lib/fencing/st_client.c if (xpathObj) { xpathObj 992 lib/fencing/st_client.c max = numXpathResults(xpathObj); xpathObj 995 lib/fencing/st_client.c xmlNode *match = getXpathResult(xpathObj, lpc); xpathObj 1007 lib/fencing/st_client.c freeXpathObject(xpathObj); xpathObj 94 lib/fencing/st_rhcs.c xmlXPathObject *xpathObj = NULL; xpathObj 102 lib/fencing/st_rhcs.c xpathObj = xpath_search(metadata, xpath); xpathObj 103 lib/fencing/st_rhcs.c if (numXpathResults(xpathObj) > 0) { xpathObj 104 lib/fencing/st_rhcs.c xmlNode *tmp = getXpathResult(xpathObj, 0); xpathObj 108 lib/fencing/st_rhcs.c freeXpathObject(xpathObj); xpathObj 127 lib/fencing/st_rhcs.c xmlXPathObject *xpathObj = NULL; xpathObj 161 lib/fencing/st_rhcs.c xpathObj = xpath_search(xml, "//actions"); xpathObj 162 lib/fencing/st_rhcs.c if (numXpathResults(xpathObj) > 0) { xpathObj 163 lib/fencing/st_rhcs.c actions = getXpathResult(xpathObj, 0); xpathObj 165 lib/fencing/st_rhcs.c freeXpathObject(xpathObj); xpathObj 168 lib/fencing/st_rhcs.c xpathObj = xpath_search(xml, "//action[@name='stop']"); xpathObj 169 lib/fencing/st_rhcs.c if (numXpathResults(xpathObj) <= 0) { xpathObj 180 lib/fencing/st_rhcs.c freeXpathObject(xpathObj); xpathObj 98 lib/pengine/failcounts.c xmlXPathObject *xpathObj = xpath_search(rsc->xml, xpath); xpathObj 103 lib/pengine/failcounts.c if (xpathObj) { xpathObj 104 lib/pengine/failcounts.c int max = numXpathResults(xpathObj); xpathObj 108 lib/pengine/failcounts.c xmlNode *pref = getXpathResult(xpathObj, lpc); xpathObj 162 lib/pengine/failcounts.c freeXpathObject(xpathObj); xpathObj 1859 tools/crm_mon.c xmlXPathObject *xpathObj = xpath_search(msg, xpathObj 1862 tools/crm_mon.c int lpc = 0, max = numXpathResults(xpathObj); xpathObj 1865 tools/crm_mon.c xmlNode *rsc_op = getXpathResult(xpathObj, lpc); xpathObj 1869 tools/crm_mon.c freeXpathObject(xpathObj); xpathObj 290 tools/crm_resource.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 294 tools/crm_resource.c xpathObj = xpath_search(cib_constraints, "//" XML_CONS_TAG_RSC_LOCATION); xpathObj 296 tools/crm_resource.c for (ndx = 0; ndx < numXpathResults(xpathObj); ndx++) { xpathObj 297 tools/crm_resource.c xmlNode *match = getXpathResult(xpathObj, ndx); xpathObj 301 tools/crm_resource.c freeXpathObject(xpathObj); xpathObj 401 tools/crm_resource_ban.c xmlXPathObject *xpathObj = NULL; xpathObj 408 tools/crm_resource_ban.c xpathObj = xpath_search(cib_constraints, "//" XML_CONS_TAG_RSC_LOCATION); xpathObj 410 tools/crm_resource_ban.c for (i = 0; i < numXpathResults(xpathObj); i++) { xpathObj 411 tools/crm_resource_ban.c xmlNode *constraint_node = getXpathResult(xpathObj, i); xpathObj 458 tools/crm_resource_ban.c freeXpathObject(xpathObj); xpathObj 83 tools/crm_rule.c xmlXPathObjectPtr xpathObj = NULL; xpathObj 100 tools/crm_rule.c xpathObj = xpath_search(cib_constraints, xpath); xpathObj 101 tools/crm_rule.c max = numXpathResults(xpathObj); xpathObj 114 tools/crm_rule.c freeXpathObject(xpathObj); xpathObj 118 tools/crm_rule.c xpathObj = xpath_search(cib_constraints, xpath); xpathObj 119 tools/crm_rule.c max = numXpathResults(xpathObj); xpathObj 128 tools/crm_rule.c freeXpathObject(xpathObj); xpathObj 132 tools/crm_rule.c xpathObj = xpath_search(cib_constraints, xpath); xpathObj 133 tools/crm_rule.c max = numXpathResults(xpathObj); xpathObj 137 tools/crm_rule.c freeXpathObject(xpathObj); xpathObj 141 tools/crm_rule.c xpathObj = xpath_search(cib_constraints, xpath); xpathObj 142 tools/crm_rule.c max = numXpathResults(xpathObj); xpathObj 151 tools/crm_rule.c match = getXpathResult(xpathObj, 0); xpathObj 178 tools/crm_rule.c freeXpathObject(xpathObj);