diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2013-09-02 13:17:16 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-09-02 20:25:35 +0200 |
commit | 0ae92a950a321835c6693e381e131df38febab2a (patch) | |
tree | bacb84b469c72c18bb63498b4a697a5fcd56464f /openbsc/include | |
parent | 190acf6fd03f7f9a92b3e0044abf455b8a465c33 (diff) |
vty: Use generic 'end' and 'exit' commands
Add bsc_install_default() and replace all install_default()
This patch adds bsc_install_default() which calls install_default()
and add 'exit' and 'end'. All other calls to install_default() are
replaced by calls to bsc_install_default().
Since 'exit' and 'end' are now added automatically to each node, the
explicit registrations of these commands are removed by this patch,
too.
The related tests succeed now without work-arounds (except for the
'config' node itself which is part of libosmocore).
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/vty.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/vty.h b/openbsc/include/openbsc/vty.h index 183fc2510..f74516a07 100644 --- a/openbsc/include/openbsc/vty.h +++ b/openbsc/include/openbsc/vty.h @@ -42,6 +42,8 @@ enum bsc_vty_node { extern int bsc_vty_is_config_node(struct vty *vty, int node); extern void bsc_replace_string(void *ctx, char **dst, const char *newstr); +void bsc_install_default(enum node_type node); + struct log_info; int bsc_vty_init(const struct log_info *cat); int bsc_vty_init_extra(void); |