From c31f480f088392e0b01f080175118ae461e5503c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 25 May 2010 23:31:39 +0200 Subject: [VTY] use new struct vty_app_info in libvty --- openbsc/src/mgcp/mgcp_main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'openbsc/src/mgcp') 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(); -- cgit v1.2.3