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
This commit is contained in:
Harald Welte 2018-05-24 12:19:45 +02:00
parent dab4db0217
commit dfd85137cf
3 changed files with 6 additions and 4 deletions

View File

@ -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);
}

View File

@ -466,6 +466,7 @@ osmo_imsi_str_valid;
osmo_msisdn_str_valid;
osmo_mncc_stringify;
osmo_mncc_names;
_osmo_mncc_log;
local: *;

View File

@ -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;