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

Function create_xml_node

lib/common/xml.c:417–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417xmlNode*
418create_xml_node(xmlNode *parent, const char *name)
419{
420 xmlDoc *doc = NULL;
421 xmlNode *node = NULL;
422
423 if (name == NULL || name[0] == 0) {
424 return NULL;
425 }
426
427 if(parent == NULL) {
428 doc = xmlNewDoc((const xmlChar*)"1.0");
429 node = xmlNewDocRawNode(doc, NULL, (const xmlChar*)name, NULL);
430 xmlDocSetRootElement(doc, node);
431
432 } else {
433 doc = getDocPtr(parent);
434 node = xmlNewDocRawNode(doc, NULL, (const xmlChar*)name, NULL);
435 xmlAddChild(parent, node);
436 }
437 return node;
438}
439
440
441void

Callers 15

mainFunction · 0.85
do_workFunction · 0.85
set_resource_attrFunction · 0.85
delete_resource_attrFunction · 0.85
send_lrm_rsc_opFunction · 0.85
move_resourceFunction · 0.85
mainFunction · 0.85
set_ticket_state_attrFunction · 0.85
attrd_trigger_updateFunction · 0.85
create_node_entryFunction · 0.85
inject_node_stateFunction · 0.85

Calls 1

getDocPtrFunction · 0.85

Tested by 1

mainFunction · 0.68