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

int osip_message_get_contact ( const osip_message_t sip,
int  pos,
osip_contact_t **  dest 

Get one Contact 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 109 of file osip_contact.c.

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

  *dest = NULL;
  if (sip == NULL)
    return -1;
  if (osip_list_size (sip->contacts) <= pos)
    return -1;                /* does not exist */
  *dest = (osip_contact_t *) osip_list_get (sip->contacts, pos);
  return pos;

Generated by  Doxygen 1.6.0   Back to index