vzlogger/include/common.h

30 lines
498 B
C
Raw Permalink Normal View History

#ifndef _COMMON_H_
#define _COMMON_H_
#include <stdarg.h>
2012-02-05 18:14:01 +01:00
#include "../config.h" /* GNU buildsystem config */
/* enumerations */
typedef enum {
log_error = -1,
log_warning = 0,
log_info = 5,
log_debug = 10,
log_finest = 15
} log_level_t;
/* types */
typedef unsigned char bool;
/* constants */
#define SUCCESS 0
#define ERR -1
#define ERR_NOT_FOUND -2
#define ERR_INVALID_TYPE -3
/* prototypes */
void print(log_level_t lvl, const char *format, void *id, ... );
#endif /* _COMMON_H_ */