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

int osip_message_get_call_info ( const osip_message_t sip,
int  pos,
osip_call_info_t **  dest 

Get one Call-info 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_call_info.c.

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

  osip_call_info_t *call_info;

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

Generated by  Doxygen 1.6.0   Back to index