[VTY] use new struct vty_app_info in libvty
diff --git a/openbsc/src/mgcp/mgcp_main.c b/openbsc/src/mgcp/mgcp_main.c
index 35e7fb1..3ccd734 100644
--- a/openbsc/src/mgcp/mgcp_main.c
+++ b/openbsc/src/mgcp/mgcp_main.c
@@ -174,6 +174,13 @@
 	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 @@
 	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();