From 031601a0c5aa944493660f991d66702cc7e52755 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Tue, 17 May 2016 23:47:13 +0200 Subject: event sender: better naming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I82d918cd14b1e368ef509fa3a1b21c3e55a6b98d Signed-off-by: José Bollo --- plugins/afm-main-plugin/afm-main-plugin.c | 6 +++--- plugins/samples/HelloWorld.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/afm-main-plugin/afm-main-plugin.c b/plugins/afm-main-plugin/afm-main-plugin.c index 41e55404..786468a1 100644 --- a/plugins/afm-main-plugin/afm-main-plugin.c +++ b/plugins/afm-main-plugin/afm-main-plugin.c @@ -46,7 +46,7 @@ static const char _uninstall_[] = "uninstall"; static const char _uri_[] = "uri"; static const struct AFB_interface *afb_interface; -static struct afb_evmgr evmgr; +static struct afb_event_sender event_sender; static struct jbus *jbus; @@ -69,7 +69,7 @@ static struct memo *make_memo(struct afb_req request, const char *method) static void application_list_changed(const char *data, void *closure) { - afb_evmgr_push(evmgr, "application-list-changed", NULL); + afb_event_sender_push(event_sender, "application-list-changed", NULL); } static struct json_object *embed(const char *tag, struct json_object *obj) @@ -343,7 +343,7 @@ const struct AFB_plugin *pluginAfbV1Register(const struct AFB_interface *itf) /* records the interface */ assert (afb_interface == NULL); afb_interface = itf; - evmgr = afb_daemon_get_evmgr(itf->daemon); + 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); diff --git a/plugins/samples/HelloWorld.c b/plugins/samples/HelloWorld.c index 35b95cab..78a1eafd 100644 --- a/plugins/samples/HelloWorld.c +++ b/plugins/samples/HelloWorld.c @@ -54,7 +54,7 @@ static void pingBug (struct afb_req request) static void pingEvent(struct afb_req request) { json_object *query = afb_req_json(request); - afb_evmgr_push(afb_daemon_get_evmgr(interface->daemon), "event", query); + afb_event_sender_push(afb_daemon_get_event_sender(interface->daemon), "event", query); ping(request, json_object_get(query), "event"); } -- cgit 1.2.3-korg