aboutsummaryrefslogtreecommitdiffstats
path: root/include/afb/afb-daemon-common.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-05-31 12:15:33 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-05-31 12:15:33 +0200
commit9ee5ae1883c58527f9cb63b7bafeb2f1d59e37ec (patch)
treef8101cc861b4835751b21a34338214a9f311f77d /include/afb/afb-daemon-common.h
parent524ce4c40da3b25630dffdd80c5aca99364a3569 (diff)
code formatting improvement
Change-Id: I07e0201c4dc9996e47ca70819123b351c7fb2ad7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include/afb/afb-daemon-common.h')
-rw-r--r--include/afb/afb-daemon-common.h6
1 files changed, 4 insertions, 2 deletions
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 */
};