Prevented redefinition of bool, added function void skygw_logmanager_exit(void) to be called by atexit

This commit is contained in:
vraatikka 2013-06-28 11:39:00 +03:00
parent 89a744c8e5
commit 1888b8a517
3 changed files with 22 additions and 1 deletions

View File

@ -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
*

View File

@ -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);

View File

@ -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 */