summaryrefslogtreecommitdiff
path: root/lib/zlog.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-01-25 22:11:44 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2024-03-10 12:42:02 +0100
commit5f16c640c248bba898addb3ff36b84d212f6e8e6 (patch)
tree97ba2b439fdf292edefd36e1e6eec0bca21bea25 /lib/zlog.h
parentaa6ceeeb5b1f92280ee79716e68d31c9a8686230 (diff)
lib: allow recirculating/relaying log messages
This is primarily intended for ldpd with its split-process architecture. The LDE/LDPE subprocesses currently lose the extended zlog functionality. The zlog_live target already encapsulates all necessary bits for vtysh. Reuse it for a relay function to be used in the main ldpd process. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/zlog.h')
-rw-r--r--lib/zlog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/zlog.h b/lib/zlog.h
index 27401d51fb..9d93979957 100644
--- a/lib/zlog.h
+++ b/lib/zlog.h
@@ -125,6 +125,9 @@ static inline void zlog_ref(const struct xref_logmsg *xref,
extern void zlog_sigsafe(const char *text, size_t len);
+/* recirculate a log message from zlog_live */
+extern void zlog_recirculate_live_msg(uint8_t *data, size_t len);
+
/* extra priority value to disable a target without deleting it */
#define ZLOG_DISABLED (LOG_EMERG-1)