Provide conversions for afb_event and afb_req
[src/app-framework-binder.git] / include / afb / afb-event.h
index c3686fd..2e7f6ab 100644 (file)
@@ -28,6 +28,14 @@ struct afb_event
        struct afb_eventid *closure;            /* the closure argument for functions of 'itf' */
 };
 
+/*
+ * 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.
  *