summaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'log.h')
-rw-r--r--log.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/log.h b/log.h
new file mode 100644
index 0000000..08477e9
--- /dev/null
+++ b/log.h
@@ -0,0 +1,18 @@
+#ifndef LOG_H
+#define LOG_H
+
+#include <stdarg.h>
+
+typedef enum log_output log_output;
+
+enum log_output {
+ LOG_OUT_SYSLOG,
+ LOG_OUT_STDERR,
+ LOG_OUT_STDOUT,
+ LOG_OUT_NONE,
+};
+
+extern void vprintlog(log_output output_type, int priority, const char *fmt, va_list args);
+
+#endif
+