summaryrefslogtreecommitdiff
path: root/lib/vty.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-12-04 08:10:42 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-02-28 13:28:43 +0100
commit0798d2760dbcc95521edf68eff3cf2afaf0a8e4e (patch)
tree405f0b559046018c4cbfc65aab3bf97c012a972f /lib/vty.h
parentb2dde56b2c1aa793a476ac6beed2a28dd74e4591 (diff)
lib: implement `terminal monitor` for vtysh
Adds a new logging target that sends log messages to vtysh. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/vty.h')
-rw-r--r--lib/vty.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/vty.h b/lib/vty.h
index 92fbb468a9..e42a3b210f 100644
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -34,6 +34,7 @@
#include "qobj.h"
#include "compiler.h"
#include "northbound.h"
+#include "zlog_live.h"
#ifdef __cplusplus
extern "C" {
@@ -175,6 +176,9 @@ struct vty {
/* CLI command return value (likely CMD_SUCCESS) when pass_fd != -1 */
uint8_t pass_fd_status[4];
+ /* live logging target / terminal monitor */
+ struct zlog_live_cfg live_log;
+
/* IAC handling: was the last character received the
IAC (interpret-as-command) escape character (and therefore the next
character will be the command code)? Refer to Telnet RFC 854. */
@@ -198,9 +202,6 @@ struct vty {
/* Configure lines. */
int lines;
- /* Terminal monitor. */
- int monitor;
-
/* Read and write thread. */
struct thread *t_read;
struct thread *t_write;