aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-05-24 12:19:45 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-24 12:19:45 +0200
commitdfd85137cf18243240d5f3c4300ca5b33f26e362 (patch)
treeb2a26a8bb8cfdd5947121fe1649bc50089b6af73
parentdab4db0217898007496ef9639a6d3f33d6c3873a (diff)
mncc: properly export osmo_mncc_name()
For some strange reason, the osmo_mncc_name() inline function was not in the mncc.h header, but in the mncc.c file. Let's fix that. Change-Id: I2c3666510c981dffa4ba25bed517fd7ebd1250f5
-rw-r--r--include/osmocom/gsm/mncc.h5
-rw-r--r--src/gsm/libosmogsm.map1
-rw-r--r--src/gsm/mncc.c4
3 files changed, 6 insertions, 4 deletions
diff --git a/include/osmocom/gsm/mncc.h b/include/osmocom/gsm/mncc.h
index 5ca29863..6b94d469 100644
--- a/include/osmocom/gsm/mncc.h
+++ b/include/osmocom/gsm/mncc.h
@@ -91,3 +91,8 @@ void _osmo_mncc_log(int subsys, int level, const char *file, int line, const cha
#define osmo_mncc_log(ss, level, prefix, msg, len) \
_osmo_mncc_log(ss, level, __BASE_FILE__, __LINE__, prefix, msg, len);
+
+extern const struct value_string osmo_mncc_names[];
+static inline const char *osmo_mncc_name(uint32_t msg_type) {
+ return get_value_string(osmo_mncc_names, msg_type);
+}
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map
index 8c64020a..c4b1b75e 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -466,6 +466,7 @@ osmo_imsi_str_valid;
osmo_msisdn_str_valid;
osmo_mncc_stringify;
+osmo_mncc_names;
_osmo_mncc_log;
local: *;
diff --git a/src/gsm/mncc.c b/src/gsm/mncc.c
index fa4726cf..938cf9a6 100644
--- a/src/gsm/mncc.c
+++ b/src/gsm/mncc.c
@@ -244,10 +244,6 @@ const struct value_string osmo_mncc_names[] = {
{ 0, NULL },
};
-static inline const char *osmo_mncc_name(uint32_t msg_type) {
- return get_value_string(osmo_mncc_names, msg_type);
-}
-
static void mncc_dump_rtp(struct msgb *str, const uint8_t *msg, unsigned int len)
{
const struct gsm_mncc_rtp *rtp = (const struct gsm_mncc_rtp *) msg;