patchset 850 daemons/fenced/pacemaker-fenced.c xmlNode *patchset = get_message_xml(msg, F_CIB_UPDATE_RESULT); patchset 852 daemons/fenced/pacemaker-fenced.c for (change = pcmk__xml_first_child(patchset); change != NULL; patchset 975 daemons/fenced/pacemaker-fenced.c xmlNode *patchset = get_message_xml(msg, F_CIB_UPDATE_RESULT); patchset 977 daemons/fenced/pacemaker-fenced.c CRM_ASSERT(patchset); patchset 978 daemons/fenced/pacemaker-fenced.c crm_element_value_int(patchset, "format", &format); patchset 1053 daemons/fenced/pacemaker-fenced.c xmlNode *patchset = get_message_xml(msg, F_CIB_UPDATE_RESULT); patchset 1055 daemons/fenced/pacemaker-fenced.c CRM_ASSERT(patchset); patchset 1056 daemons/fenced/pacemaker-fenced.c crm_element_value_int(patchset, "format", &format); patchset 1078 daemons/fenced/pacemaker-fenced.c xml_patch_versions(patchset, add, del); patchset 1080 daemons/fenced/pacemaker-fenced.c for (change = pcmk__xml_first_child(patchset); change != NULL; patchset 1167 daemons/fenced/pacemaker-fenced.c xmlNode *patchset = NULL; patchset 1174 daemons/fenced/pacemaker-fenced.c patchset = get_message_xml(msg, F_CIB_UPDATE_RESULT); patchset 1176 daemons/fenced/pacemaker-fenced.c out->message(out, "xml-patchset", patchset); patchset 1177 daemons/fenced/pacemaker-fenced.c rc = xml_apply_patchset(local_cib, patchset, TRUE); patchset 284 include/crm/common/xml.h bool xml_patch_versions(const xmlNode *patchset, int add[3], int del[3]); patchset 288 include/crm/common/xml.h int xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version); patchset 199 lib/common/alerts.c xmlNode *patchset = get_message_xml(msg, F_CIB_UPDATE_RESULT); patchset 211 lib/common/alerts.c crm_element_value_int(patchset, "format", &format); patchset 220 lib/common/alerts.c for (change = pcmk__xml_first_child(patchset); change != NULL; patchset 36 lib/common/patchset.c add_xml_changes_to_patchset(xmlNode *xml, xmlNode *patchset) patchset 45 lib/common/patchset.c if (patchset && pcmk_is_set(nodepriv->flags, pcmk__xf_created)) { patchset 51 lib/common/patchset.c change = create_xml_node(patchset, XML_DIFF_CHANGE); patchset 77 lib/common/patchset.c change = create_xml_node(patchset, XML_DIFF_CHANGE); patchset 120 lib/common/patchset.c add_xml_changes_to_patchset(cIter, patchset); patchset 124 lib/common/patchset.c if (patchset && pcmk_is_set(nodepriv->flags, pcmk__xf_moved)) { patchset 131 lib/common/patchset.c change = create_xml_node(patchset, XML_DIFF_CHANGE); patchset 244 lib/common/patchset.c xmlNode *patchset = diff_xml_object(source, target, suppress); patchset 246 lib/common/patchset.c if (patchset) { patchset 248 lib/common/patchset.c xml_repair_v1_diff(source, target, patchset, config); patchset 249 lib/common/patchset.c crm_xml_add(patchset, "format", "1"); patchset 251 lib/common/patchset.c return patchset; patchset 263 lib/common/patchset.c xmlNode *patchset = NULL; patchset 278 lib/common/patchset.c patchset = create_xml_node(NULL, XML_TAG_DIFF); patchset 279 lib/common/patchset.c crm_xml_add_int(patchset, "format", 2); patchset 281 lib/common/patchset.c version = create_xml_node(patchset, XML_DIFF_VERSION); patchset 305 lib/common/patchset.c xmlNode *change = create_xml_node(patchset, XML_DIFF_CHANGE); patchset 314 lib/common/patchset.c add_xml_changes_to_patchset(target, patchset); patchset 315 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, "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 622 lib/common/patchset.c xml_patch_version_check(const xmlNode *xml, const xmlNode *patchset, int format) patchset 653 lib/common/patchset.c xml_patch_versions(patchset, add, del); patchset 665 lib/common/patchset.c del[0], del[1], del[2], add[0], add[1], add[2], patchset); patchset 666 lib/common/patchset.c crm_log_xml_info(patchset, "OldPatch"); patchset 698 lib/common/patchset.c apply_v1_patchset(xmlNode *xml, const xmlNode *patchset) patchset 704 lib/common/patchset.c xmlNode *added = find_xml_node(patchset, "diff-added", FALSE); patchset 705 lib/common/patchset.c xmlNode *removed = find_xml_node(patchset, "diff-removed", FALSE); patchset 913 lib/common/patchset.c apply_v2_patchset(xmlNode *xml, const xmlNode *patchset) patchset 920 lib/common/patchset.c for (change = pcmk__xml_first_child(patchset); change != NULL; patchset 1096 lib/common/patchset.c xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version) patchset 1101 lib/common/patchset.c const char *digest = crm_element_value(patchset, XML_ATTR_DIGEST); patchset 1103 lib/common/patchset.c if (patchset == NULL) { patchset 1115 lib/common/patchset.c rc = logger_out->message(logger_out, "xml-patchset", patchset); patchset 1124 lib/common/patchset.c crm_element_value_int(patchset, "format", &format); patchset 1126 lib/common/patchset.c rc = pcmk_rc2legacy(xml_patch_version_check(xml, patchset, format)); patchset 1140 lib/common/patchset.c rc = pcmk_rc2legacy(apply_v1_patchset(xml, patchset)); patchset 1143 lib/common/patchset.c rc = pcmk_rc2legacy(apply_v2_patchset(xml, patchset)); patchset 1164 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, "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, "diff-removed", FALSE); patchset 162 lib/common/patchset_display.c added = find_xml_node(patchset, "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 xmlNodePtr patchset = va_arg(args, xmlNodePtr); patchset 314 lib/common/patchset_display.c if (patchset == NULL) { patchset 319 lib/common/patchset_display.c crm_element_value_int(patchset, "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 xmlNodePtr patchset = va_arg(args, xmlNodePtr); patchset 360 lib/common/patchset_display.c if (patchset == NULL) { patchset 376 lib/common/patchset_display.c crm_element_value_int(patchset, "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 xmlNodePtr patchset = va_arg(args, xmlNodePtr); 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, "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);