aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_hack.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-25 23:31:39 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-25 23:40:38 +0200
commitc31f480f088392e0b01f080175118ae461e5503c (patch)
tree317c2dc7ce2e4e41471f6f9eee91492b375ebe13 /openbsc/src/bsc_hack.c
parent4b037e4117c0c1e02a516c8b3374444f438c70e1 (diff)
[VTY] use new struct vty_app_info in libvty
Diffstat (limited to 'openbsc/src/bsc_hack.c')
-rw-r--r--openbsc/src/bsc_hack.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c
index 739d7a542..a107fcb23 100644
--- a/openbsc/src/bsc_hack.c
+++ b/openbsc/src/bsc_hack.c
@@ -198,10 +198,20 @@ extern int bts_model_unknown_init(void);
extern int bts_model_bs11_init(void);
extern int bts_model_nanobts_init(void);
+extern int bsc_vty_go_parent(struct vty *vty);
+
+static struct vty_app_info vty_info = {
+ .name = "OpenBSC",
+ .version = PACKAGE_VERSION,
+ .go_parent_cb = bsc_vty_go_parent,
+};
+
int main(int argc, char **argv)
{
int rc;
+ vty_info.copyright = openbsc_copyright;
+
log_init(&log_info);
tall_bsc_ctx = talloc_named_const(NULL, 1, "openbsc");
talloc_ctx_init();
@@ -219,7 +229,7 @@ int main(int argc, char **argv)
log_set_all_filter(stderr_target, 1);
/* This needs to precede handle_options() */
- vty_init("OpenBSC", PACKAGE_VERSION, openbsc_copyright);
+ vty_init(&vty_info);
bsc_vty_init();
rc = bsc_bootstrap_network(mncc_recv, config_file);