aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libtle_l4p/tle_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libtle_l4p/tle_event.h')
-rw-r--r--lib/libtle_l4p/tle_event.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libtle_l4p/tle_event.h b/lib/libtle_l4p/tle_event.h
index b19954a..d730345 100644
--- a/lib/libtle_l4p/tle_event.h
+++ b/lib/libtle_l4p/tle_event.h
@@ -106,6 +106,11 @@ struct tle_event *tle_event_alloc(struct tle_evq *evq, const void *data);
*/
void tle_event_free(struct tle_event *ev);
+static inline enum tle_ev_state
+tle_event_state(const struct tle_event *ev)
+{
+ return ev->state;
+}
/**
* move event from DOWN to UP state.