Prevented redefinition of bool, added function void skygw_logmanager_exit(void) to be called by atexit
This commit is contained in:
@ -344,6 +344,24 @@ static void logmanager_done_nomutex(
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @node This function is provided for atexit() system function.
|
||||
*
|
||||
* Parameters:
|
||||
* @param void - <usage>
|
||||
* <description>
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*
|
||||
* @details (write detailed description here)
|
||||
*
|
||||
*/
|
||||
void skygw_logmanager_exit(void)
|
||||
{
|
||||
skygw_logmanager_done(NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* @node End execution of log manager
|
||||
*
|
||||
|
@ -47,6 +47,7 @@ EXTERN_C_BLOCK_BEGIN
|
||||
|
||||
bool skygw_logmanager_init(void** ctx, int argc, char* argv[]);
|
||||
void skygw_logmanager_done(void** ctx);
|
||||
void skygw_logmanager_exit(void);
|
||||
int skygw_log_write(void* ctx, logfile_id_t id, char* str);
|
||||
int skygw_log_flush(logfile_id_t id);
|
||||
int skygw_log_write_flush(void* ctx, logfile_id_t id, char* str);
|
||||
|
Reference in New Issue
Block a user