diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-05-29 08:07:40 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-05-29 08:07:40 +0200 |
commit | 42888438a490f0ce28376b33b4d87c46008209bf (patch) | |
tree | 78491b3f2f5a59275db2806c8d267d9db0f552c2 | |
parent | 89805c265bbba9bdf2360aa6205880c444d5c119 (diff) |
simplification of event broadcasting
Change-Id: I12398731863c131bb5943f22b5807acef18b8164
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afm-main-plugin.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/afm-main-plugin.c b/src/afm-main-plugin.c index 786468a..04b669d 100644 --- a/src/afm-main-plugin.c +++ b/src/afm-main-plugin.c @@ -46,7 +46,6 @@ static const char _uninstall_[] = "uninstall"; static const char _uri_[] = "uri"; static const struct AFB_interface *afb_interface; -static struct afb_event_sender event_sender; static struct jbus *jbus; @@ -69,7 +68,7 @@ static struct memo *make_memo(struct afb_req request, const char *method) static void application_list_changed(const char *data, void *closure) { - afb_event_sender_push(event_sender, "application-list-changed", NULL); + afb_daemon_broadcast_event(afb_interface->daemon, "application-list-changed", NULL); } static struct json_object *embed(const char *tag, struct json_object *obj) @@ -343,7 +342,6 @@ const struct AFB_plugin *pluginAfbV1Register(const struct AFB_interface *itf) /* records the interface */ assert (afb_interface == NULL); afb_interface = itf; - event_sender = afb_daemon_get_event_sender(itf->daemon); /* creates the jbus for accessing afm-user-daemon */ sbus = afb_daemon_get_user_bus(itf->daemon); |