Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-evt: Add event creation with prefix
[src/app-framework-binder.git]
/
include
/
afb
/
afb-event.h
diff --git
a/include/afb/afb-event.h
b/include/afb/afb-event.h
index
c3686fd
..
2e7f6ab
100644
(file)
--- 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' */
};
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.
*
/*
* Checks wether the 'event' is valid or not.
*