summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2016-07-18 23:54:01 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2016-07-23 15:32:55 +0200
commit47390764ddeb98109e39aa379d433ddc064e058b (patch)
treed5d9008d2c69f29cc8f2d470ad187c8f6f714ed3 /include
parentfd80f5a04239c2ab7b561401476dd89f2861748b (diff)
rsl: add rsl_act_type_name()
Change-Id: Ie90c76d8aef42d5e2c9be94f4b206d4994e305f8
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/gsm/rsl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/osmocom/gsm/rsl.h b/include/osmocom/gsm/rsl.h
index b140d48f..5da61808 100644
--- a/include/osmocom/gsm/rsl.h
+++ b/include/osmocom/gsm/rsl.h
@@ -56,4 +56,12 @@ void rsl_rll_push_l3(struct msgb *msg, uint8_t msg_type, uint8_t chan_nr,
struct msgb *rsl_rll_simple(uint8_t msg_type, uint8_t chan_nr,
uint8_t link_id, int transparent);
+extern const struct value_string rsl_act_type_names[];
+
+/*! \brief Return a human readable name for GSM 08.58 RSL_ACT_* constants. */
+static inline const char *rsl_act_type_name(uint8_t act_type)
+{
+ return get_value_string(rsl_act_type_names, act_type);
+}
+
/*! @} */