Ignore:
Timestamp:
Sep 15, 2007 8:30:16 AM (17 years ago)
Author:
bennylp
Message:

Ticket #370: Implemented callback notification to application when ICE negotiation fails (via on_call_media_state callback)

File:
1 edited

Legend:

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

    r1112 r1435  
    3939PJ_BEGIN_DECL 
    4040 
     41 
     42/** 
     43 * Structure containing callbacks to receive ICE notifications. 
     44 */ 
     45typedef struct pjmedia_ice_cb 
     46{ 
     47    /** 
     48     * This callback will be called when ICE negotiation completes. 
     49     * 
     50     * @param tp        PJMEDIA ICE transport. 
     51     * @param status    ICE negotiation result, PJ_SUCCESS on success. 
     52     */ 
     53    void    (*on_ice_complete)(pjmedia_transport *tp, 
     54                               pj_status_t status); 
     55 
     56} pjmedia_ice_cb; 
    4157 
    4258/** 
     
    4864 * @param comp_cnt      Number of components to be created. 
    4965 * @param stun_cfg      Pointer to STUN configuration settings. 
     66 * @param cb            Optional callbacks. 
    5067 * @param p_tp          Pointer to receive the media transport instance. 
    5168 * 
     
    5673                                        unsigned comp_cnt, 
    5774                                        pj_stun_config *stun_cfg, 
     75                                        const pjmedia_ice_cb *cb, 
    5876                                        pjmedia_transport **p_tp); 
    5977 
Note: See TracChangeset for help on using the changeset viewer.