aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-31 16:04:12 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-31 16:04:12 +0200
commit14ce8a0fa4463c9c6bc50143f2ce9b33510fde1d (patch)
tree939b520b6b7d574ae29776348f9a9662ac42fecd
parentf5b4ba367c27d3e573f917dcf2954035aba3d517 (diff)
VTY: libosmocore >= 0.1.9 doesn't define BSC specific VTY nodes anymore
-rw-r--r--openbsc/configure.in2
-rw-r--r--openbsc/include/openbsc/vty.h15
2 files changed, 16 insertions, 1 deletions
diff --git a/openbsc/configure.in b/openbsc/configure.in
index 552f4f0c1..2183d98b4 100644
--- a/openbsc/configure.in
+++ b/openbsc/configure.in
@@ -23,7 +23,7 @@ AC_SEARCH_LIBS(gtp_new, gtp,
AM_CONDITIONAL(HAVE_LIBGTP, test "x$GPRS_LIBGTP" != "x")
PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.1.6)
-PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.1.6)
+PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.1.9)
dnl checks for header files
AC_HEADER_STDC
diff --git a/openbsc/include/openbsc/vty.h b/openbsc/include/openbsc/vty.h
index 26e7d5e4d..ed21e88d2 100644
--- a/openbsc/include/openbsc/vty.h
+++ b/openbsc/include/openbsc/vty.h
@@ -3,6 +3,7 @@
#include <osmocom/vty/vty.h>
#include <osmocom/vty/buffer.h>
+#include <osmocom/vty/command.h>
struct gsm_network;
struct vty;
@@ -17,4 +18,18 @@ extern struct cmd_element cfg_no_description_cmd;
extern struct cmd_element ournode_exit_cmd;
extern struct cmd_element ournode_end_cmd;
+enum bsc_vty_node {
+ GSMNET_NODE = _LAST_OSMOVTY_NODE + 1,
+ BTS_NODE,
+ TRX_NODE,
+ TS_NODE,
+ SUBSCR_NODE,
+ MGCP_NODE,
+ GBPROXY_NODE,
+ SGSN_NODE,
+ NS_NODE,
+ BSSGP_NODE,
+ OML_NODE,
+};
+
#endif