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

Function iterator_next

map.c:598–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598int iterator_next( map_iterator_t * it )
599{
600
601 struct avl_node *q, *p; /* Current node and its child. */
602
603 if( it == NULL || it->map ==NULL || it->node == NULL)
604 return -1;
605
606 if( it->node->avl_link[1] )
607 {
608 it->node = it->node->avl_link[1];
609 while( it->node->avl_link[0] )
610 it->node = it->node->avl_link[0];
611
612 }
613 else
614 {
615
616 for (p = it->node, q = p->avl_parent ; ; p = q, q = q->avl_parent)
617 if (q == NULL || p == q->avl_link[0])
618 {
619 it->node = q;
620 return 0;
621 }
622 }
623
624 return 0;
625}
626
627
628int iterator_prev( map_iterator_t * it )

Callers 15

__get_avp_nameFunction · 0.85
map_remove_tls_domFunction · 0.85
sort_map_dom_arraysFunction · 0.85
_remove_ip_portFunction · 0.85
mi_usrloc_dumpFunction · 0.85
receive_sync_requestFunction · 0.85
print_udomainFunction · 0.85
get_domain_mem_ucontactsFunction · 0.85
get_ucontact_from_idFunction · 0.85
mem_timer_udomainFunction · 0.85
rl_timerFunction · 0.85
rl_broadcastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected