aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-01-22 18:24:12 +0100
committerlaforge <laforge@osmocom.org>2021-01-22 19:59:31 +0000
commitcf11411ebb2f0ecb4297b3357c38f34415d6fedc (patch)
treeb21d259861e38be706028077096f6dde030c74f8 /include/osmocom
parent8b19d0664326290556c19d9985d055f99de12526 (diff)
gprs_bssgp_rim: add value strings for enum bssgp_rim_routing_info_discr
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/gprs/gprs_bssgp_rim.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/gprs/gprs_bssgp_rim.h b/include/osmocom/gprs/gprs_bssgp_rim.h
index 48bf047c..0810c8ed 100644
--- a/include/osmocom/gprs/gprs_bssgp_rim.h
+++ b/include/osmocom/gprs/gprs_bssgp_rim.h
@@ -33,6 +33,12 @@ enum bssgp_rim_routing_info_discr {
BSSGP_RIM_ROUTING_INFO_EUTRAN,
};
+extern const struct value_string bssgp_rim_routing_info_discr_strs[];
+
+/*! Obtain a human-readable string for NACC Cause code */
+static inline const char *bssgp_rim_routing_info_discr_str(enum bssgp_rim_routing_info_discr val)
+{ return get_value_string(bssgp_rim_routing_info_discr_strs, val); }
+
/*! BSSGP RIM Routing information, see also 3GPP TS 48.018, section 11.3.70 */
struct bssgp_rim_routing_info {
enum bssgp_rim_routing_info_discr discr;