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

int osip_message_get_header ( const osip_message_t sip,
int  pos,
osip_header_t **  dest 

Get one "unknown" 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 137 of file osip_header.c.

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

  *dest = NULL;
  if (osip_list_size (sip->headers) <= pos)
    return -1;                /* NULL */
  *dest = (osip_header_t *) osip_list_get (sip->headers, pos);
  return 0;

Generated by  Doxygen 1.6.0   Back to index