summaryrefslogtreecommitdiff
path: root/lib/log.h
diff options
context:
space:
mode:
authorEmanuele Di Pascale <emanuele@voltanet.io>2019-01-25 14:40:27 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-02-05 20:55:04 +0100
commit77d9c92609c919fa889a2d7292ec40b8cbdcff77 (patch)
treea37c9a72b197d512f935b8c6e7fbbe7b5dc687f3 /lib/log.h
parentc9b046addadf1497e997790f0b70c3ae99ff8da3 (diff)
lib: add hooks for external logging function
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
Diffstat (limited to 'lib/log.h')
-rw-r--r--lib/log.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/log.h b/lib/log.h
index be1d9fb592..8fb98a02ab 100644
--- a/lib/log.h
+++ b/lib/log.h
@@ -26,6 +26,12 @@
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
+#include <stdarg.h>
+#include "lib/hook.h"
+
+/* Hook for external logging function */
+DECLARE_HOOK(zebra_ext_log, (int priority, const char *format, va_list args),
+ (priority, format, args));
/* Here is some guidance on logging levels to use:
*