new_xml 281 include/crm/common/xml.h void xml_calculate_changes(xmlNode *old_xml, xmlNode *new_xml); new_xml 282 include/crm/common/xml.h void xml_calculate_significant_changes(xmlNode *old_xml, xmlNode *new_xml); new_xml 49 include/crm/common/xml_compat.h gboolean apply_xml_diff(xmlNode *old_xml, xmlNode *diff, xmlNode **new_xml); new_xml 1429 lib/common/patchset.c apply_xml_diff(xmlNode *old_xml, xmlNode *diff, xmlNode **new_xml) new_xml 1440 lib/common/patchset.c CRM_CHECK(new_xml != NULL, return FALSE); new_xml 1447 lib/common/patchset.c *new_xml = subtract_xml_object(NULL, old_xml, child_diff, FALSE, new_xml 1454 lib/common/patchset.c *new_xml = copy_xml(old_xml); new_xml 1471 lib/common/patchset.c pcmk__xml_update(NULL, *new_xml, child_diff, true); new_xml 1485 lib/common/patchset.c purge_diff_markers(*new_xml); // Purge now so diff is ok new_xml 1486 lib/common/patchset.c new_digest = calculate_xml_versioned_digest(*new_xml, FALSE, TRUE, new_xml 1497 lib/common/patchset.c save_xml_to_file(*new_xml, "diff:new", NULL); new_xml 1509 lib/common/patchset.c purge_diff_markers(*new_xml); // Purge now so diff is ok new_xml 1800 lib/common/xml.c mark_attr_deleted(xmlNode *new_xml, const char *element, const char *attr_name, new_xml 1803 lib/common/xml.c xml_doc_private_t *docpriv = new_xml->doc->_private; new_xml 1811 lib/common/xml.c attr = xmlSetProp(new_xml, (pcmkXmlStr) attr_name, (pcmkXmlStr) old_value); new_xml 1819 lib/common/xml.c xml_remove_prop(new_xml, attr_name); new_xml 1830 lib/common/xml.c mark_attr_changed(xmlNode *new_xml, const char *element, const char *attr_name, new_xml 1833 lib/common/xml.c char *vcopy = crm_element_value_copy(new_xml, attr_name); new_xml 1839 lib/common/xml.c xmlSetProp(new_xml, (pcmkXmlStr) attr_name, (pcmkXmlStr) old_value); new_xml 1842 lib/common/xml.c crm_xml_add(new_xml, attr_name, vcopy); new_xml 1858 lib/common/xml.c mark_attr_moved(xmlNode *new_xml, const char *element, xmlAttr *old_attr, new_xml 1867 lib/common/xml.c mark_xml_node_dirty(new_xml); new_xml 1884 lib/common/xml.c xml_diff_old_attrs(xmlNode *old_xml, xmlNode *new_xml) new_xml 1890 lib/common/xml.c xmlAttr *new_attr = xmlHasProp(new_xml, attr_iter->name); new_xml 1896 lib/common/xml.c mark_attr_deleted(new_xml, (const char *) old_xml->name, name, new_xml 1905 lib/common/xml.c const char *new_value = crm_element_value(new_xml, name); new_xml 1911 lib/common/xml.c mark_attr_changed(new_xml, (const char *) old_xml->name, name, new_xml 1915 lib/common/xml.c && !pcmk__tracking_xml_changes(new_xml, TRUE)) { new_xml 1916 lib/common/xml.c mark_attr_moved(new_xml, (const char *) old_xml->name, new_xml 1933 lib/common/xml.c mark_created_attrs(xmlNode *new_xml) new_xml 1935 lib/common/xml.c xmlAttr *attr_iter = pcmk__xe_first_attr(new_xml); new_xml 1946 lib/common/xml.c attr_name, crm_element_value(new_xml, attr_name), new_xml 1947 lib/common/xml.c new_xml->name); new_xml 1952 lib/common/xml.c if (pcmk__check_acl(new_xml, attr_name, pcmk__xf_acl_write)) { new_xml 1956 lib/common/xml.c xmlUnsetProp(new_xml, new_attr->name); new_xml 1970 lib/common/xml.c xml_diff_attrs(xmlNode *old_xml, xmlNode *new_xml) new_xml 1972 lib/common/xml.c set_attrs_flag(new_xml, pcmk__xf_created); // cleared later if not really new new_xml 1973 lib/common/xml.c xml_diff_old_attrs(old_xml, new_xml); new_xml 1974 lib/common/xml.c mark_created_attrs(new_xml); new_xml 2033 lib/common/xml.c mark_xml_changes(xmlNode *old_xml, xmlNode *new_xml, bool check_top) new_xml 2038 lib/common/xml.c CRM_CHECK(new_xml != NULL, return); new_xml 2040 lib/common/xml.c pcmk__mark_xml_created(new_xml); new_xml 2041 lib/common/xml.c pcmk__apply_creation_acl(new_xml, check_top); new_xml 2045 lib/common/xml.c nodepriv = new_xml->_private; new_xml 2054 lib/common/xml.c xml_diff_attrs(old_xml, new_xml); new_xml 2059 lib/common/xml.c xmlNode *new_child = pcmk__xml_match(new_xml, cIter, true); new_xml 2066 lib/common/xml.c mark_child_deleted(old_child, new_xml); new_xml 2071 lib/common/xml.c for (cIter = pcmk__xml_first_child(new_xml); cIter != NULL; ) { new_xml 2088 lib/common/xml.c mark_child_moved(old_child, new_xml, new_child, p_old, p_new); new_xml 2095 lib/common/xml.c xml_calculate_significant_changes(xmlNode *old_xml, xmlNode *new_xml) new_xml 2097 lib/common/xml.c pcmk__set_xml_doc_flag(new_xml, pcmk__xf_lazy); new_xml 2098 lib/common/xml.c xml_calculate_changes(old_xml, new_xml); new_xml 2103 lib/common/xml.c xml_calculate_changes(xmlNode *old_xml, xmlNode *new_xml) new_xml 2105 lib/common/xml.c CRM_CHECK(pcmk__str_eq(crm_element_name(old_xml), crm_element_name(new_xml), pcmk__str_casei), new_xml 2107 lib/common/xml.c CRM_CHECK(pcmk__str_eq(ID(old_xml), ID(new_xml), pcmk__str_casei), return); new_xml 2109 lib/common/xml.c if(xml_tracking_changes(new_xml) == FALSE) { new_xml 2110 lib/common/xml.c xml_track_changes(new_xml, NULL, NULL, FALSE); new_xml 2113 lib/common/xml.c mark_xml_changes(old_xml, new_xml, FALSE); new_xml 217 lib/pacemaker/pcmk_sched_constraints.c xmlNode *new_xml = NULL; new_xml 225 lib/pacemaker/pcmk_sched_constraints.c new_xml = copy_xml(xml_obj); new_xml 227 lib/pacemaker/pcmk_sched_constraints.c for (xmlNode *set = first_named_child(new_xml, XML_CONS_TAG_RSC_SET); new_xml 244 lib/pacemaker/pcmk_sched_constraints.c free_xml(new_xml); new_xml 316 lib/pacemaker/pcmk_sched_constraints.c free_xml(new_xml); new_xml 317 lib/pacemaker/pcmk_sched_constraints.c new_xml = NULL; new_xml 319 lib/pacemaker/pcmk_sched_constraints.c return new_xml; new_xml 251 lib/pengine/complex.c xmlNode *new_xml = NULL; new_xml 293 lib/pengine/complex.c new_xml = copy_xml(template); new_xml 294 lib/pengine/complex.c xmlNodeSetName(new_xml, xml_obj->name); new_xml 295 lib/pengine/complex.c crm_xml_replace(new_xml, XML_ATTR_ID, id); new_xml 299 lib/pengine/complex.c crm_xml_add(new_xml, XML_RSC_ATTR_INCARNATION, clone); new_xml 302 lib/pengine/complex.c template_ops = find_xml_node(new_xml, "operations", FALSE); new_xml 308 lib/pengine/complex.c new_child = add_node_copy(new_xml, child_xml); new_xml 347 lib/pengine/complex.c *expanded_xml = new_xml;