From 14ce8a0fa4463c9c6bc50143f2ce9b33510fde1d Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 31 May 2010 16:04:12 +0200 Subject: [PATCH] VTY: libosmocore >= 0.1.9 doesn't define BSC specific VTY nodes anymore --- openbsc/configure.in | 2 +- openbsc/include/openbsc/vty.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) 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 #include +#include 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