patchset           52 daemons/attrd/attrd_cib.c     const xmlNode *patchset = NULL;
patchset           61 daemons/attrd/attrd_cib.c     if (cib__get_notify_patchset(msg, &patchset) != pcmk_rc_ok) {
patchset           65 daemons/attrd/attrd_cib.c     if (cib__element_in_patchset(patchset, PCMK_XE_ALERTS)) {
patchset           69 daemons/attrd/attrd_cib.c     status_changed = cib__element_in_patchset(patchset, PCMK_XE_STATUS);
patchset           84 daemons/attrd/attrd_cib.c     if (status_changed || cib__element_in_patchset(patchset, PCMK_XE_NODES)) {
patchset           52 daemons/controld/controld_cib.c     const xmlNode *patchset = NULL;
patchset           57 daemons/controld/controld_cib.c     if (cib__get_notify_patchset(msg, &patchset) != pcmk_rc_ok) {
patchset           61 daemons/controld/controld_cib.c     if (cib__element_in_patchset(patchset, PCMK_XE_ALERTS)
patchset           62 daemons/controld/controld_cib.c         || cib__element_in_patchset(patchset, PCMK_XE_CRM_CONFIG)) {
patchset           78 daemons/controld/controld_cib.c     if (cib__element_in_patchset(patchset, PCMK_XE_NODES)
patchset           79 daemons/controld/controld_cib.c         || cib__element_in_patchset(patchset, PCMK_XE_STATUS)) {
patchset          331 daemons/fenced/fenced_cib.c     xmlNode *patchset = pcmk__xe_first_child(wrapper, NULL, NULL, NULL);
patchset          333 daemons/fenced/fenced_cib.c     for (change = pcmk__xe_first_child(patchset, NULL, NULL, NULL);
patchset          398 daemons/fenced/fenced_cib.c     xmlNode *patchset = pcmk__xe_first_child(wrapper, NULL, NULL, NULL);
patchset          400 daemons/fenced/fenced_cib.c     CRM_ASSERT(patchset);
patchset          401 daemons/fenced/fenced_cib.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          515 daemons/fenced/fenced_cib.c     xmlNode *patchset = pcmk__xe_first_child(wrapper, NULL, NULL, NULL);
patchset          517 daemons/fenced/fenced_cib.c     CRM_ASSERT(patchset);
patchset          518 daemons/fenced/fenced_cib.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          544 daemons/fenced/fenced_cib.c         xml_patch_versions(patchset, add, del);
patchset          546 daemons/fenced/fenced_cib.c         for (change = pcmk__xe_first_child(patchset, NULL, NULL, NULL);
patchset          638 daemons/fenced/fenced_cib.c         xmlNode *patchset = NULL;
patchset          647 daemons/fenced/fenced_cib.c         patchset = pcmk__xe_first_child(wrapper, NULL, NULL, NULL);
patchset          649 daemons/fenced/fenced_cib.c         rc = xml_apply_patchset(local_cib, patchset, TRUE);
patchset          168 include/crm/cib/internal.h int cib__get_notify_patchset(const xmlNode *msg, const xmlNode **patchset);
patchset          170 include/crm/cib/internal.h bool cib__element_in_patchset(const xmlNode *patchset, const char *element);
patchset          193 include/crm/common/logging_internal.h #define pcmk__log_xml_patchset(level, patchset) do {                        \
patchset          209 include/crm/common/logging_internal.h                                               0, _level, patchset);         \
patchset          221 include/crm/common/logging_internal.h                                const xmlNode *patchset);
patchset           95 include/crm/common/xml.h bool xml_patch_versions(const xmlNode *patchset, int add[3], int del[3]);
patchset           99 include/crm/common/xml.h int xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version);
patchset           75 lib/cib/cib_utils.c cib__get_notify_patchset(const xmlNode *msg, const xmlNode **patchset)
patchset           80 lib/cib/cib_utils.c     CRM_ASSERT(patchset != NULL);
patchset           81 lib/cib/cib_utils.c     *patchset = NULL;
patchset           98 lib/cib/cib_utils.c     *patchset = pcmk__xe_first_child(wrapper, NULL, NULL, NULL);
patchset          100 lib/cib/cib_utils.c     if (*patchset == NULL) {
patchset          120 lib/cib/cib_utils.c element_in_patchset_v1(const xmlNode *patchset, const char *element)
patchset          124 lib/cib/cib_utils.c     xmlXPathObject *xpath_obj = xpath_search(patchset, xpath);
patchset          147 lib/cib/cib_utils.c element_in_patchset_v2(const xmlNode *patchset, const char *element)
patchset          159 lib/cib/cib_utils.c     for (const xmlNode *change = pcmk__xe_first_child(patchset, PCMK_XE_CHANGE,
patchset          199 lib/cib/cib_utils.c cib__element_in_patchset(const xmlNode *patchset, const char *element)
patchset          203 lib/cib/cib_utils.c     CRM_ASSERT(patchset != NULL);
patchset          205 lib/cib/cib_utils.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          208 lib/cib/cib_utils.c             return element_in_patchset_v1(patchset, element);
patchset          211 lib/cib/cib_utils.c             return element_in_patchset_v2(patchset, element);
patchset         1230 lib/common/logging.c                           uint32_t tags, uint8_t level, const xmlNode *patchset)
patchset         1232 lib/common/logging.c     if (patchset == NULL) {
patchset         1242 lib/common/logging.c     logger_out->message(logger_out, "xml-patchset", patchset);
patchset           32 lib/common/patchset.c add_xml_changes_to_patchset(xmlNode *xml, xmlNode *patchset)
patchset           49 lib/common/patchset.c     if (patchset && pcmk_is_set(nodepriv->flags, pcmk__xf_created)) {
patchset           55 lib/common/patchset.c             change = pcmk__xe_create(patchset, PCMK_XE_CHANGE);
patchset           81 lib/common/patchset.c                 change = pcmk__xe_create(patchset, PCMK_XE_CHANGE);
patchset          124 lib/common/patchset.c         add_xml_changes_to_patchset(cIter, patchset);
patchset          128 lib/common/patchset.c     if (patchset && pcmk_is_set(nodepriv->flags, pcmk__xf_moved)) {
patchset          136 lib/common/patchset.c             change = pcmk__xe_create(patchset, PCMK_XE_CHANGE);
patchset          253 lib/common/patchset.c     xmlNode *patchset = pcmk__diff_v1_xml_object(source, target, suppress);
patchset          255 lib/common/patchset.c     if (patchset) {
patchset          257 lib/common/patchset.c         xml_repair_v1_diff(source, target, patchset, config);
patchset          258 lib/common/patchset.c         crm_xml_add(patchset, PCMK_XA_FORMAT, "1");
patchset          260 lib/common/patchset.c     return patchset;
patchset          272 lib/common/patchset.c     xmlNode *patchset = NULL;
patchset          287 lib/common/patchset.c     patchset = pcmk__xe_create(NULL, PCMK_XE_DIFF);
patchset          288 lib/common/patchset.c     crm_xml_add_int(patchset, PCMK_XA_FORMAT, 2);
patchset          290 lib/common/patchset.c     version = pcmk__xe_create(patchset, PCMK_XE_VERSION);
patchset          314 lib/common/patchset.c         xmlNode *change = pcmk__xe_create(patchset, PCMK_XE_CHANGE);
patchset          323 lib/common/patchset.c     add_xml_changes_to_patchset(target, patchset);
patchset          324 lib/common/patchset.c     return patchset;
patchset          755 lib/common/patchset.c find_patch_xml_node(const xmlNode *patchset, int format, bool added,
patchset          765 lib/common/patchset.c             *patch_node = pcmk__xe_first_child(patchset, label, NULL, NULL);
patchset          774 lib/common/patchset.c             *patch_node = pcmk__xe_first_child(patchset, PCMK_XE_VERSION, NULL,
patchset          788 lib/common/patchset.c xml_patch_versions(const xmlNode *patchset, int add[3], int del[3])
patchset          801 lib/common/patchset.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          804 lib/common/patchset.c     if (!find_patch_xml_node(patchset, format, FALSE, &tmp)) {
patchset          815 lib/common/patchset.c     if (!find_patch_xml_node(patchset, format, TRUE, &tmp)) {
patchset          837 lib/common/patchset.c xml_patch_version_check(const xmlNode *xml, const xmlNode *patchset)
patchset          868 lib/common/patchset.c     xml_patch_versions(patchset, add, del);
patchset          880 lib/common/patchset.c                      del[0], del[1], del[2], add[0], add[1], add[2], patchset);
patchset          881 lib/common/patchset.c             crm_log_xml_info(patchset, "OldPatch");
patchset          929 lib/common/patchset.c apply_v1_patchset(xmlNode *xml, const xmlNode *patchset)
patchset          935 lib/common/patchset.c     xmlNode *added = pcmk__xe_first_child(patchset, PCMK__XE_DIFF_ADDED, NULL,
patchset          937 lib/common/patchset.c     xmlNode *removed = pcmk__xe_first_child(patchset, PCMK__XE_DIFF_REMOVED,
patchset         1140 lib/common/patchset.c apply_v2_patchset(xmlNode *xml, const xmlNode *patchset)
patchset         1147 lib/common/patchset.c     for (change = pcmk__xml_first_child(patchset); change != NULL;
patchset         1330 lib/common/patchset.c xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version)
patchset         1337 lib/common/patchset.c     if (patchset == NULL) {
patchset         1341 lib/common/patchset.c     pcmk__log_xml_patchset(LOG_TRACE, patchset);
patchset         1344 lib/common/patchset.c         rc = pcmk_rc2legacy(xml_patch_version_check(xml, patchset));
patchset         1350 lib/common/patchset.c     digest = crm_element_value(patchset, PCMK__XA_DIGEST);
patchset         1359 lib/common/patchset.c         crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset         1363 lib/common/patchset.c                 rc = pcmk_rc2legacy(apply_v1_patchset(xml, patchset));
patchset         1366 lib/common/patchset.c                 rc = pcmk_rc2legacy(apply_v2_patchset(xml, patchset));
patchset         1387 lib/common/patchset.c                     save_xml_to_file(patchset, "PatchDigest:diff", NULL);
patchset           41 lib/common/patchset_display.c xml_show_patchset_header(pcmk__output_t *out, const xmlNode *patchset)
patchset           47 lib/common/patchset_display.c     xml_patch_versions(patchset, add, del);
patchset           50 lib/common/patchset_display.c         const char *fmt = crm_element_value(patchset, PCMK_XA_FORMAT);
patchset           51 lib/common/patchset_display.c         const char *digest = crm_element_value(patchset, PCMK__XA_DIGEST);
patchset          132 lib/common/patchset_display.c xml_show_patchset_v1(pcmk__output_t *out, const xmlNode *patchset,
patchset          139 lib/common/patchset_display.c     int rc = xml_show_patchset_header(out, patchset);
patchset          146 lib/common/patchset_display.c     removed = pcmk__xe_first_child(patchset, PCMK__XE_DIFF_REMOVED, NULL, NULL);
patchset          162 lib/common/patchset_display.c     added = pcmk__xe_first_child(patchset, PCMK__XE_DIFF_ADDED, NULL, NULL);
patchset          195 lib/common/patchset_display.c xml_show_patchset_v2(pcmk__output_t *out, const xmlNode *patchset)
patchset          197 lib/common/patchset_display.c     int rc = xml_show_patchset_header(out, patchset);
patchset          200 lib/common/patchset_display.c     for (const xmlNode *change = pcmk__xe_first_child(patchset, NULL, NULL,
patchset          316 lib/common/patchset_display.c     const xmlNode *patchset = va_arg(args, const xmlNode *);
patchset          320 lib/common/patchset_display.c     if (patchset == NULL) {
patchset          325 lib/common/patchset_display.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          328 lib/common/patchset_display.c             return xml_show_patchset_v1(out, patchset, pcmk__xml_fmt_pretty);
patchset          330 lib/common/patchset_display.c             return xml_show_patchset_v2(out, patchset);
patchset          358 lib/common/patchset_display.c     const xmlNode *patchset = va_arg(args, const xmlNode *);
patchset          367 lib/common/patchset_display.c     if (patchset == NULL) {
patchset          383 lib/common/patchset_display.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          387 lib/common/patchset_display.c                 return xml_show_patchset_v1(out, patchset,
patchset          391 lib/common/patchset_display.c             return xml_show_patchset_v1(out, patchset, pcmk__xml_fmt_pretty);
patchset          393 lib/common/patchset_display.c             return xml_show_patchset_v2(out, patchset);
patchset          419 lib/common/patchset_display.c     const xmlNode *patchset = va_arg(args, const xmlNode *);
patchset          421 lib/common/patchset_display.c     if (patchset != NULL) {
patchset          424 lib/common/patchset_display.c         pcmk__xml_string(patchset, pcmk__xml_fmt_pretty|pcmk__xml_fmt_text, buf,
patchset          461 lib/common/patchset_display.c                  const xmlNode *patchset)
patchset          498 lib/common/patchset_display.c     if (patchset == NULL) {
patchset          504 lib/common/patchset_display.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          508 lib/common/patchset_display.c                 rc = xml_show_patchset_v1(out, patchset,
patchset          512 lib/common/patchset_display.c                 rc = xml_show_patchset_v1(out, patchset, pcmk__xml_fmt_pretty);
patchset          516 lib/common/patchset_display.c             rc = xml_show_patchset_v2(out, patchset);