X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-event.h;h=2e7f6ab9f4e16f52fd9c3369aa9149e010ed8048;hb=59cd34b59853f6a47e756d7ab5bc0329f40a471c;hp=c3686fdd7d036fb9532226e59b4aaa8445126a48;hpb=c12c74c208a30c5b18716b8faa464f0b4f643255;p=src%2Fapp-framework-binder.git 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 @@ -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. *