X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-event.h;h=2e7f6ab9f4e16f52fd9c3369aa9149e010ed8048;hb=be63003e3f1841b43614f0e11b0a291e11f1dad1;hp=c3686fdd7d036fb9532226e59b4aaa8445126a48;hpb=59d4e6a0654d361de19fbbfa65daf6c1dabd55a0;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. *