From 086b345414ef17b305b5c624fbdbc4bf0f855042 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Thu, 15 Nov 2018 15:04:29 +0100 Subject: gsm29118: add value strings for SGSAP IEI The value strings for the SGSAP IEI are missing, lets add a set of value strings and a function to retrieve them. Change-Id: I2787303174f74ffba86675bce2c12f680d8ea708 Related: OS#3615 --- include/osmocom/gsm/protocol/gsm_29_118.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/osmocom/gsm/protocol/gsm_29_118.h b/include/osmocom/gsm/protocol/gsm_29_118.h index c344f040..bf210ad0 100644 --- a/include/osmocom/gsm/protocol/gsm_29_118.h +++ b/include/osmocom/gsm/protocol/gsm_29_118.h @@ -74,7 +74,10 @@ enum sgsap_iei { SGSAP_IE_ADDL_PAGING_INDICATORS = 0x26, SGSAP_IE_TMSI_BASED_NRI_CONT = 0x27, }; - +const struct value_string sgsap_iei_names[]; +static inline const char *sgsap_iei_name(enum sgsap_iei iei) { + return get_value_string(sgsap_iei_names, iei); +} /* TS 29.118 Section 9.4.2 */ enum sgsap_eps_lu_type { -- cgit v1.2.3