Ignore:
Timestamp:
May 2, 2007 11:29:37 AM (17 years ago)
Author:
bennylp
Message:

PJSUA-LIB was ported to Symbian and added simple Symbian app. Testing follows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_core_symbian.cpp

    r1235 r1242  
    271271PJ_DEF(pj_status_t) pj_init(void) 
    272272{ 
     273    pj_status_t status; 
     274     
    273275    pj_ansi_strcpy(main_thread.obj_name, "pjthread"); 
    274276 
     
    281283    PJ_LOG(4,(THIS_FILE, "Initializing PJLIB for Symbian OS..")); 
    282284 
    283     TInt err; 
     285    TInt err;  
    284286    err = os->Initialize(); 
    285287    if (err != KErrNone) 
    286288        goto on_error; 
     289     
     290    /* Initialize exception ID for the pool.  
     291     * Must do so after critical section is configured. 
     292     */  
     293    status = pj_exception_id_alloc("PJLIB/No memory", &PJ_NO_MEMORY_EXCEPTION); 
     294    if (status != PJ_SUCCESS) 
     295        return status; 
    287296 
    288297    PJ_LOG(5,(THIS_FILE, "PJLIB initialized.")); 
     
    308317PJ_DEF(void) pj_shutdown(void) 
    309318{ 
    310     unsigned i; 
    311  
    312319    /* Call atexit() functions */ 
    313     for (i=atexit_count-1; i>=0; --i) { 
    314         (*atexit_func[i])(); 
    315     } 
    316     atexit_count = 0; 
     320    while (atexit_count > 0) { 
     321        (*atexit_func[atexit_count-1])(); 
     322        --atexit_count; 
     323    } 
    317324 
    318325    /* Free exception ID */ 
Note: See TracChangeset for help on using the changeset viewer.