Ignore:
Timestamp:
Jul 19, 2011 3:42:28 AM (13 years ago)
Author:
nanang
Message:

Re #1326: Initial code integration from branch 2.0-dev to trunk as "2.0-pre-alpha-svn".

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

  • pjproject/trunk/pjmedia/include/pjmedia/endpoint.h

    r3553 r3664  
    4040#include <pjmedia/codec.h> 
    4141#include <pjmedia/sdp.h> 
     42#include <pjmedia/transport.h> 
    4243 
    4344 
     
    180181 *                      also denotes the maximum number of streams (i.e. 
    181182 *                      the "m=" lines) that will be created in the SDP. 
     183 *                      By convention, if this value is greater than one, 
     184 *                      the first media will be audio and the remaining 
     185 *                      media is video. 
    182186 * @param sock_info     Array of socket transport information. One  
    183187 *                      transport is needed for each media stream, and 
     
    194198                                               pjmedia_sdp_session **p_sdp ); 
    195199 
     200/** 
     201 * Create a "blank" SDP session description. The SDP will contain basic SDP 
     202 * fields such as origin, time, and name, but without any media lines. 
     203 * 
     204 * @param endpt         The media endpoint. 
     205 * @param pool          Pool to allocate memory from. 
     206 * @param sess_name     Optional SDP session name, or NULL to use default 
     207 *                      value. 
     208 * @param origin        Address to put in the origin field. 
     209 * @param p_sdp         Pointer to receive the created SDP session. 
     210 * 
     211 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     212 */ 
     213PJ_DECL(pj_status_t) pjmedia_endpt_create_base_sdp(pjmedia_endpt *endpt, 
     214                                                   pj_pool_t *pool, 
     215                                                   const pj_str_t *sess_name, 
     216                                                   const pj_sockaddr *origin, 
     217                                                   pjmedia_sdp_session **p_sdp); 
     218 
     219/** 
     220 * Create SDP media line for audio media. 
     221 * 
     222 * @param endpt         The media endpoint. 
     223 * @param pool          Pool to allocate memory from. 
     224 * @param si            Socket information. 
     225 * @param options       Option flags, must be zero for now. 
     226 * @param p_m           Pointer to receive the created SDP media. 
     227 * 
     228 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     229 */ 
     230PJ_DECL(pj_status_t) pjmedia_endpt_create_audio_sdp(pjmedia_endpt *endpt, 
     231                                                    pj_pool_t *pool, 
     232                                                    const pjmedia_sock_info*si, 
     233                                                    unsigned options, 
     234                                                    pjmedia_sdp_media **p_m); 
     235 
     236/** 
     237 * Create SDP media line for video media. 
     238 * 
     239 * @param endpt         The media endpoint. 
     240 * @param pool          Pool to allocate memory from. 
     241 * @param si            Socket information. 
     242 * @param options       Option flags, must be zero for now. 
     243 * @param p_m           Pointer to receive the created SDP media. 
     244 * 
     245 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     246 */ 
     247PJ_DECL(pj_status_t) pjmedia_endpt_create_video_sdp(pjmedia_endpt *endpt, 
     248                                                    pj_pool_t *pool, 
     249                                                    const pjmedia_sock_info*si, 
     250                                                    unsigned options, 
     251                                                    pjmedia_sdp_media **p_m); 
    196252 
    197253/** 
Note: See TracChangeset for help on using the changeset viewer.