MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_xml_node_alloc

Function acl_xml_node_alloc

lib_acl/src/xml/acl_xml.c:113–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113ACL_XML_NODE *acl_xml_node_alloc(ACL_XML *xml)
114{
115 ACL_XML_NODE *node = (ACL_XML_NODE*)
116 acl_dbuf_pool_calloc(xml->dbuf, sizeof(ACL_XML_NODE));
117
118 acl_ring_init(&node->children);
119 acl_ring_init(&node->node);
120
121 node->xml = xml;
122 node->status = ACL_XML_S_NXT;
123 node->ltag = acl_vstring_dbuf_alloc(xml->dbuf, 16);
124 node->rtag = acl_vstring_dbuf_alloc(xml->dbuf, 16);
125 node->text = acl_vstring_dbuf_alloc(xml->dbuf, 16);
126 node->attr_list = acl_array_dbuf_create(100, xml->dbuf);
127
128 node->iter_head = node_iter_head;
129 node->iter_next = node_iter_next;
130 node->iter_tail = node_iter_tail;
131 node->iter_prev = node_iter_prev;
132
133 return node;
134}
135
136int acl_xml_node_delete(ACL_XML_NODE *node)
137{

Callers 6

xml_parse_right_ltFunction · 0.85
acl_xml_updateFunction · 0.85
acl_xml_dbuf_allocFunction · 0.85
acl_xml_resetFunction · 0.85
acl_xml_create_nodeFunction · 0.85

Calls 4

acl_dbuf_pool_callocFunction · 0.85
acl_ring_initFunction · 0.85
acl_vstring_dbuf_allocFunction · 0.85
acl_array_dbuf_createFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…