diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2021-01-22 18:24:12 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-01-22 19:59:31 +0000 |
commit | cf11411ebb2f0ecb4297b3357c38f34415d6fedc (patch) | |
tree | b21d259861e38be706028077096f6dde030c74f8 /include/osmocom/gprs | |
parent | 8b19d0664326290556c19d9985d055f99de12526 (diff) |
gprs_bssgp_rim: add value strings for enum bssgp_rim_routing_info_discr
Change-Id: Idd06d2e3df0d60409a89a474018a9d97f7772090
Related: SYS#5103
Diffstat (limited to 'include/osmocom/gprs')
-rw-r--r-- | include/osmocom/gprs/gprs_bssgp_rim.h | 6 |
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; |