From cdd05816dae6d33c6165c7cb4f118b8e4b7c6ab0 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Thu, 12 Jul 2018 18:21:07 +0200 Subject: 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 --- include/osmocom/gsm/protocol/gsm_08_08.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 */ -- cgit v1.2.3