Changeset 498 for pjproject/trunk/pjmedia/include/pjmedia/master_port.h
- Timestamp:
- Jun 12, 2006 10:13:31 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/master_port.h
r404 r498 53 53 * @param u_port Upstream port. 54 54 * @param d_port Downstream port. 55 * @param options Options flags .55 * @param options Options flags, bitmask from #pjmedia_master_port_flag. 56 56 * @param p_m Pointer to receive the master port instance. 57 57 * … … 65 65 66 66 67 68 67 /** 69 68 * Start the media flow. … … 74 73 */ 75 74 PJ_DECL(pj_status_t) pjmedia_master_port_start(pjmedia_master_port *m); 76 77 75 78 76 … … 88 86 89 87 /** 88 * Change the upstream port. Note that application is responsible to destroy 89 * current upstream port (the one that is going to be replaced with the 90 * new port). 91 * 92 * @param m The master port. 93 * @param port Port to be used for upstream port. 94 * 95 * @return PJ_SUCCESS on success. 96 */ 97 PJ_DECL(pj_status_t) pjmedia_master_port_set_uport(pjmedia_master_port *m, 98 pjmedia_port *port); 99 100 101 /** 102 * Get the upstream port. 103 * 104 * @param m The master port. 105 * 106 * @return The upstream port. 107 */ 108 PJ_DECL(pjmedia_port*) pjmedia_master_port_get_uport(pjmedia_master_port*m); 109 110 111 /** 112 * Change the downstream port. Note that application is responsible to destroy 113 * current downstream port (the one that is going to be replaced with the 114 * new port). 115 * 116 * @param m The master port. 117 * @param port Port to be used for downstream port. 118 * 119 * @return PJ_SUCCESS on success. 120 */ 121 PJ_DECL(pj_status_t) pjmedia_master_port_set_dport(pjmedia_master_port *m, 122 pjmedia_port *port); 123 124 125 /** 126 * Get the downstream port. 127 * 128 * @param m The master port. 129 * 130 * @return The downstream port. 131 */ 132 PJ_DECL(pjmedia_port*) pjmedia_master_port_get_dport(pjmedia_master_port*m); 133 134 135 /** 90 136 * Destroy the master port, and optionally destroy the upstream and 91 137 * downstream ports. 92 138 * 93 139 * @param m The master port. 140 * @param destroy_ports If non-zero, the function will destroy both 141 * upstream and downstream ports too. 94 142 * 95 143 * @return PJ_SUCCESS on success. 96 144 */ 97 PJ_DECL(pj_status_t) pjmedia_master_port_destroy(pjmedia_master_port *m); 145 PJ_DECL(pj_status_t) pjmedia_master_port_destroy(pjmedia_master_port *m, 146 pj_bool_t destroy_ports); 98 147 99 148
Note: See TracChangeset
for help on using the changeset viewer.