chiark / gitweb /
log: introduce log_metav
[elogind.git] / src / log.h
index 7028a13275fce78d0fa91f566881a47aa5dcd4eb..cf9f7fa5696cd8009a0e12270e21d1348e331032 100644 (file)
--- a/src/log.h
+++ b/src/log.h
@@ -24,6 +24,7 @@
 
 #include <syslog.h>
 #include <stdbool.h>
 
 #include <syslog.h>
 #include <stdbool.h>
+#include <stdarg.h>
 
 #include "macro.h"
 
 
 #include "macro.h"
 
@@ -73,6 +74,14 @@ int log_meta(
         const char *func,
         const char *format, ...) _printf_attr_(5,6);
 
         const char *func,
         const char *format, ...) _printf_attr_(5,6);
 
+int log_metav(
+        int level,
+        const char*file,
+        int line,
+        const char *func,
+        const char *format,
+        va_list ap);
+
 _noreturn_ void log_assert_failed(const char *text, const char *file, int line, const char *func);
 _noreturn_ void log_assert_failed_unreachable(const char *text, const char *file, int line, const char *func);
 
 _noreturn_ void log_assert_failed(const char *text, const char *file, int line, const char *func);
 _noreturn_ void log_assert_failed_unreachable(const char *text, const char *file, int line, const char *func);