diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-04-03 22:32:49 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-04-03 22:32:49 +0000 |
commit | bd69f33ce0b49e8d973c8ea3ca43ca91228c01a5 (patch) | |
tree | cde486b75da333ac6d90dc8c3560f8be54fd2021 /pjmedia/include | |
parent | 185dff07f5d4fdb42fa21c9c90b40b518afdfcf9 (diff) |
Moved private create session info from SDP to public API
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@374 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r-- | pjmedia/include/pjmedia/session.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia/session.h b/pjmedia/include/pjmedia/session.h index 1335bd5f..898744d4 100644 --- a/pjmedia/include/pjmedia/session.h +++ b/pjmedia/include/pjmedia/session.h @@ -67,6 +67,27 @@ struct pjmedia_session_info /** + * Initialize stream info from SDP media lines. + * + * @param si Stream info structure to be initialized. + * @param pool Pool. + * @param endpt Pjmedia endpoint. + * @param local Local SDP session descriptor. + * @param remote Remote SDP session descriptor. + * @param stream_idx Media stream index in the session descriptor. + * + * @return PJ_SUCCESS if stream info is successfully initialized. + */ +PJ_DECL(pj_status_t) pjmedia_stream_info_from_sdp( + pjmedia_stream_info *si, + pj_pool_t *pool, + pjmedia_endpt *endpt, + const pjmedia_sdp_session *local, + const pjmedia_sdp_session *remote, + unsigned stream_idx); + + +/** * Create media session based on the local and remote SDP. * The session will start immediately. * |