diff options
Diffstat (limited to 'include/afb/afb-event.h')
-rw-r--r-- | include/afb/afb-event.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/afb/afb-event.h b/include/afb/afb-event.h index c3686fdd..2e7f6ab9 100644 --- a/include/afb/afb-event.h +++ b/include/afb/afb-event.h @@ -29,6 +29,14 @@ struct afb_event }; /* + * Converts the 'event' to an afb_eventid. + */ +static inline struct afb_eventid *afb_event_to_eventid(struct afb_event event) +{ + return event.closure; +} + +/* * Checks wether the 'event' is valid or not. * * Returns 0 if not valid or 1 if valid. |