Ignore:
Timestamp:
Mar 22, 2012 11:29:20 AM (8 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/pjsip/include/pjsip/sip_endpoint.h

    r3828 r3986  
    6363 */ 
    6464 
     65 
     66/** 
     67 * Type of callback to register to pjsip_endpt_atexit(). 
     68 */ 
     69typedef void (*pjsip_endpt_exit_callback)(pjsip_endpoint *endpt); 
     70 
     71 
    6572/** 
    6673 * Create an instance of SIP endpoint from the specified pool factory. 
     
    512519 
    513520 
     521/** 
     522 * Register cleanup function to be called by SIP endpoint when  
     523 * #pjsip_endpt_destroy() is called. 
     524 * 
     525 * @param endpt         The SIP endpoint. 
     526 * @param func          The function to be registered. 
     527 * 
     528 * @return              PJ_SUCCESS on success. 
     529 */ 
     530PJ_DECL(pj_status_t) pjsip_endpt_atexit(pjsip_endpoint *endpt, 
     531                                        pjsip_endpt_exit_callback func); 
     532 
    514533 
    515534/** 
Note: See TracChangeset for help on using the changeset viewer.