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

Function acl_xml3_node_alloc

lib_acl/src/xml/acl_xml3.c:114–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114ACL_XML3_NODE *acl_xml3_node_alloc(ACL_XML3 *xml)
115{
116 ACL_XML3_NODE *node = (ACL_XML3_NODE*)
117 acl_dbuf_pool_calloc(xml->dbuf, sizeof(ACL_XML3_NODE));
118
119 acl_ring_init(&node->children);
120 acl_ring_init(&node->node);
121
122 node->xml = xml;
123 node->status = ACL_XML3_S_NXT;
124 node->ltag = xml->addr;
125 node->rtag = xml->addr;
126 node->ltag_size = 0;
127 node->rtag_size = 0;
128
129 node->text = xml->addr;
130 node->text_size = 0;
131 node->attr_list = acl_array_dbuf_create(100, xml->dbuf);
132
133 node->iter_head = node_iter_head;
134 node->iter_next = node_iter_next;
135 node->iter_tail = node_iter_tail;
136 node->iter_prev = node_iter_prev;
137
138 return node;
139}
140
141int acl_xml3_node_delete(ACL_XML3_NODE *node)
142{

Callers 4

acl_xml3_dbuf_allocFunction · 0.85
acl_xml3_resetFunction · 0.85
xml_parse_right_ltFunction · 0.85
acl_xml3_updateFunction · 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…