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

int osip_message_get_content_disposition ( const osip_message_t sip,
int  pos,
osip_content_disposition_t **  dest 

Get one Content-disposition 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 53 of file osip_content_disposition.c.

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

  osip_content_disposition_t *content_disposition;

  *dest = NULL;
  if (osip_list_size (sip->content_dispositions) <= pos)
    return -1;                /* does not exist */
  content_disposition =
    (osip_content_disposition_t *) osip_list_get (sip->content_dispositions,
  *dest = content_disposition;
  return pos;

Generated by  Doxygen 1.6.0   Back to index