diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-01-12 05:34:03 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-01-12 05:34:05 +0100 |
commit | ffad574a4b68596d17671965bf145f11f0b00e57 (patch) | |
tree | 569607d14beb864e7e92c41b3af1b80947e45d22 /include/osmocom | |
parent | e29ec85375f004e63c650e69a9fe5910b15a00eb (diff) |
gsm: add gsm0808_speech_codec_type_names
Used for logging Speech Codec List entries in osmo-bsc, during handover
decision.
Change-Id: Ie6418d16db333188e9bcd2b32b7216f277ae8832
Diffstat (limited to 'include/osmocom')
-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, |