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

Function xode_get_data

modules/xmpp/xode.c:543–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543char* xode_get_data(xode node)
544{
545 xode cur;
546
547 if(node == NULL) return NULL;
548
549 if(xode_get_type(node) == XODE_TYPE_TAG) /* loop till we find a CDATA */
550 {
551 for(cur = xode_get_firstchild(node); cur != NULL; cur = xode_get_nextsibling(cur))
552 if(xode_get_type(cur) == XODE_TYPE_CDATA)
553 return cur->data;
554 }else{
555 return node->data;
556 }
557 return NULL;
558}
559
560int xode_get_datasz(xode node)
561{

Callers 8

stream_node_callbackFunction · 0.70
in_stream_node_callbackFunction · 0.70
_xode_tag2strFunction · 0.70
_xode_tospoolFunction · 0.70
xode_get_tagdataFunction · 0.70
xode_cmpFunction · 0.70
xode_insert_nodeFunction · 0.70
_xode_to_prettystrFunction · 0.70

Calls 3

xode_get_typeFunction · 0.70
xode_get_firstchildFunction · 0.70
xode_get_nextsiblingFunction · 0.70

Tested by

no test coverage detected