BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJLIB Reference

Typedefs

typedef int(* pj_main_func_ptr) (int argc, char *argv[])
 

Functions

int pj_run_app (pj_main_func_ptr main_func, int argc, char *argv[], unsigned flags)
 

Detailed Description

Typedef Documentation

◆ pj_main_func_ptr

typedef int(* pj_main_func_ptr) (int argc, char *argv[])

Type for application main function.

Function Documentation

◆ 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_funcApplication's main function.
argcNumber of arguments from the main() function, which will be passed to main_func() function.
argvThe arguments from the main() function, which will be passed to main_func() function.
flagsFlags 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.