Changeset 107 for pjproject/trunk/pjsip/include/pjsip/sip_msg.h
- Timestamp:
- Jan 5, 2006 11:35:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_msg.h
r106 r107 500 500 * content type found in Content-Type header. 501 501 * 502 * For outgoing messages, application m ustfill in this member with502 * For outgoing messages, application may fill in this member with 503 503 * appropriate value, because the stack will generate Content-Type header 504 504 * based on the value specified here. 505 * 506 * If the content_type is empty, no Content-Type AND Content-Length header 507 * will be added to the message. The stack assumes that application adds 508 * these headers themselves. 505 509 */ 506 510 pjsip_media_type content_type; … … 544 548 char *buf, pj_size_t size); 545 549 550 /** Clone the data part only of this message body. Note that this only 551 * duplicates the data part of the body instead of the whole message 552 * body. If application wants to duplicate the entire message body 553 * structure, it must call #pjsip_msg_body_clone(). 554 * 555 * @param pool Pool used to clone the data. 556 * @param data The data inside message body, to be cloned. 557 * @param len The length of the data. 558 * 559 * @return New data duplicated from the original data. 560 */ 561 void* (*clone_data)(pj_pool_t *pool, const void *data, unsigned len); 562 546 563 } pjsip_msg_body; 547 564 … … 561 578 PJ_DECL(int) pjsip_print_text_body( pjsip_msg_body *msg_body, 562 579 char *buf, pj_size_t size); 580 581 /** 582 * Clone the message body in src_body to the dst_body. This will duplicate 583 * the contents of the message body using the \a clone_data member of the 584 * source message body. 585 * 586 * @param pool Pool to use to duplicate the message body. 587 * @param dst_body Destination message body. 588 * @param src_body Source message body to duplicate. 589 * 590 * @return PJ_SUCCESS on success. 591 */ 592 PJ_DECL(pj_status_t) pjsip_msg_body_clone(pj_pool_t *pool, 593 pjsip_msg_body *dst_body, 594 const pjsip_msg_body *src_body ); 595 563 596 564 597 /**
Note: See TracChangeset
for help on using the changeset viewer.