Changeset 19 in libcf for trunk/include/cf_log.h
- Timestamp:
- 02/01/13 12:48:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/cf_log.h
r12 r19 14 14 #define CF_ERROR_LOG_UNLOCK_CTX CF_ERROR_LOG - 6 15 15 #define CF_ERROR_LOG_FLUSH CF_ERROR_LOG - 7 16 #define CF_ERROR_LOG_INVALID_MAPID CF_ERROR_LOG - 8 17 #define CF_ERROR_LOG_NOT_MAPPED_ID CF_ERROR_LOG - 9 18 #define CF_ERROR_LOG_ALREADY_MAPPED_ID CF_ERROR_LOG - 10 19 #define CF_ERROR_LOG_NOT_INITIALIZE CF_ERROR_LOG - 11 16 20 17 21 #define CF_LOG_BUFFER_DEFAULT -1 18 22 #define CF_LOG_BUFFER_NO 0 23 24 #define CF_LOG_OPEN(__id,__file,__memsize) \ 25 CF_Log_MapCtxID (__id, CF_Log_CreateCtx (__file, __memsize)) 26 27 #define CF_LOG_WRITE(__id,__pf,__fmt,...) \ 28 CF_Log_Write (CF_Log_GetMappedCtx (__id),__pf,__fmt,##__VA_ARGS__) 29 30 #define CF_LOG_CLOSE CF_Log_UnmapCtxID 19 31 20 32 typedef void * CF_Log_Ctx; … … 35 47 36 48 CF_EXPORT int 49 CF_Log_DestroyCtx (CF_Log_Ctx ctx); 50 51 CF_EXPORT int 37 52 CF_Log_SetMultiThread (CF_Log_Ctx ctx); 38 53 39 54 CF_EXPORT int 40 55 CF_Log_UnsetMultiThread (CF_Log_Ctx ctx); 41 42 CF_EXPORT int43 CF_Log_DestroyCtx (CF_Log_Ctx ctx);44 56 45 57 CF_EXPORT int … … 51 63 CF_Log_Flush (CF_Log_Ctx ctx); 52 64 65 CF_EXPORT int 66 CF_Log_MapCtxID (const int mapid, 67 const CF_Log_Ctx ctx); 68 69 CF_EXPORT int 70 CF_Log_UnmapCtxID (const int mapid); 71 72 CF_EXPORT CF_Log_Ctx 73 CF_Log_GetMappedCtx (const int mapid); 74 53 75 #ifdef __cplusplus 54 76 }
Note:
See TracChangeset
for help on using the changeset viewer.