Home --> Documentations --> PJLIB Reference
◆ pj_main_func_ptr
typedef int(* pj_main_func_ptr) (int argc, char *argv[]) |
Type for application main function.
◆ pj_run_app()
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.
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|