From 4f5883bc6ef83e692625de05e1d7297a0772d4c7 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 16 Jun 2012 16:54:06 +0800 Subject: 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. --- openbsc/src/libgb/gprs_bssgp_vty.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'openbsc/src/libgb/gprs_bssgp_vty.c') diff --git a/openbsc/src/libgb/gprs_bssgp_vty.c b/openbsc/src/libgb/gprs_bssgp_vty.c index 256e8af7..37919e66 100644 --- a/openbsc/src/libgb/gprs_bssgp_vty.c +++ b/openbsc/src/libgb/gprs_bssgp_vty.c @@ -40,10 +40,9 @@ #include #include -#include -#include #include +#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; } -- cgit v1.2.3