diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-06-02 14:11:19 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-06-02 14:44:09 +0200 |
commit | ebd362dbd2ef817f00f6713b5c4c5580dedd2b50 (patch) | |
tree | 7c73c81e21e5f40e86f2233d4613c46fee9467da /include/osmocom | |
parent | 407df02e7c5c64ce7d7c2bf9756834d6727faade (diff) |
gsm0808: Add value_string for LCLS related IEs
Change-Id: I18d7a29496929c761aeaba9c0aee847befc13108
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/gsm/gsm0808.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm0808.h b/include/osmocom/gsm/gsm0808.h index 84029575..d704aa91 100644 --- a/include/osmocom/gsm/gsm0808.h +++ b/include/osmocom/gsm/gsm0808.h @@ -27,6 +27,7 @@ #include <osmocom/gsm/protocol/gsm_08_08.h> #include <osmocom/gsm/gsm0808_utils.h> #include <osmocom/gsm/gsm23003.h> +#include <osmocom/core/utils.h> struct sockaddr_storage; @@ -135,4 +136,18 @@ const char *gsm0808_bssmap_name(uint8_t msg_type); const char *gsm0808_bssap_name(uint8_t msg_type); const char *gsm0808_cause_name(uint8_t cause); +extern const struct value_string gsm0808_lcls_config_names[]; +extern const struct value_string gsm0808_lcls_control_names[]; +extern const struct value_string gsm0808_lcls_status_names[]; + +static inline const char *gsm0808_lcls_config_name(uint8_t val) { + return get_value_string(gsm0808_lcls_config_names, val); +} +static inline const char *gsm0808_lcls_control_name(uint8_t val) { + return get_value_string(gsm0808_lcls_control_names, val); +} +static inline const char *gsm0808_lcls_status_name(uint8_t val) { + return get_value_string(gsm0808_lcls_status_names, val); +} + /*! @} */ |