diff options
Diffstat (limited to 'include/osmocom/vty/vty.h')
-rw-r--r-- | include/osmocom/vty/vty.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/osmocom/vty/vty.h b/include/osmocom/vty/vty.h index 544e1fa0..02ba03ee 100644 --- a/include/osmocom/vty/vty.h +++ b/include/osmocom/vty/vty.h @@ -3,6 +3,8 @@ #include <stdio.h> #include <stdarg.h> +#include <osmocom/core/linuxlist.h> + /*! \defgroup vty VTY (Virtual TTY) interface * @{ * \file vty.h */ @@ -45,6 +47,20 @@ enum vty_type { VTY_SHELL_SERV }; +struct vty_parent_node { + struct llist_head entry; + + /*! private data, specified by creator */ + void *priv; + + /*! Node status of this vty */ + int node; + + /*! When reading from a config file, these are the indenting characters expected for children of + * this VTY node. */ + char *indent; +}; + /*! Internal representation of a single VTY */ struct vty { /*! underlying file (if any) */ @@ -134,6 +150,13 @@ struct vty { /*! In configure mode. */ int config; + + /*! List of parent nodes, last item is the outermost parent. */ + struct llist_head parent_nodes; + + /*! When reading from a config file, these are the indenting characters expected for children of + * the current VTY node. */ + char *indent; }; /* Small macro to determine newline is newline only or linefeed needed. */ |