parent
311633a0ae
commit
122c24ab35
|
@ -1,13 +1,17 @@
|
||||||
#ifndef _ULOG_API_H
|
#ifndef _ULOG_API_H
|
||||||
#define _ULOG_API_H
|
#define _ULOG_API_H
|
||||||
|
|
||||||
|
#include <syslog.h>
|
||||||
|
|
||||||
|
#include "common_types.h"
|
||||||
|
|
||||||
#define MAX_MODULE_NAME_SZ 16
|
#define MAX_MODULE_NAME_SZ 16
|
||||||
|
|
||||||
typedef struct _ulog {
|
typedef struct _ulog {
|
||||||
char module_name[MAX_MODULE_NAME_SZ];
|
char module_name[MAX_MODULE_NAME_SZ];
|
||||||
} ulog_t;
|
} ulog_t;
|
||||||
|
|
||||||
ulog_t *ulog_init(const char *module_name);
|
ulog_t *ulog_init(const char *module_name, u8 is_print);
|
||||||
void ulog_close(ulog_t *log);
|
void ulog_close(ulog_t *log);
|
||||||
void ulog_record(const ulog_t *log, int level, const char *fmt, ...);
|
void ulog_record(const ulog_t *log, int level, const char *fmt, ...);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue