Ignore:
Timestamp:
Mar 22, 2012 11:29:20 AM (9 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/src/pjsip-ua/sip_replaces.c

    r3553 r3986  
    163163 
    164164/* Deinitialize Replaces */ 
    165 static void pjsip_replaces_deinit_module(void) 
    166 { 
     165static void pjsip_replaces_deinit_module(pjsip_endpoint *endpt) 
     166{ 
     167    PJ_TODO(provide_initialized_flag_for_each_endpoint); 
     168    PJ_UNUSED_ARG(endpt); 
    167169    is_initialized = PJ_FALSE; 
    168170} 
     
    192194 
    193195    /* Register deinit module to be executed when PJLIB shutdown */ 
    194     if (pj_atexit(&pjsip_replaces_deinit_module) != PJ_SUCCESS) { 
     196    if (pjsip_endpt_atexit(endpt, &pjsip_replaces_deinit_module) != PJ_SUCCESS) 
     197    { 
    195198        /* Failure to register this function may cause this module won't  
    196199         * work properly when the stack is restarted (without quitting  
Note: See TracChangeset for help on using the changeset viewer.