aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-16 19:20:24 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-16 19:20:24 +0200
commit1353f961ef285c23776199419989f5b5039565a1 (patch)
treee528d3a637096a0a83a8349c1fd94877f47fac1d /openbsc/src/vty_interface.c
parent3071d6aa7d84a2412f64de555f0880f9c008b9fa (diff)
VTY: pass program name, version and copyright to vty_init()
This enables us to make the VTY completely independent of any compile-time program-specific information, i.e. one step closer to using VTY as a shared library from multiple programs.
Diffstat (limited to 'openbsc/src/vty_interface.c')
-rw-r--r--openbsc/src/vty_interface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c
index c05847a5c..eaa0eac1d 100644
--- a/openbsc/src/vty_interface.c
+++ b/openbsc/src/vty_interface.c
@@ -41,6 +41,8 @@
#include <openbsc/vty.h>
#include <openbsc/gprs_ns.h>
+#include "../bscconfig.h"
+
static struct gsm_network *gsmnet;
/* FIXME: this should go to some common file */
@@ -1942,13 +1944,14 @@ DEFUN(cfg_ts_e1_subslot,
}
extern int bsc_vty_init_extra(struct gsm_network *net);
+extern const char *openbsc_copyright;
int bsc_vty_init(struct gsm_network *net)
{
gsmnet = net;
cmd_init(1);
- vty_init();
+ vty_init("OpenBSC", PACKAGE_VERSION, openbsc_copyright);
install_element_ve(&show_net_cmd);
install_element_ve(&show_bts_cmd);