aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libgb/gprs_bssgp_vty.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-06-16 16:54:06 +0800
committerHarald Welte <laforge@gnumonks.org>2012-06-16 16:59:50 +0800
commitfdd8b3b40dd4499a15558afc10f8d7cfd0041157 (patch)
tree1e5538ed8b9b35b590618f303dec41f79e48082a /openbsc/src/libgb/gprs_bssgp_vty.c
parenta6a20b4ff6e2f921b913295556a1cafed4ce71e8 (diff)
libgb: remove dependencies to openbsc/vty.h and openbsc/gsm_data.h
Rather than using openbsc internal data/functions, we now use only internal and libosmocore-provided ones.
Diffstat (limited to 'openbsc/src/libgb/gprs_bssgp_vty.c')
-rw-r--r--openbsc/src/libgb/gprs_bssgp_vty.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/openbsc/src/libgb/gprs_bssgp_vty.c b/openbsc/src/libgb/gprs_bssgp_vty.c
index 256e8af7f..37919e669 100644
--- a/openbsc/src/libgb/gprs_bssgp_vty.c
+++ b/openbsc/src/libgb/gprs_bssgp_vty.c
@@ -40,10 +40,9 @@
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/misc.h>
-#include <openbsc/vty.h>
-#include <openbsc/gsm_data.h>
#include <openbsc/debug.h>
+#include "common_vty.h"
/* FIXME: this should go to some common file as it is copied
* in vty_interface.c of the BSC */
@@ -52,7 +51,7 @@ static const struct value_string gprs_bssgp_timer_strs[] = {
};
static struct cmd_node bssgp_node = {
- BSSGP_NODE,
+ L_BSSGP_NODE,
"%s(bssgp)#",
1,
};
@@ -68,7 +67,7 @@ DEFUN(cfg_bssgp, cfg_bssgp_cmd,
"bssgp",
"Configure the GPRS BSS Gateway Protocol")
{
- vty->node = BSSGP_NODE;
+ vty->node = L_BSSGP_NODE;
return CMD_SUCCESS;
}
@@ -169,10 +168,10 @@ int gprs_bssgp_vty_init(void)
install_element(CONFIG_NODE, &cfg_bssgp_cmd);
install_node(&bssgp_node, config_write_bssgp);
- install_default(BSSGP_NODE);
- install_element(BSSGP_NODE, &ournode_exit_cmd);
- install_element(BSSGP_NODE, &ournode_end_cmd);
- //install_element(BSSGP_NODE, &cfg_bssgp_timer_cmd);
+ install_default(L_BSSGP_NODE);
+ install_element(L_BSSGP_NODE, &libgb_exit_cmd);
+ install_element(L_BSSGP_NODE, &libgb_end_cmd);
+ //install_element(L_BSSGP_NODE, &cfg_bssgp_timer_cmd);
return 0;
}