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

int osip_message_get_via ( const osip_message_t sip,
int  pos,
osip_via_t **  dest 

Get one Via header.

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

Definition at line 85 of file osip_via.c.

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

  *dest = NULL;
  if (sip == NULL)
    return -1;
  if (osip_list_size (sip->vias) <= pos)
    return -1;
  *dest = (osip_via_t *) osip_list_get (sip->vias, pos);

  return pos;

Generated by  Doxygen 1.6.0   Back to index