diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-05-02 19:49:58 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-05-02 19:49:58 +0200 |
commit | a9791df3b90e7458d0356a486df795a1226b046a (patch) | |
tree | eaa384932e2b8af4e76e5ee76e49166ed8535781 /openbsc/include | |
parent | d9202b342c996c56a7e10dbc744e50d56a933b2c (diff) |
add enum iu_event_type to string conversion
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/iu.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 ^ */ |