summaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-07-12 17:48:26 +0200
committerHarald Welte <laforge@gnumonks.org>2018-07-12 18:18:39 +0000
commit5796a218db4d41ac68a9091f5b98b1e546b54d6d (patch)
treec3e9b5fe03b1f60c5745cac18c3ce737a1e084b4 /include/osmocom/gsm
parent5314c513f23688462d7f7937e5ae5e0d5cd4548e (diff)
gsm_04_08: add function to get value string
The value string table gsm48_chan_mode_names[] lacks a function to get the value string by a value. Lets add one. Change-Id: I0757bcc278c140e18249e35864338e19cdaa3cf7
Diffstat (limited to 'include/osmocom/gsm')
-rw-r--r--include/osmocom/gsm/protocol/gsm_04_08.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_04_08.h b/include/osmocom/gsm/protocol/gsm_04_08.h
index 4c98ff25..46350147 100644
--- a/include/osmocom/gsm/protocol/gsm_04_08.h
+++ b/include/osmocom/gsm/protocol/gsm_04_08.h
@@ -553,6 +553,8 @@ enum gsm48_chan_mode {
};
extern const struct value_string gsm48_chan_mode_names[];
+static inline const char *gsm48_chan_mode_name(enum gsm48_chan_mode val)
+{ return get_value_string(gsm48_chan_mode_names, val); }
/* Chapter 9.1.2 */
struct gsm48_ass_cmd {