X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-daemon-common.h;h=e1308d6d4ae8718c496904b2de779289a4d4d5f0;hb=9ee5ae1883c58527f9cb63b7bafeb2f1d59e37ec;hp=e8e1817e4d944a38363df37396425b14d6acccf7;hpb=524ce4c40da3b25630dffdd80c5aca99364a3569;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-daemon-common.h b/include/afb/afb-daemon-common.h index e8e1817e..e1308d6d 100644 --- a/include/afb/afb-daemon-common.h +++ b/include/afb/afb-daemon-common.h @@ -26,7 +26,8 @@ struct sd_bus; /* * Definition of the facilities provided by the daemon. */ -struct afb_daemon_itf { +struct afb_daemon_itf +{ int (*event_broadcast)(void *closure, const char *name, struct json_object *object); /* broadcasts evant 'name' with 'object' */ struct sd_event *(*get_event_loop)(void *closure); /* gets the common systemd's event loop */ struct sd_bus *(*get_user_bus)(void *closure); /* gets the common systemd's user d-bus */ @@ -43,7 +44,8 @@ struct afb_daemon_itf { * Structure for accessing daemon. * See also: afb_daemon_get_event_sender, afb_daemon_get_event_loop, afb_daemon_get_user_bus, afb_daemon_get_system_bus */ -struct afb_daemon { +struct afb_daemon +{ const struct afb_daemon_itf *itf; /* the interfacing functions */ void *closure; /* the closure when calling these functions */ };