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

Function acl_xml2_node_alloc

lib_acl/src/xml/acl_xml2.c:126–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126ACL_XML2_NODE *acl_xml2_node_alloc(ACL_XML2 *xml)
127{
128 ACL_XML2_NODE *node = (ACL_XML2_NODE*)
129 acl_dbuf_pool_calloc(xml->dbuf, sizeof(ACL_XML2_NODE));
130
131 acl_ring_init(&node->children);
132 acl_ring_init(&node->node);
133
134 node->xml = xml;
135 node->status = ACL_XML2_S_NXT;
136 node->ltag = xml->dummy;
137 node->rtag = xml->dummy;
138 node->ltag_size = 0;
139 node->rtag_size = 0;
140
141 node->text = xml->dummy;
142 node->text_size = 0;
143 node->attr_list = acl_array_dbuf_create(100, xml->dbuf);
144
145 node->iter_head = node_iter_head;
146 node->iter_next = node_iter_next;
147 node->iter_tail = node_iter_tail;
148 node->iter_prev = node_iter_prev;
149
150 return node;
151}
152
153int acl_xml2_node_delete(ACL_XML2_NODE *node)
154{

Callers 6

xml_parse_right_ltFunction · 0.85
acl_xml2_updateFunction · 0.85
acl_xml2_create_nodeFunction · 0.85
acl_xml2_dbuf_allocFunction · 0.85
acl_xml2_resetFunction · 0.85

Calls 3

acl_dbuf_pool_callocFunction · 0.85
acl_ring_initFunction · 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…