Changeset 151 in libcf for trunk/include/cf_log.h


Ignore:
Timestamp:
10/31/13 10:17:24 (11 years ago)
Author:
cheese
Message:

#1 fix interface and add util module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cf_log.h

    r128 r151  
    2929
    3030CF_EXPORT int
    31 CF_Log_Initialize       (const int poolSize);
    32 
    33 CF_EXPORT int
    34 CF_Log_Finalize         (void);
    35 
    36 CF_EXPORT int
    37 CF_Log_Open             (const int  mapid,
     31CF_Log_Create           (cf_ctx     * ctx,
    3832                         const char * path,
    3933                         const int  memsize);
    4034
    4135CF_EXPORT int
    42 CF_Log_Close            (const int mapid);
     36CF_Log_Destroy          (cf_ctx ctx);
    4337
    4438CF_EXPORT int
    45 CF_Log_Write            (const int  mapid,
     39CF_Log_Write            (cf_ctx     ctx,
    4640                         const char * prefix,
    4741                         const char * fmt, ...);
    4842
    4943CF_EXPORT int
    50 CF_Log_Flush            (const int mapid);
     44CF_Log_Flush            (cf_ctx ctx);
    5145
    5246CF_EXPORT int
    53 CF_Log_SetMT            (const int      mapid,
    54                          const CF_BOOL  flag);
     47CF_Log_SetMultiThread   (cf_ctx ctx);
     48
     49CF_EXPORT int
     50CF_Log_UnsetMultiThread (cf_ctx ctx);
    5551
    5652#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.