Changeset 266 for pjproject/trunk/pjsip/include/pjsip/sip_msg.h
- Timestamp:
- Mar 2, 2006 9:16:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_msg.h
r212 r266 611 611 * @return PJ_SUCCESS on success. 612 612 */ 613 PJ_DECL(pj_status_t) pjsip_msg_body_c lone(pj_pool_t *pool,613 PJ_DECL(pj_status_t) pjsip_msg_body_copy( pj_pool_t *pool, 614 614 pjsip_msg_body *dst_body, 615 615 const pjsip_msg_body *src_body ); 616 616 617 618 /** 619 * Create cloned message body. This will duplicate the contents of the message 620 * body using the \a clone_data member of the source message body. 621 * 622 * @param pool Pool to use to duplicate the message body. 623 * @param body Source message body to duplicate. 624 * 625 * @return The cloned message body on successfull. 626 */ 627 PJ_DECL(pjsip_msg_body*) pjsip_msg_body_clone( pj_pool_t *pool, 628 const pjsip_msg_body *body ); 629 630 631 /** 632 * Create a text message body. Use this function to create message body when 633 * the content is a simple text. For non-text message body (e.g. 634 * pjmedia_sdp_session or pj_xml_node), application must construct the message 635 * manually. 636 * 637 * @param pool Pool to allocate message body and its contents. 638 * @param type MIME type (e.g. "text"). 639 * @param subtype MIME subtype (e.g. "plain"). 640 * @param text The text content to be put in the message body. 641 * 642 * @return A new message body with the specified Content-Type and 643 * text. 644 */ 645 PJ_DECL(pjsip_msg_body*) pjsip_msg_body_create( pj_pool_t *pool, 646 const pj_str_t *type, 647 const pj_str_t *subtype, 648 const pj_str_t *text ); 617 649 618 650 /**
Note: See TracChangeset
for help on using the changeset viewer.