From ffad574a4b68596d17671965bf145f11f0b00e57 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Fri, 12 Jan 2018 05:34:03 +0100 Subject: gsm: add gsm0808_speech_codec_type_names Used for logging Speech Codec List entries in osmo-bsc, during handover decision. Change-Id: Ie6418d16db333188e9bcd2b32b7216f277ae8832 --- include/osmocom/gsm/protocol/gsm_08_08.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/osmocom/gsm') 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 #include #include +#include /* * 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, -- cgit v1.2.3