source: libcf/trunk/include/cf_log.h@ 11

Last change on this file since 11 was 11, checked in by cheese, 11 years ago

#1 add logging module (working), fix some bug code and move NAME_LENGTH definition

File size: 564 bytes
Line 
1/*
2 * cf_log.h
3 */
4#ifndef __CF_LOG_H__
5#define __CF_LOG_H__
6
7#include "cf_base.h"
8
9#define CF_ERROR_LOG_INITIALIZE CF_ERROR_LOG - 1
10
11typedef enum {
12 CF_LOG_WITHOUT_MT = 0,
13 CF_LOG_WITH_MT
14} E_CF_LOG_MT, CF_LOG_MT;
15
16typedef void * CF_Log_Ctx;
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22CF_EXPORT int
23CF_Log_Initialize (void);
24
25CF_EXPORT int
26CF_Log_Finalize (void);
27
28CF_EXPORT int
29CF_Log_CreateCtx (CF_Log_Ctx ctx,
30 const char * path,
31 const int bufferLength,
32 CF_LOG_MT isMT);
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif // #ifndef __CF_LOG_H__
Note: See TracBrowser for help on using the repository browser.