diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-14 18:59:17 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-14 18:59:17 +0200 |
commit | 62ab20c5dd85bb8c14a44af73b674494447318e7 (patch) | |
tree | b030427bde17387c6159d8712d74f91bf62edfa5 /openbsc/src/vty/vty.c | |
parent | 197dea95ff55acd86d5800f5a1cf7e339b24064d (diff) |
[VTY] Remove OpenBSC specific node-exit handling from src/vty
The idea is to move the VTY code into libosmocore at some point,
and for that we need to eliminate OpenBSC specifics from it
Diffstat (limited to 'openbsc/src/vty/vty.c')
-rw-r--r-- | openbsc/src/vty/vty.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/vty/vty.c b/openbsc/src/vty/vty.c index 08068560b..986902a01 100644 --- a/openbsc/src/vty/vty.c +++ b/openbsc/src/vty/vty.c @@ -731,6 +731,8 @@ static void vty_backward_word(struct vty *vty) static void vty_down_level(struct vty *vty) { vty_out(vty, "%s", VTY_NEWLINE); + /* FIXME: we need to call the exit function of the specific node + * in question, not this generic one that doesn't know all nodes */ (*config_exit_cmd.func) (NULL, vty, 0, NULL); vty_prompt(vty); vty->cp = 0; @@ -741,6 +743,8 @@ static void vty_end_config(struct vty *vty) { vty_out(vty, "%s", VTY_NEWLINE); + /* FIXME: we need to call the exit function of the specific node + * in question, not this generic one that doesn't know all nodes */ switch (vty->node) { case VIEW_NODE: case ENABLE_NODE: |