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/pjsip/src/pjsip-ua/sip_timer.c

    r3553 r3986  
    496496 
    497497/* Deinitialize Session Timers */ 
    498 static void pjsip_timer_deinit_module(void) 
    499 { 
     498static void pjsip_timer_deinit_module(pjsip_endpoint *endpt) 
     499{ 
     500    PJ_TODO(provide_initialized_flag_for_each_endpoint); 
     501    PJ_UNUSED_ARG(endpt); 
    500502    is_initialized = PJ_FALSE; 
    501503} 
     
    532534 
    533535    /* Register deinit module to be executed when PJLIB shutdown */ 
    534     if (pj_atexit(&pjsip_timer_deinit_module) != PJ_SUCCESS) { 
     536    if (pjsip_endpt_atexit(endpt, &pjsip_timer_deinit_module) != PJ_SUCCESS) { 
    535537        /* Failure to register this function may cause this module won't  
    536538         * work properly when the stack is restarted (without quitting  
Note: See TracChangeset for help on using the changeset viewer.