Ignore:
Timestamp:
Mar 22, 2012 11:29:20 AM (12 years ago)
Author:
nanang
Message:

Close #1466 (using PJLIB outside PJSUA-LIB context):

  • static reference counter for PJLIB init/shutdown.
  • implemented atexit() in PJMEDIA and PJSIP level: pjmedia_endpt_atexit() & pjsip_endpt_atexit().
  • updated pjmedia/transport_srtp.c, pjsip/sip_timer.c, and pjsip/sip_replaces.c to use the new atexit() functions.
  • API change: pjmedia_srtp_init_lib() now requires 'pjmedia_endpt' param.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjmedia/include/pjmedia/endpoint.h

    r3553 r3986  
    5858 
    5959} pjmedia_endpt_flag; 
     60 
     61 
     62/** 
     63 * Type of callback to register to pjmedia_endpt_atexit(). 
     64 */ 
     65typedef void (*pjmedia_endpt_exit_callback)(pjmedia_endpt *endpt); 
    6066 
    6167 
     
    205211 
    206212 
     213/** 
     214 * Register cleanup function to be called by media endpoint when  
     215 * #pjmedia_endpt_destroy() is called. 
     216 * 
     217 * @param endpt         The media endpoint. 
     218 * @param func          The function to be registered. 
     219 * 
     220 * @return              PJ_SUCCESS on success. 
     221 */ 
     222PJ_DECL(pj_status_t) pjmedia_endpt_atexit(pjmedia_endpt *endpt, 
     223                                          pjmedia_endpt_exit_callback func); 
     224 
     225 
     226 
    207227PJ_END_DECL 
    208228 
Note: See TracChangeset for help on using the changeset viewer.