[VTY] Introduce "struct vty_app_info" for vty_init() function
diff --git a/include/osmocom/vty/vty.h b/include/osmocom/vty/vty.h
index f82ada1..f017462 100644
--- a/include/osmocom/vty/vty.h
+++ b/include/osmocom/vty/vty.h
@@ -127,8 +127,16 @@
return VTY_NEWLINE;
}
+struct vty_app_info {
+ char *name;
+ char *version;
+ char *copyright;
+ void *tall_ctx;
+ enum node_type (*go_parent_cb)(struct vty *vty);
+};
+
/* Prototypes. */
-void vty_init(const char *name, const char *version, const char *copyright);
+void vty_init(struct vty_app_info *app_info);
int vty_read_config_file(const char *file_name, void *priv);
void vty_init_vtysh (void);
void vty_reset (void);