Logo Search packages:      
Sourcecode: wengophone version File versions  Download package

int osip_message_get_route ( const osip_message_t sip,
int  pos,
osip_route_t **  dest 
)

Get one Route header.

Parameters:
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.

Definition at line 73 of file osip_route.c.

References osip_list_get(), osip_list_size(), and osip_message::routes.

{
  osip_route_t *route;

  *dest = NULL;
  if (osip_list_size (sip->routes) <= pos)
    return -1;                /* does not exist */
  route = (osip_route_t *) osip_list_get (sip->routes, pos);
  *dest = route;
  return pos;
}


Generated by  Doxygen 1.6.0   Back to index