aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gprs
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-01-22 17:19:05 +0100
committerlaforge <laforge@osmocom.org>2021-01-22 19:59:31 +0000
commit139c4ae003e0b71fd9617db86ee2dd4a0c91463a (patch)
treebfee59749c93f26d6df6cca8c4c0517d08da1660 /include/osmocom/gprs
parentd426ba6730b65e4ac6ca809c00e91556ba907806 (diff)
gprs_bssgp_rim: add value strings for enum bssgp_nacc_cause
Diffstat (limited to 'include/osmocom/gprs')
-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 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;