From a9791df3b90e7458d0356a486df795a1226b046a Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 2 May 2016 19:49:58 +0200 Subject: add enum iu_event_type to string conversion --- openbsc/include/openbsc/iu.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/iu.h b/openbsc/include/openbsc/iu.h index fc1a89130..9cc095849 100644 --- a/openbsc/include/openbsc/iu.h +++ b/openbsc/include/openbsc/iu.h @@ -26,6 +26,12 @@ enum iu_event_type { * ue_conn_ctx should no longer be used, for whatever reason. */ }; +extern const struct value_string iu_event_type_names[]; +static inline const char *iu_event_type_str(enum iu_event_type e) +{ + return get_value_string(iu_event_type_names, e); +} + /* Implementations of iu_recv_cb_t shall find the ue_conn_ctx in msg->dst. */ typedef int (* iu_recv_cb_t )(struct msgb *msg, struct gprs_ra_id *ra_id, /* TODO "gprs_" in generic CS+PS domain ^ */ -- cgit v1.2.3