patchset           51 daemons/attrd/attrd_cib.c     const xmlNode *patchset = NULL;
patchset           58 daemons/attrd/attrd_cib.c     if (cib__get_notify_patchset(msg, &patchset) != pcmk_rc_ok) {
patchset           62 daemons/attrd/attrd_cib.c     if (cib__element_in_patchset(patchset, XML_CIB_TAG_ALERTS)) {
patchset           77 daemons/attrd/attrd_cib.c     if (cib__element_in_patchset(patchset, XML_CIB_TAG_NODES)
patchset           78 daemons/attrd/attrd_cib.c         || cib__element_in_patchset(patchset, XML_CIB_TAG_STATUS)) {
patchset           53 daemons/controld/controld_cib.c     const xmlNode *patchset = NULL;
patchset           58 daemons/controld/controld_cib.c     if (cib__get_notify_patchset(msg, &patchset) != pcmk_rc_ok) {
patchset           62 daemons/controld/controld_cib.c     if (cib__element_in_patchset(patchset, XML_CIB_TAG_ALERTS)
patchset           63 daemons/controld/controld_cib.c         || cib__element_in_patchset(patchset, XML_CIB_TAG_CRMCONFIG)) {
patchset           79 daemons/controld/controld_cib.c     if (cib__element_in_patchset(patchset, XML_CIB_TAG_NODES)
patchset           80 daemons/controld/controld_cib.c         || cib__element_in_patchset(patchset, XML_CIB_TAG_STATUS)) {
patchset          318 daemons/fenced/fenced_cib.c     xmlNode *patchset = get_message_xml(msg, F_CIB_UPDATE_RESULT);
patchset          320 daemons/fenced/fenced_cib.c     for (change = pcmk__xml_first_child(patchset); change != NULL;
patchset          381 daemons/fenced/fenced_cib.c     xmlNode *patchset = get_message_xml(msg, F_CIB_UPDATE_RESULT);
patchset          383 daemons/fenced/fenced_cib.c     CRM_ASSERT(patchset);
patchset          384 daemons/fenced/fenced_cib.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          494 daemons/fenced/fenced_cib.c     xmlNode *patchset = get_message_xml(msg, F_CIB_UPDATE_RESULT);
patchset          496 daemons/fenced/fenced_cib.c     CRM_ASSERT(patchset);
patchset          497 daemons/fenced/fenced_cib.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          519 daemons/fenced/fenced_cib.c         xml_patch_versions(patchset, add, del);
patchset          521 daemons/fenced/fenced_cib.c         for (change = pcmk__xml_first_child(patchset); change != NULL;
patchset          606 daemons/fenced/fenced_cib.c         xmlNode *patchset = NULL;
patchset          613 daemons/fenced/fenced_cib.c         patchset = get_message_xml(msg, F_CIB_UPDATE_RESULT);
patchset          614 daemons/fenced/fenced_cib.c         rc = xml_apply_patchset(local_cib, patchset, TRUE);
patchset          203 include/crm/cib/internal.h int cib__get_notify_patchset(const xmlNode *msg, const xmlNode **patchset);
patchset          205 include/crm/cib/internal.h bool cib__element_in_patchset(const xmlNode *patchset, const char *element);
patchset          135 include/crm/common/logging_internal.h #define pcmk__log_xml_patchset(level, patchset) do {                        \
patchset          151 include/crm/common/logging_internal.h                                               0, _level, patchset);         \
patchset          163 include/crm/common/logging_internal.h                                const xmlNode *patchset);
patchset          275 include/crm/common/xml.h bool xml_patch_versions(const xmlNode *patchset, int add[3], int del[3]);
patchset          279 include/crm/common/xml.h int xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version);
patchset           91 lib/cib/cib_utils.c cib__get_notify_patchset(const xmlNode *msg, const xmlNode **patchset)
patchset           95 lib/cib/cib_utils.c     CRM_ASSERT(patchset != NULL);
patchset           96 lib/cib/cib_utils.c     *patchset = NULL;
patchset          110 lib/cib/cib_utils.c     *patchset = get_message_xml(msg, F_CIB_UPDATE_RESULT);
patchset          112 lib/cib/cib_utils.c     if (*patchset == NULL) {
patchset          132 lib/cib/cib_utils.c element_in_patchset_v1(const xmlNode *patchset, const char *element)
patchset          136 lib/cib/cib_utils.c     xmlXPathObject *xpath_obj = xpath_search(patchset, xpath);
patchset          159 lib/cib/cib_utils.c element_in_patchset_v2(const xmlNode *patchset, const char *element)
patchset          171 lib/cib/cib_utils.c     for (const xmlNode *change = first_named_child(patchset, XML_DIFF_CHANGE);
patchset          209 lib/cib/cib_utils.c cib__element_in_patchset(const xmlNode *patchset, const char *element)
patchset          213 lib/cib/cib_utils.c     CRM_ASSERT(patchset != NULL);
patchset          215 lib/cib/cib_utils.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          218 lib/cib/cib_utils.c             return element_in_patchset_v1(patchset, element);
patchset          221 lib/cib/cib_utils.c             return element_in_patchset_v2(patchset, element);
patchset         1232 lib/common/logging.c                           uint32_t tags, uint8_t level, const xmlNode *patchset)
patchset         1234 lib/common/logging.c     if (patchset == NULL) {
patchset         1244 lib/common/logging.c     logger_out->message(logger_out, "xml-patchset", patchset);
patchset           36 lib/common/patchset.c add_xml_changes_to_patchset(xmlNode *xml, xmlNode *patchset)
patchset           53 lib/common/patchset.c     if (patchset && pcmk_is_set(nodepriv->flags, pcmk__xf_created)) {
patchset           59 lib/common/patchset.c             change = create_xml_node(patchset, XML_DIFF_CHANGE);
patchset           85 lib/common/patchset.c                 change = create_xml_node(patchset, XML_DIFF_CHANGE);
patchset          128 lib/common/patchset.c         add_xml_changes_to_patchset(cIter, patchset);
patchset          132 lib/common/patchset.c     if (patchset && pcmk_is_set(nodepriv->flags, pcmk__xf_moved)) {
patchset          139 lib/common/patchset.c             change = create_xml_node(patchset, XML_DIFF_CHANGE);
patchset          253 lib/common/patchset.c     xmlNode *patchset = diff_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 = create_xml_node(NULL, XML_TAG_DIFF);
patchset          288 lib/common/patchset.c     crm_xml_add_int(patchset, PCMK_XA_FORMAT, 2);
patchset          290 lib/common/patchset.c     version = create_xml_node(patchset, XML_DIFF_VERSION);
patchset          314 lib/common/patchset.c         xmlNode *change = create_xml_node(patchset, XML_DIFF_CHANGE);
patchset          323 lib/common/patchset.c     add_xml_changes_to_patchset(target, patchset);
patchset          324 lib/common/patchset.c     return patchset;
patchset          542 lib/common/patchset.c find_patch_xml_node(const xmlNode *patchset, int format, bool added,
patchset          551 lib/common/patchset.c             *patch_node = find_xml_node(patchset, label, FALSE);
patchset          559 lib/common/patchset.c             *patch_node = find_xml_node(patchset, "version", FALSE);
patchset          572 lib/common/patchset.c xml_patch_versions(const xmlNode *patchset, int add[3], int del[3])
patchset          585 lib/common/patchset.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          588 lib/common/patchset.c     if (!find_patch_xml_node(patchset, format, FALSE, &tmp)) {
patchset          599 lib/common/patchset.c     if (!find_patch_xml_node(patchset, format, TRUE, &tmp)) {
patchset          621 lib/common/patchset.c xml_patch_version_check(const xmlNode *xml, const xmlNode *patchset)
patchset          652 lib/common/patchset.c     xml_patch_versions(patchset, add, del);
patchset          664 lib/common/patchset.c                      del[0], del[1], del[2], add[0], add[1], add[2], patchset);
patchset          665 lib/common/patchset.c             crm_log_xml_info(patchset, "OldPatch");
patchset          697 lib/common/patchset.c apply_v1_patchset(xmlNode *xml, const xmlNode *patchset)
patchset          703 lib/common/patchset.c     xmlNode *added = find_xml_node(patchset, XML_TAG_DIFF_ADDED, FALSE);
patchset          704 lib/common/patchset.c     xmlNode *removed = find_xml_node(patchset, XML_TAG_DIFF_REMOVED, FALSE);
patchset          912 lib/common/patchset.c apply_v2_patchset(xmlNode *xml, const xmlNode *patchset)
patchset          919 lib/common/patchset.c     for (change = pcmk__xml_first_child(patchset); change != NULL;
patchset         1099 lib/common/patchset.c xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version)
patchset         1106 lib/common/patchset.c     if (patchset == NULL) {
patchset         1110 lib/common/patchset.c     pcmk__log_xml_patchset(LOG_TRACE, patchset);
patchset         1113 lib/common/patchset.c         rc = pcmk_rc2legacy(xml_patch_version_check(xml, patchset));
patchset         1119 lib/common/patchset.c     digest = crm_element_value(patchset, XML_ATTR_DIGEST);
patchset         1128 lib/common/patchset.c         crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset         1131 lib/common/patchset.c                 rc = pcmk_rc2legacy(apply_v1_patchset(xml, patchset));
patchset         1134 lib/common/patchset.c                 rc = pcmk_rc2legacy(apply_v2_patchset(xml, patchset));
patchset         1155 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, XML_ATTR_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 = find_xml_node(patchset, XML_TAG_DIFF_REMOVED, FALSE);
patchset          162 lib/common/patchset_display.c     added = find_xml_node(patchset, XML_TAG_DIFF_ADDED, FALSE);
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__xml_first_child(patchset);
patchset          310 lib/common/patchset_display.c     const xmlNode *patchset = va_arg(args, const xmlNode *);
patchset          314 lib/common/patchset_display.c     if (patchset == NULL) {
patchset          319 lib/common/patchset_display.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          322 lib/common/patchset_display.c             return xml_show_patchset_v1(out, patchset, pcmk__xml_fmt_pretty);
patchset          324 lib/common/patchset_display.c             return xml_show_patchset_v2(out, patchset);
patchset          351 lib/common/patchset_display.c     const xmlNode *patchset = va_arg(args, const xmlNode *);
patchset          360 lib/common/patchset_display.c     if (patchset == NULL) {
patchset          376 lib/common/patchset_display.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          380 lib/common/patchset_display.c                 return xml_show_patchset_v1(out, patchset,
patchset          384 lib/common/patchset_display.c             return xml_show_patchset_v1(out, patchset, pcmk__xml_fmt_pretty);
patchset          386 lib/common/patchset_display.c             return xml_show_patchset_v2(out, patchset);
patchset          411 lib/common/patchset_display.c     const xmlNode *patchset = va_arg(args, const xmlNode *);
patchset          413 lib/common/patchset_display.c     if (patchset != NULL) {
patchset          414 lib/common/patchset_display.c         char *buf = dump_xml_formatted_with_text(patchset);
patchset          450 lib/common/patchset_display.c                  const xmlNode *patchset)
patchset          487 lib/common/patchset_display.c     if (patchset == NULL) {
patchset          493 lib/common/patchset_display.c     crm_element_value_int(patchset, PCMK_XA_FORMAT, &format);
patchset          497 lib/common/patchset_display.c                 rc = xml_show_patchset_v1(out, patchset,
patchset          501 lib/common/patchset_display.c                 rc = xml_show_patchset_v1(out, patchset, pcmk__xml_fmt_pretty);
patchset          505 lib/common/patchset_display.c             rc = xml_show_patchset_v2(out, patchset);