Top | ![]() |
![]() |
![]() |
![]() |
int | prelude_init () |
void | prelude_deinit () |
const char * | prelude_check_version () |
int | prelude_thread_init () |
void | prelude_fork_child () |
void | prelude_fork_parent () |
void | prelude_fork_prepare () |
int prelude_init (int *argc
,char **argv
);
Call this function before using any other Prelude functions in your applications.
It will initialize everything needed to operate the library and parses some standard
command line options. argc
and argv
are adjusted accordingly so your own code will
never see those standard arguments.
void
prelude_deinit (void
);
Call this function if you're done using the library and want to free global shared ressource allocated by libprelude.
const char *
prelude_check_version (const char *req_version
);
If req_version
is NULL this function will return the version of the library.
Otherwise, req_version
will be compared to the current library version. If
the library version is higher or equal, this function will return the current
library version. Otherwise, NULL is returned.