diff options
-rw-r--r-- | src/afb-evt.h | 1 | ||||
-rw-r--r-- | src/afb-export.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/afb-evt.h b/src/afb-evt.h index 2d888fa1..901bfbb2 100644 --- a/src/afb-evt.h +++ b/src/afb-evt.h @@ -18,6 +18,7 @@ #pragma once struct afb_event; +struct afb_eventid; struct afb_evtid; struct afb_session; struct json_object; diff --git a/src/afb-export.c b/src/afb-export.c index 3a898bbe..304395ae 100644 --- a/src/afb-export.c +++ b/src/afb-export.c @@ -179,7 +179,7 @@ static struct afb_eventid *eventid_make_cb(void *closure, const char *name) static struct afb_event event_make_cb(void *closure, const char *name) { struct afb_eventid *eventid = eventid_make_cb(closure, name); - return (struct afb_event){ .itf = eventid ? eventid->itf : NULL, .closure = eventid }; + return afb_evt_event_from_evtid(afb_evt_eventid_to_evtid(eventid)); } static int event_broadcast_cb(void *closure, const char *name, struct json_object *object) |