Ignore:
Timestamp:
Feb 21, 2006 12:11:18 AM (18 years ago)
Author:
bennylp
Message:

Initial conference implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/stream.h

    r203 r205  
    2929#include <pjmedia/codec.h> 
    3030#include <pjmedia/endpoint.h> 
     31#include <pjmedia/port.h> 
    3132#include <pj/sock.h> 
    3233 
     
    9899 
    99100 
    100 /** 
    101  * Stream ports. 
    102  */ 
    103 struct pjmedia_stream_port 
    104 { 
    105     /** 
    106      * Sink port. 
    107      */ 
    108     pj_status_t (*put_frame)(const pj_int16_t *frame, pj_size_t frame_cnt); 
    109  
    110     /** 
    111      * Source port. 
    112      */ 
    113     pj_status_t (*get_frame)(pj_int16_t *frame, pj_size_t frame_cnt); 
    114 }; 
    115  
    116101 
    117102/** 
     
    141126 */ 
    142127PJ_DECL(pj_status_t) pjmedia_stream_destroy(pjmedia_stream *stream); 
     128 
     129/** 
     130 * Get the port interface of the stream. 
     131 * 
     132 * @param stream        The media stream. 
     133 * @param p_port        Pointer to receive the port interface. 
     134 * 
     135 * @return              PJ_SUCCESS on success. 
     136 */ 
     137PJ_DECL(pj_status_t) pjmedia_stream_get_port(pjmedia_stream *stream, 
     138                                             pjmedia_port **p_port ); 
     139 
    143140 
    144141/** 
Note: See TracChangeset for help on using the changeset viewer.