Changeset 3547 for pjproject/trunk/pjmedia/include/pjmedia/sdp.h
- Timestamp:
- Apr 28, 2011 4:01:40 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/sdp.h
r3327 r3547 48 48 #ifndef PJMEDIA_MAX_SDP_FMT 49 49 # define PJMEDIA_MAX_SDP_FMT 32 50 #endif 51 52 /** 53 * The PJMEDIA_MAX_SDP_BANDW macro defines maximum bandwidth information 54 * lines in a media line. 55 */ 56 #ifndef PJMEDIA_MAX_SDP_BANDW 57 # define PJMEDIA_MAX_SDP_BANDW 4 50 58 #endif 51 59 … … 365 373 PJ_DECL(pjmedia_sdp_conn*) pjmedia_sdp_conn_clone(pj_pool_t *pool, 366 374 const pjmedia_sdp_conn *rhs); 375 376 377 378 /* ************************************************************************** 379 * SDP BANDWIDTH INFO 380 **************************************************************************** 381 */ 382 383 /** 384 * This structure describes SDP bandwidth info ("b=" line). 385 */ 386 typedef struct pjmedia_sdp_bandw 387 { 388 pj_str_t modifier; /**< Bandwidth modifier. */ 389 pj_uint32_t value; /**< Bandwidth value. */ 390 } pjmedia_sdp_bandw; 391 392 393 /** 394 * Clone bandwidth info. 395 * 396 * @param pool Pool to allocate memory for the new bandwidth info. 397 * @param rhs The bandwidth into to clone. 398 * 399 * @return The new bandwidth info. 400 */ 401 PJ_DECL(pjmedia_sdp_bandw*) 402 pjmedia_sdp_bandw_clone(pj_pool_t *pool, const pjmedia_sdp_bandw *rhs); 367 403 368 404 … … 388 424 pj_str_t transport; /**< Transport ("RTP/AVP") */ 389 425 unsigned fmt_count; /**< Number of formats. */ 390 pj_str_t fmt[PJMEDIA_MAX_SDP_FMT]; 426 pj_str_t fmt[PJMEDIA_MAX_SDP_FMT]; /**< Media formats. */ 391 427 } desc; 392 428 393 pjmedia_sdp_conn *conn; /**< Optional connection info. */ 394 unsigned attr_count; /**< Number of attributes. */ 395 pjmedia_sdp_attr*attr[PJMEDIA_MAX_SDP_ATTR]; /**< Attributes. */ 429 pjmedia_sdp_conn *conn; /**< Optional connection info. */ 430 unsigned bandw_count; /**< Number of bandwidth info. */ 431 pjmedia_sdp_bandw *bandw[PJMEDIA_MAX_SDP_BANDW]; /**< Bandwidth info. */ 432 unsigned attr_count; /**< Number of attributes. */ 433 pjmedia_sdp_attr *attr[PJMEDIA_MAX_SDP_ATTR]; /**< Attributes. */ 396 434 397 435 };
Note: See TracChangeset
for help on using the changeset viewer.