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

Function mime_node_delete

lib_acl_cpp/src/mime/internal/mime_state.cpp:167–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167int mime_node_delete(MIME_NODE *node)
168{
169 ACL_RING *next;
170 MIME_NODE *node_next;
171 int n = 1;
172
173 while ((next = acl_ring_pop_head(&node->children)) != NULL) {
174 node_next = acl_ring_to_appl(next, MIME_NODE, node);
175 n += mime_node_delete(node_next);
176 }
177
178 node->state->node_cnt--;
179 mime_node_free(node);
180 return (n);
181}
182
183void mime_node_add_child(MIME_NODE *parent, MIME_NODE *child)
184{

Callers 2

mime_state_freeFunction · 0.85
mime_state_resetFunction · 0.85

Calls 2

acl_ring_pop_headFunction · 0.85
mime_node_freeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…