aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-01-22 18:05:35 +0100
committerlaforge <laforge@osmocom.org>2021-01-22 19:59:31 +0000
commit8b19d0664326290556c19d9985d055f99de12526 (patch)
tree3ed0149e1338642244aed74a43421d1b2064e3a8 /include/osmocom
parent139c4ae003e0b71fd9617db86ee2dd4a0c91463a (diff)
gprs_bssgp_rim: add value strings for enum bssgp_ran_inf_app_id
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 5e5966e1..48bf047c 100644
--- a/include/osmocom/gprs/gprs_bssgp_rim.h
+++ b/include/osmocom/gprs/gprs_bssgp_rim.h
@@ -123,6 +123,12 @@ enum bssgp_ran_inf_app_id {
BSSGP_RAN_INF_APP_ID_UTRA_SI = 5,
};
+extern const struct value_string bssgp_ran_inf_app_id_strs[];
+
+/*! Obtain a human-readable string for RIM Application Identity code */
+static inline const char *bssgp_ran_inf_app_id_str(enum bssgp_ran_inf_app_id val)
+{ return get_value_string(bssgp_ran_inf_app_id_strs, val); }
+
/* 3GPP TS 48.018, table 11.3.62a.1.b: RAN-INFORMATION-REQUEST RIM Container Contents */
struct bssgp_ran_inf_req_rim_cont {
enum bssgp_ran_inf_app_id app_id;