diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2023-05-03 02:31:16 +0200 |
---|---|---|
committer | neels <nhofmeyr@sysmocom.de> | 2023-05-06 03:49:08 +0000 |
commit | e4b84738b5730e230144c132f1d446f32cf88581 (patch) | |
tree | 502a19ee4bb2f31490a53a0d7ae7e5b59f609152 /src/vty | |
parent | 67d84d2131b3101de7021e0c04a0b5fdda9ee5c3 (diff) |
vty: move struct vty_parent_node to private API
Change-Id: Id2070f03b09feea966c5342361d409551e557d38
Diffstat (limited to 'src/vty')
-rw-r--r-- | src/vty/command.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/vty/command.c b/src/vty/command.c index a60b5447..e67fd860 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -77,6 +77,21 @@ vector cmdvec; /* Host information structure. */ struct host host; +struct vty_parent_node { + struct llist_head entry; + + /*! private data, specified by creator */ + void *priv; + void *index; + + /*! 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; +}; + /* Standard command node structures. */ struct cmd_node auth_node = { AUTH_NODE, |