MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / xode_dup_frompool

Function xode_dup_frompool

modules/xmpp/xode.c:770–785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768}
769
770xode xode_dup_frompool(xode_pool p, xode x)
771{
772 xode x2;
773
774 if(x == NULL)
775 return NULL;
776
777 x2 = xode_new_frompool(p, xode_get_name(x));
778
779 if (xode_has_attribs(x))
780 xode_insert_node(x2, xode_get_firstattrib(x));
781 if (xode_has_children(x))
782 xode_insert_node(x2, xode_get_firstchild(x));
783
784 return x2;
785}
786
787xode xode_wrap(xode x,const char *wrapper)
788{

Callers

nothing calls this directly

Calls 7

xode_new_frompoolFunction · 0.70
xode_get_nameFunction · 0.70
xode_has_attribsFunction · 0.70
xode_insert_nodeFunction · 0.70
xode_get_firstattribFunction · 0.70
xode_has_childrenFunction · 0.70
xode_get_firstchildFunction · 0.70

Tested by

no test coverage detected