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
|
Rev | Line | |
---|
[11] | 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 |
|
---|
| 11 | typedef enum {
|
---|
| 12 | CF_LOG_WITHOUT_MT = 0,
|
---|
| 13 | CF_LOG_WITH_MT
|
---|
| 14 | } E_CF_LOG_MT, CF_LOG_MT;
|
---|
| 15 |
|
---|
| 16 | typedef void * CF_Log_Ctx;
|
---|
| 17 |
|
---|
| 18 | #ifdef __cplusplus
|
---|
| 19 | extern "C" {
|
---|
| 20 | #endif
|
---|
| 21 |
|
---|
| 22 | CF_EXPORT int
|
---|
| 23 | CF_Log_Initialize (void);
|
---|
| 24 |
|
---|
| 25 | CF_EXPORT int
|
---|
| 26 | CF_Log_Finalize (void);
|
---|
| 27 |
|
---|
| 28 | CF_EXPORT int
|
---|
| 29 | CF_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.