aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/vty/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/include/vty/command.h')
-rw-r--r--openbsc/include/vty/command.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsc/include/vty/command.h b/openbsc/include/vty/command.h
index 38d90b460..ec594ed1b 100644
--- a/openbsc/include/vty/command.h
+++ b/openbsc/include/vty/command.h
@@ -57,6 +57,10 @@ struct host {
/* Banner configuration. */
const char *motd;
char *motdfile;
+
+ const char *prog_name;
+ const char *prog_version;
+ const char *prog_copyright;
};
/* There are some command levels which called from command node. */
@@ -377,7 +381,8 @@ extern struct cmd_element config_list_cmd;
char *host_config_file();
void host_config_set(const char *);
-void print_version(const char *);
+/* This is called from main when a daemon is invoked with -v or --version. */
+void print_version(int print_copyright);
extern void *tall_vty_cmd_ctx;