Group PJ_APP_OS
- group PJ_APP_OS
Typedefs
-
typedef int (*pj_main_func_ptr)(int argc, char *argv[])
Type for application main function.
Functions
-
int pj_run_app(pj_main_func_ptr main_func, int argc, char *argv[], unsigned flags)
Run the application. This function has to be called in the main thread and after doing the necessary initialization according to the flags provided, it will call main_func() function.
- Parameters:
main_func – Application’s main function.
argc – Number of arguments from the main() function, which will be passed to main_func() function.
argv – The arguments from the main() function, which will be passed to main_func() function.
flags – Flags for application execution, currently must be 0.
- Returns:
main_func()’s return value.
-
typedef int (*pj_main_func_ptr)(int argc, char *argv[])