Ignore:
Timestamp:
Jul 19, 2011 3:42:28 AM (13 years ago)
Author:
nanang
Message:

Re #1326: Initial code integration from branch 2.0-dev to trunk as "2.0-pre-alpha-svn".

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

  • pjproject/trunk/pjlib/include/pj/os.h

    r3553 r3664  
    14351435/* **************************************************************************/ 
    14361436/** 
     1437 * @defgroup PJ_APP_OS Application execution 
     1438 * @ingroup PJ_OS 
     1439 * @{ 
     1440 */ 
     1441 
     1442/* Type for main function. */ 
     1443typedef int (*pj_main_func_ptr)(int argc, char *argv[]); 
     1444 
     1445/** 
     1446 * Run the application. This function has to be called in the main thread 
     1447 * and after doing the necessary initialization according to the flags 
     1448 * provided, it will call main_func() function. 
     1449 * 
     1450 * @param main_func Application's main function. 
     1451 * @param argc      Number of arguments from the main() function, which 
     1452 *                  will be passed to main_func() function. 
     1453 * @param argv      The arguments from the main() function, which will 
     1454 *                  be passed to main_func() function. 
     1455 * @param flags     Flags for application execution, currently must be 0. 
     1456 * 
     1457 * @return          main_func()'s return value. 
     1458 */ 
     1459int pj_run_app(pj_main_func_ptr main_func, int argc, char *argv[], 
     1460               unsigned flags); 
     1461 
     1462/** @} */ 
     1463 
     1464 
     1465/* **************************************************************************/ 
     1466/** 
    14371467 * Internal PJLIB function to initialize the threading subsystem. 
    14381468 * @return          PJ_SUCCESS or the appropriate error code. 
Note: See TracChangeset for help on using the changeset viewer.