aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/vty/vty.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-25 23:00:45 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-25 23:38:19 +0200
commit237f6241f2b91a81b928ce4e3fc1364f61f11eaa (patch)
tree55367ceed33587f5511857a39d2f10448300a873 /include/osmocom/vty/vty.h
parent4ebdf747286541c52311517fbedd0cb128631a61 (diff)
[VTY] Introduce "struct vty_app_info" for vty_init() function
Diffstat (limited to 'include/osmocom/vty/vty.h')
-rw-r--r--include/osmocom/vty/vty.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/osmocom/vty/vty.h b/include/osmocom/vty/vty.h
index f82ada1c..f0174624 100644
--- a/include/osmocom/vty/vty.h
+++ b/include/osmocom/vty/vty.h
@@ -127,8 +127,16 @@ static inline char *vty_newline(struct vty *vty)
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);