diff options
Diffstat (limited to 'lib/vty.h')
| -rw-r--r-- | lib/vty.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -21,6 +21,9 @@ #ifndef _ZEBRA_VTY_H #define _ZEBRA_VTY_H +#include <sys/types.h> +#include <regex.h> + #include "thread.h" #include "log.h" #include "sockunion.h" @@ -47,6 +50,10 @@ struct vty { /* Failure count */ int fail; + /* Output filer regex */ + bool filter; + regex_t include; + /* Output buffer. */ struct buffer *obuf; @@ -223,6 +230,7 @@ extern struct vty *vty_stdio(void (*atclose)(int isexit)); extern int vty_out(struct vty *, const char *, ...) PRINTF_ATTRIBUTE(2, 3); extern void vty_frame(struct vty *, const char *, ...) PRINTF_ATTRIBUTE(2, 3); extern void vty_endframe(struct vty *, const char *); +bool vty_set_include(struct vty *vty, const char *regexp); extern void vty_read_config(const char *, char *); extern void vty_time_print(struct vty *, int); |
