From 92f3f5e4917d30dad45d26c2776299c625111529 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 5 Jan 2019 00:39:13 +0100 Subject: add osmo_lu_type_names[], osmo_lu_type_name() Move lupd_names[] from osmo-msc to libosmo-gsm. Change-Id: Ica25919758ef6cba8348da199b0ae7e0ba628798 --- include/osmocom/gsm/protocol/gsm_04_08.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/osmocom') diff --git a/include/osmocom/gsm/protocol/gsm_04_08.h b/include/osmocom/gsm/protocol/gsm_04_08.h index a97225c5..791fbd4e 100644 --- a/include/osmocom/gsm/protocol/gsm_04_08.h +++ b/include/osmocom/gsm/protocol/gsm_04_08.h @@ -1652,6 +1652,10 @@ const char *gsm48_pdisc_msgtype_name(uint8_t pdisc, uint8_t msg_type); #define GSM48_LUPD_IMSI_ATT 0x2 #define GSM48_LUPD_RESERVED 0x3 +extern const struct value_string osmo_lu_type_names[]; +static inline const char *osmo_lu_type_name(uint8_t lu_type) +{ return get_value_string(osmo_lu_type_names, lu_type); } + /* Table 10.5.4 */ #define GSM_MI_TYPE_MASK 0x07 #define GSM_MI_TYPE_NONE 0x00 -- cgit v1.2.3