Changeset 12 in libcf for trunk/include/cf_log.h
- Timestamp:
- 01/31/13 14:40:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/cf_log.h
r11 r12 8 8 9 9 #define CF_ERROR_LOG_INITIALIZE CF_ERROR_LOG - 1 10 #define CF_ERROR_LOG_INVALID_CTX CF_ERROR_LOG - 2 11 #define CF_ERROR_LOG_SET_MULTITHREAD CF_ERROR_LOG - 3 12 #define CF_ERROR_LOG_UNSET_MULTITHREAD CF_ERROR_LOG - 4 13 #define CF_ERROR_LOG_LOCK_CTX CF_ERROR_LOG - 5 14 #define CF_ERROR_LOG_UNLOCK_CTX CF_ERROR_LOG - 6 15 #define CF_ERROR_LOG_FLUSH CF_ERROR_LOG - 7 10 16 11 typedef enum { 12 CF_LOG_WITHOUT_MT = 0, 13 CF_LOG_WITH_MT 14 } E_CF_LOG_MT, CF_LOG_MT; 17 #define CF_LOG_BUFFER_DEFAULT -1 18 #define CF_LOG_BUFFER_NO 0 15 19 16 20 typedef void * CF_Log_Ctx; … … 21 25 22 26 CF_EXPORT int 23 CF_Log_Initialize ( void);27 CF_Log_Initialize (const int logPool); 24 28 25 29 CF_EXPORT int 26 30 CF_Log_Finalize (void); 27 31 32 CF_EXPORT CF_Log_Ctx 33 CF_Log_CreateCtx (const char * path, 34 const int memsize); 35 28 36 CF_EXPORT int 29 CF_Log_CreateCtx (CF_Log_Ctx ctx, 30 const char * path, 31 const int bufferLength, 32 CF_LOG_MT isMT); 37 CF_Log_SetMultiThread (CF_Log_Ctx ctx); 38 39 CF_EXPORT int 40 CF_Log_UnsetMultiThread (CF_Log_Ctx ctx); 41 42 CF_EXPORT int 43 CF_Log_DestroyCtx (CF_Log_Ctx ctx); 44 45 CF_EXPORT int 46 CF_Log_Write (CF_Log_Ctx ctx, 47 const char * prefix, 48 const char * fmt, ...); 49 50 CF_EXPORT int 51 CF_Log_Flush (CF_Log_Ctx ctx); 33 52 34 53 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.