42 lines
659 B
C
42 lines
659 B
C
#include "iLog.h"
|
|
|
|
#include <stddef.h>
|
|
static ILog *instance = NULL;
|
|
|
|
ILog *getInstance(void)
|
|
{
|
|
return instance;
|
|
}
|
|
|
|
void setILog(ILog *impl)
|
|
{
|
|
instance = impl;
|
|
}
|
|
|
|
static void log_init_abs(ILog *impl)
|
|
{}
|
|
|
|
static void log_unInit_abs(ILog *impl)
|
|
{}
|
|
|
|
static void ub_log_fmt_abs(ILog *log, const LogLeveL level, const char *fmt, ...)
|
|
{}
|
|
|
|
void init_Log_abs(ILog *log)
|
|
{
|
|
log->log_fmt = ub_log_fmt_abs;
|
|
log->init = log_init_abs;
|
|
log->unInit = log_unInit_abs;
|
|
}
|
|
ILog *new_Log_abs(void)
|
|
{
|
|
ILog *impl = malloc(sizeof(ILog));
|
|
init_Log_abs(impl);
|
|
}
|
|
void del_Log_abs(ILog *impl)
|
|
{
|
|
if (impl) {
|
|
free(impl);
|
|
impl = NULL;
|
|
}
|
|
} |