X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-export.c;h=304395aedd7f5efa8724b5c76c24943142b592f7;hb=0891ef4826e347d5554c630b5c0ce73c68f76c9c;hp=ea783b8b92357ae9d7a7f2fa7dce1a9782f3c102;hpb=913e41d02977ee045490fbdcc94979c122c6a981;p=src%2Fapp-framework-binder.git diff --git a/src/afb-export.c b/src/afb-export.c index ea783b8b..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) @@ -1072,7 +1072,7 @@ static struct afb_export *create(struct afb_apiset *apiset, const char *apiname, /* session shared with other exports */ if (common_session == NULL) { - common_session = afb_session_create (NULL, 0); + common_session = afb_session_create (0); if (common_session == NULL) return NULL; } @@ -1181,7 +1181,7 @@ struct afb_binding_interface_v1 *afb_export_get_interface_v1(struct afb_export * int afb_export_unshare_session(struct afb_export *export) { if (export->session == common_session) { - export->session = afb_session_create (NULL, 0); + export->session = afb_session_create (0); if (export->session) afb_session_unref(common_session); else {