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

int osip_message_get_allow ( const osip_message_t sip,
int  pos,
osip_allow_t **  dest 

Get one Allow 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 52 of file osip_allow.c.

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

  osip_allow_t *allow;

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

Generated by  Doxygen 1.6.0   Back to index