diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-04 11:52:52 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-04 11:52:52 +0200 |
commit | 7127b0295eed1edea29ea88b352c2cfbff59c610 (patch) | |
tree | 5dbcaa6bcbeae16ccad84226a8c400b0b5df071a /openbsc/src/gprs/gb_proxy_vty.c | |
parent | 1ddd9e518e9d2b335249239955174718d35ef6ef (diff) |
gprs: Create a gprs_utils file and move to be shared code in there
We intend to move some of these routines to libosmocore but to avoid
a feature symbol clash we are prefixing these routines with gprs_.
Done with Jacob
Diffstat (limited to 'openbsc/src/gprs/gb_proxy_vty.c')
-rw-r--r-- | openbsc/src/gprs/gb_proxy_vty.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gb_proxy_vty.c b/openbsc/src/gprs/gb_proxy_vty.c index 0be251978..29494c6a8 100644 --- a/openbsc/src/gprs/gb_proxy_vty.c +++ b/openbsc/src/gprs/gb_proxy_vty.c @@ -32,6 +32,7 @@ #include <openbsc/debug.h> #include <openbsc/gb_proxy.h> +#include <openbsc/gprs_utils.h> #include <openbsc/vty.h> #include <osmocom/vty/command.h> @@ -92,7 +93,7 @@ static int config_write_gbproxy(struct vty *vty) if (g_cfg->core_apn_size > 0) { char str[500] = {0}; vty_out(vty, " core-access-point-name %s", - gbprox_apn_to_str(str, g_cfg->core_apn, + gprs_apn_to_str(str, g_cfg->core_apn, g_cfg->core_apn_size)); } else { vty_out(vty, " core-access-point-name none"); @@ -229,7 +230,7 @@ static int set_core_apn(struct vty *vty, const char *apn, const char *filter) g_cfg->core_apn = talloc_realloc_size(NULL, g_cfg->core_apn, apn_len + 1); g_cfg->core_apn_size = - gbprox_str_to_apn(g_cfg->core_apn, apn, apn_len + 1); + gprs_str_to_apn(g_cfg->core_apn, apn, apn_len + 1); } return CMD_SUCCESS; |