Find an "unknown" header. (not defined in oSIP)
Definition at line 153 of file osip_header.c. References osip_message::headers, osip_header::hname, osip_list_get(), and osip_list_size(). Referenced by eXosip_register(), and osip_message_set_header(). { int i; osip_header_t *tmp; *dest = NULL; i = pos; if (osip_list_size (sip->headers) <= pos) return -1; /* NULL */ while (osip_list_size (sip->headers) > i) { tmp = (osip_header_t *) osip_list_get (sip->headers, i); if (osip_strcasecmp (tmp->hname, hname) == 0) { *dest = tmp; return i; } i++; } return -1; /* not found */ }
|