MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / copy_xml

Function copy_xml

lib/common/xml.c:466–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466xmlNode*
467copy_xml(xmlNode *src)
468{
469 xmlDoc *doc = xmlNewDoc((const xmlChar*)"1.0");
470 xmlNode *copy = xmlDocCopyNode(src, doc, 1);
471 xmlDocSetRootElement(doc, copy);
472 xmlSetTreeDoc(copy, doc);
473 return copy;
474}
475
476
477static void crm_xml_err(void * ctx, const char * msg, ...) G_GNUC_PRINTF(2,3);

Callers 15

mon_refresh_displayFunction · 0.85
write_cib_contentsFunction · 0.85
create_remote_stonith_opFunction · 0.85
create_cib_fragment_advFunction · 0.85
cib_perform_opFunction · 0.85
cib_process_replaceFunction · 0.85
apply_cib_diffFunction · 0.85
acl_filter_cibFunction · 0.85
cib_remote_perform_opFunction · 0.85
apply_xml_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected