From dfd85137cf18243240d5f3c4300ca5b33f26e362 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 24 May 2018 12:19:45 +0200 Subject: 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 --- include/osmocom/gsm/mncc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/osmocom/gsm/mncc.h') 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); +} -- cgit v1.2.3