summaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-07-12 18:21:07 +0200
committerHarald Welte <laforge@gnumonks.org>2018-07-12 18:18:39 +0000
commitcdd05816dae6d33c6165c7cb4f118b8e4b7c6ab0 (patch)
tree809648da7bac14bd71cb80a0edf1a1c0841872ff /include/osmocom/gsm
parent5796a218db4d41ac68a9091f5b98b1e546b54d6d (diff)
gsm_08_08: gsm0808_permitted_speech does not have value strings
enum gsm0808_permitted_speech does not have any value strings. Lets add value strings to make debugging easier. Change-Id: I5b5612a5df2758b0137a34c17f7c8c2b3f07c806
Diffstat (limited to 'include/osmocom/gsm')
-rw-r--r--include/osmocom/gsm/protocol/gsm_08_08.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h b/include/osmocom/gsm/protocol/gsm_08_08.h
index db5f7fa2..bd5705f1 100644
--- a/include/osmocom/gsm/protocol/gsm_08_08.h
+++ b/include/osmocom/gsm/protocol/gsm_08_08.h
@@ -430,6 +430,10 @@ enum gsm0808_permitted_speech {
GSM0808_PERM_HR6 = 0x45, /*!< OHR AMR */
};
+extern const struct value_string gsm0808_permitted_speech_names[];
+static inline const char *gsm0808_permitted_speech_name(enum gsm0808_permitted_speech val)
+{ return get_value_string(gsm0808_permitted_speech_names, val); }
+
/*! 3GPP TS 48.008, 3.2.2.103 Speech Codec Type */
enum gsm0808_speech_codec_type {
GSM0808_SCT_FR1 = 0x0, /*!< GSM FR */