diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-05-30 15:43:08 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-05-30 15:43:08 +0200 |
commit | 1c9022f075387e86269a79ac71f61dd4ac32c421 (patch) | |
tree | 535773b5db20511503bde730cf78339e18b894fd /src/log_file.h | |
parent | 0dc05d5eaf474c30bcb71f77a2c34f521452c0b5 (diff) |
POTD skeleton #83.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/log_file.h')
-rw-r--r-- | src/log_file.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/log_file.h b/src/log_file.h new file mode 100644 index 0000000..e119f5d --- /dev/null +++ b/src/log_file.h @@ -0,0 +1,24 @@ +#ifndef POTD_LOG_FILE_H +#define POTD_LOG_FILE_H 1 + +#include "log.h" + +#define LOG_FILE_FUNCS log_open_file, log_close_file, \ + log_fmt_file, log_fmtex_file, log_fmtexerr_file + +extern char *log_file; + + +int log_open_file(void); + +void log_close_file(void); + +void log_fmt_file(log_priority prio, const char *fmt, ...); + +void log_fmtex_file(log_priority prio, const char *srcfile, + size_t line, const char *fmt, ...); + +void log_fmtexerr_file(log_priority prio, const char *srcfile, + size_t line, const char *fmt, ...); + +#endif |