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

int osip_message_get_error_info ( const osip_message_t sip,
int  pos,
osip_error_info_t **  dest 

Get one Error-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_error_info.c.

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

  osip_error_info_t *error_info;

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

Generated by  Doxygen 1.6.0   Back to index