Ignore:
Timestamp:
Jul 14, 2011 8:46:19 AM (13 years ago)
Author:
ming
Message:

Re #1278: NSApplication and NSAutoreleasePool management for Mac OS X

Application now needs to call pj_run_app() from its main() function and pass a pointer to the application's main function. For some examples, please refer to aviplay, pjmedia_test, and pjsua.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjlib/src/pj/os_core_unix.c

    r3373 r3643  
    18231823#endif  /* PJ_TERM_HAS_COLOR */ 
    18241824 
     1825/* 
     1826 * pj_run_app() 
     1827 */ 
     1828PJ_DEF(int) pj_run_app(pj_main_func_ptr main_func, int argc, char *argv[], 
     1829                       unsigned flags) 
     1830{ 
     1831    return (*main_func)(argc, argv); 
     1832} 
Note: See TracChangeset for help on using the changeset viewer.