/* * cf_log.h */ #ifndef __CF_LOG_H__ #define __CF_LOG_H__ #include "cf_base.h" #define CF_ERROR_LOG_INITIALIZE CF_ERROR_LOG - 1 typedef enum { CF_LOG_WITHOUT_MT = 0, CF_LOG_WITH_MT } E_CF_LOG_MT, CF_LOG_MT; typedef void * CF_Log_Ctx; #ifdef __cplusplus extern "C" { #endif CF_EXPORT int CF_Log_Initialize (void); CF_EXPORT int CF_Log_Finalize (void); CF_EXPORT int CF_Log_CreateCtx (CF_Log_Ctx ctx, const char * path, const int bufferLength, CF_LOG_MT isMT); #ifdef __cplusplus } #endif #endif // #ifndef __CF_LOG_H__