Prevented redefinition of bool, added function void skygw_logmanager_exit(void) to be called by atexit
This commit is contained in:
parent
89a744c8e5
commit
1888b8a517
@ -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);
|
||||
|
@ -42,7 +42,9 @@
|
||||
#elif !defined(TRUE) && !defined(FALSE)
|
||||
typedef enum {FALSE=0, TRUE} bool;
|
||||
#else
|
||||
#define bool int
|
||||
# if !defined(bool)
|
||||
# define bool int
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif /* SKYGW_TYPES_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user