diff options
Diffstat (limited to 'pjlib/include/pj/types.h')
-rw-r--r-- | pjlib/include/pj/types.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pjlib/include/pj/types.h b/pjlib/include/pj/types.h index d15bd60f..df3b92e4 100644 --- a/pjlib/include/pj/types.h +++ b/pjlib/include/pj/types.h @@ -291,9 +291,29 @@ typedef int pj_exception_id_t; * function is to initialize static library data, such as character table used * in random string generation, and to initialize operating system dependent * functionality (such as WSAStartup() in Windows). + * + * @return PJ_SUCCESS on success. */ PJ_DECL(pj_status_t) pj_init(void); + +/** + * Shutdown PJLIB. + */ +PJ_DECL(void) pj_shutdown(void); + +/** + * Register cleanup function to be called by PJLIB when pj_shutdown() is + * called. + * + * @param func The function to be registered. + * + * @return PJ_SUCCESS on success. + */ +PJ_DECL(pj_status_t) pj_atexit(void (*func)(void)); + + + /** * Swap the byte order of an 16bit data. * |