diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2023-05-01 02:59:01 +0200 |
---|---|---|
committer | neels <nhofmeyr@sysmocom.de> | 2023-05-06 03:49:08 +0000 |
commit | 67d84d2131b3101de7021e0c04a0b5fdda9ee5c3 (patch) | |
tree | 30a7499a19babbb8b75093ac9f1411d3e4387724 /include | |
parent | cc9b6999314391b5ba10a26795504aa123d84f00 (diff) |
vty: fix vty->index for implicit go_parent_node
After this patch, most vty_go_parent() functions are really obsolete, as
originally intended: A vty_go_parent() is only needed if the program
requires an action to run on VTY node exit.
vty_transcript_test.vty shows the fixed behavior.
For details, see preceding patch
"vty: show bug in implicit go_parent_node"
I2472daed7436a1947655b06d34eb217e595bc7f3
Change-Id: Id408c678d18ba19b1c1394c3fb657536153d2094
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/vty/vty.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/vty/vty.h b/include/osmocom/vty/vty.h index ed9f439c..155501e9 100644 --- a/include/osmocom/vty/vty.h +++ b/include/osmocom/vty/vty.h @@ -61,6 +61,7 @@ struct vty_parent_node { /*! private data, specified by creator */ void *priv; + void *index; /*! Node status of this vty */ int node; |