diff options
Diffstat (limited to 'include/osmocom/gsm/protocol')
-rw-r--r-- | include/osmocom/gsm/protocol/gsm_08_08.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h b/include/osmocom/gsm/protocol/gsm_08_08.h index 6ae6855c..ba347eff 100644 --- a/include/osmocom/gsm/protocol/gsm_08_08.h +++ b/include/osmocom/gsm/protocol/gsm_08_08.h @@ -6,6 +6,7 @@ #include <stdbool.h> #include <stdint.h> #include <osmocom/core/linuxlist.h> +#include <osmocom/core/utils.h> /* * this is from GSM 03.03 CGI but is copied in GSM 08.08 @@ -420,6 +421,10 @@ enum gsm0808_speech_codec_type { GSM0808_SCT_CSD = 0xfd, /*!< CSData (see also TS 26.103) */ }; +extern const struct value_string gsm0808_speech_codec_type_names[]; +static inline const char *gsm0808_speech_codec_type_name(enum gsm0808_speech_codec_type val) +{ return get_value_string(gsm0808_speech_codec_type_names, val); } + /* GSM 08.08 3.2.2.44 Chosen Encryption Algorithm */ enum gsm0808_chosen_enc_alg { GSM0808_ALG_ID_A5_0 = 0x01, |