aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp/mgcp_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/mgcp/mgcp_main.c
parent4b037e4117c0c1e02a516c8b3374444f438c70e1 (diff)
[VTY] use new struct vty_app_info in libvty
Diffstat (limited to 'openbsc/src/mgcp/mgcp_main.c')
-rw-r--r--openbsc/src/mgcp/mgcp_main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_main.c b/openbsc/src/mgcp/mgcp_main.c
index 35e7fb1d6..3ccd7343d 100644
--- a/openbsc/src/mgcp/mgcp_main.c
+++ b/openbsc/src/mgcp/mgcp_main.c
@@ -174,6 +174,13 @@ static int read_call_agent(struct bsc_fd *fd, unsigned int what)
return 0;
}
+extern int bsc_vty_go_parent(struct vty *vty);
+
+static struct vty_app_info vty_info = {
+ .name = "OpenBSC MGCP",
+ .version = PACKAGE_VERSION,
+ .go_parent_cb = bsc_vty_go_parent,
+};
int main(int argc, char** argv)
{
@@ -193,7 +200,8 @@ int main(int argc, char** argv)
if (!cfg)
return -1;
- vty_init("OpenBSC MGCP", PACKAGE_VERSION, openbsc_copyright);
+ vty_info.copyright = openbsc_copyright;
+ vty_init(&vty_info);
logging_vty_add_cmds();
mgcp_vty_init();