diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2021-01-22 17:19:05 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-01-22 19:59:31 +0000 |
commit | 139c4ae003e0b71fd9617db86ee2dd4a0c91463a (patch) | |
tree | bfee59749c93f26d6df6cca8c4c0517d08da1660 /include/osmocom/gprs | |
parent | d426ba6730b65e4ac6ca809c00e91556ba907806 (diff) |
gprs_bssgp_rim: add value strings for enum bssgp_nacc_cause
Change-Id: I3354699555569c2b0bd1b4313cffd32a0cbeffe9
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 7e9efcd7..5e5966e1 100644 --- a/include/osmocom/gprs/gprs_bssgp_rim.h +++ b/include/osmocom/gprs/gprs_bssgp_rim.h @@ -96,6 +96,12 @@ enum bssgp_nacc_cause { BSSGP_NACC_CAUSE_SIPSI_SET_ERR, }; +extern const struct value_string bssgp_nacc_cause_strs[]; + +/*! Obtain a human-readable string for NACC Cause code */ +static inline const char *bssgp_nacc_cause_str(enum bssgp_nacc_cause val) +{ return get_value_string(bssgp_nacc_cause_strs, val); } + /* 3GPP TS 48.018, table 11.3.64.1.a, Application Error Container coding for NACC */ struct bssgp_app_err_cont_nacc { enum bssgp_nacc_cause nacc_cause; |