Changeset 2146 for pjproject/trunk/pjsip/src/pjsip/sip_msg.c
- Timestamp:
- Jul 16, 2008 12:31:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_msg.c
r2039 r2146 362 362 } 363 363 364 PJ_DEF(void*) pjsip_msg_find_hdr_by_names( const pjsip_msg *msg, 365 const pj_str_t *name, 366 const pj_str_t *sname, 367 const void *start) 368 { 369 const pjsip_hdr *hdr=(const pjsip_hdr*)start, *end=&msg->hdr; 370 371 if (hdr == NULL) { 372 hdr = msg->hdr.next; 373 } 374 for (; hdr!=end; hdr = hdr->next) { 375 if (pj_stricmp(&hdr->name, name) == 0) 376 return (void*)hdr; 377 if (pj_stricmp(&hdr->name, sname) == 0) 378 return (void*)hdr; 379 } 380 return NULL; 381 } 382 364 383 PJ_DEF(void*) pjsip_msg_find_remove_hdr( pjsip_msg *msg, 365 384 pjsip_hdr_e hdr_type, void *start)
Note: See TracChangeset
for help on using the changeset viewer.