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

int osip_message_get_accept_encoding ( const osip_message_t sip,
int  pos,
osip_accept_encoding_t **  dest 

Get one Accept-encoding 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 56 of file osip_accept_encoding.c.

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

  osip_accept_encoding_t *accept_encoding;

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

Generated by  Doxygen 1.6.0   Back to index