diff options
| author | Emanuele Di Pascale <emanuele@voltanet.io> | 2019-01-25 14:40:27 +0100 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2019-02-05 20:55:04 +0100 | 
| commit | 77d9c92609c919fa889a2d7292ec40b8cbdcff77 (patch) | |
| tree | a37c9a72b197d512f935b8c6e7fbbe7b5dc687f3 /lib/log.h | |
| parent | c9b046addadf1497e997790f0b70c3ae99ff8da3 (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.h | 6 | 
1 files changed, 6 insertions, 0 deletions
@@ -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:   *  | 
