From: José Bollo Date: Mon, 13 Nov 2017 14:07:04 +0000 (+0100) Subject: afb-export: Ensure monitoring of events X-Git-Tag: 4.99.3~5 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=3a3ee2aa68333fce13fb2611b0165def47573c5d afb-export: Ensure monitoring of events Change-Id: Id82c624f695a229023447c16652bcc912b6d6fed Signed-off-by: José Bollo --- 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)