- Timestamp:
- Oct 11, 2007 11:21:00 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_parser.c
r1417 r1491 876 876 } 877 877 878 /* Generic function to print message body.879 * This assumes that the 'data' member points to a contigous memory where the880 * actual body is laid.881 */882 static int generic_print_body (pjsip_msg_body *msg_body,883 char *buf, pj_size_t size)884 {885 pjsip_msg_body *body = msg_body;886 if (size < body->len)887 return 0;888 889 pj_memcpy (buf, body->data, body->len);890 return body->len;891 }892 893 878 /* Internal function to parse SIP message */ 894 879 static pjsip_msg *int_parse_msg( pjsip_parse_ctx *ctx, … … 1006 991 body->data = scanner->curptr; 1007 992 body->len = scanner->end - scanner->curptr; 1008 body->print_body = & generic_print_body;993 body->print_body = &pjsip_print_text_body; 1009 994 body->clone_data = &pjsip_clone_text_data; 1010 995
Note: See TracChangeset
for help on using the changeset viewer.