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

Function xode_get_datasz

modules/xmpp/xode.c:560–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560int xode_get_datasz(xode node)
561{
562
563 if( node == NULL )
564 {
565 return (int)(long)NULL;
566 }
567 else if(xode_get_type(node) == XODE_TYPE_TAG) /* loop till we find a CDATA */
568 {
569 xode cur;
570 for(cur = xode_get_firstchild(node); cur != NULL; cur = xode_get_nextsibling(cur))
571 if(xode_get_type(cur) == XODE_TYPE_CDATA)
572 return cur->data_sz;
573 }else{
574 return node->data_sz;
575 }
576 return (int)(long)NULL;
577}
578
579int xode_get_type(xode node)
580{

Callers 1

xode_insert_nodeFunction · 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