- Timestamp:
- Dec 26, 2006 3:05:17 AM (18 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r864 r865 2708 2708 PJ_DECL(pjsua_conf_port_id) pjsua_player_get_conf_port(pjsua_player_id id); 2709 2709 2710 2711 /** 2712 * Get the media port for the player. 2713 * 2714 * @param id The player ID. 2715 * @param p_port The media port associated with the player. 2716 * 2717 * @return PJ_SUCCESS on success. 2718 */ 2719 PJ_DECL(pj_status_t) pjsua_player_get_port(pjsua_recorder_id id, 2720 pjmedia_port **p_port); 2710 2721 2711 2722 /** … … 2781 2792 2782 2793 /** 2794 * Get the media port for the recorder. 2795 * 2796 * @param id The recorder ID. 2797 * @param p_port The media port associated with the recorder. 2798 * 2799 * @return PJ_SUCCESS on success. 2800 */ 2801 PJ_DECL(pj_status_t) pjsua_recorder_get_port(pjsua_recorder_id id, 2802 pjmedia_port **p_port); 2803 2804 2805 /** 2783 2806 * Destroy recorder (this will complete recording). 2784 2807 * -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r864 r865 785 785 } 786 786 787 /* 788 * Get the media port for the player. 789 */ 790 PJ_DEF(pj_status_t) pjsua_player_get_port( pjsua_recorder_id id, 791 pjmedia_port **p_port) 792 { 793 PJ_ASSERT_RETURN(id>=0 && id<PJ_ARRAY_SIZE(pjsua_var.player), PJ_EINVAL); 794 PJ_ASSERT_RETURN(pjsua_var.player[id].port != NULL, PJ_EINVAL); 795 PJ_ASSERT_RETURN(p_port != NULL, PJ_EINVAL); 796 797 *p_port = pjsua_var.player[id].port; 798 799 return PJ_SUCCESS; 800 } 787 801 788 802 /* … … 953 967 } 954 968 969 /* 970 * Get the media port for the recorder. 971 */ 972 PJ_DEF(pj_status_t) pjsua_recorder_get_port( pjsua_recorder_id id, 973 pjmedia_port **p_port) 974 { 975 PJ_ASSERT_RETURN(id>=0 && id<PJ_ARRAY_SIZE(pjsua_var.recorder), PJ_EINVAL); 976 PJ_ASSERT_RETURN(pjsua_var.recorder[id].port != NULL, PJ_EINVAL); 977 PJ_ASSERT_RETURN(p_port != NULL, PJ_EINVAL); 978 979 *p_port = pjsua_var.recorder[id].port; 980 return PJ_SUCCESS; 981 } 955 982 956 983 /*
Note: See TracChangeset
for help on using the changeset viewer.