summaryrefslogtreecommitdiffstats
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
parentMerge pull request #3693 from chiragshah6/ospf_vrf_dev (diff)
downloadfrr-77d9c92609c919fa889a2d7292ec40b8cbdcff77.tar.xz
frr-77d9c92609c919fa889a2d7292ec40b8cbdcff77.zip
lib: add hooks for external logging function
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
Diffstat (limited to '')
-rw-r--r--lib/log.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/log.h b/lib/log.h
index be1d9fb59..8fb98a02a 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:
*