aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gb_proxy_main.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/gprs/gb_proxy_main.c
parent4b037e4117c0c1e02a516c8b3374444f438c70e1 (diff)
[VTY] use new struct vty_app_info in libvty
Diffstat (limited to 'openbsc/src/gprs/gb_proxy_main.c')
-rw-r--r--openbsc/src/gprs/gb_proxy_main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gb_proxy_main.c b/openbsc/src/gprs/gb_proxy_main.c
index 208ae47ca..87efb21a5 100644
--- a/openbsc/src/gprs/gb_proxy_main.c
+++ b/openbsc/src/gprs/gb_proxy_main.c
@@ -185,6 +185,14 @@ static void handle_options(int argc, char **argv)
extern void *tall_msgb_ctx;
+extern int bsc_vty_go_parent(struct vty *vty);
+
+static struct vty_app_info vty_info = {
+ .name = "Osmocom Gb Proxy",
+ .version = PACKAGE_VERSION,
+ .go_parent_cb = bsc_vty_go_parent,
+};
+
int main(int argc, char **argv)
{
struct gsm_network dummy_network;
@@ -204,7 +212,8 @@ int main(int argc, char **argv)
log_add_target(stderr_target);
log_set_all_filter(stderr_target, 1);
- vty_init("Osmocom Gb Proxy", PACKAGE_VERSION, openbsc_copyright);
+ vty_info.copyright = openbsc_copyright;
+ vty_init(&vty_info);
logging_vty_add_cmds();
gbproxy_vty_init();