aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-stub-ws.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-07-16 14:12:35 +0200
committerJose Bollo <jose.bollo@iot.bzh>2019-07-18 15:39:52 +0200
commita445694bda8773cb80566808b5dcb56f033dee58 (patch)
treee8a38f5e268c4f67b43d53c59cb20b4f234f2b2f /src/afb-stub-ws.c
parentc53b1b3433a9fcb0f4f3afe8eca1daf75d43673f (diff)
afb-evt: Refactor processing of broadcasted events
Solving the bug SPEC-2625 needs to rework the broadcasting of events. It appeared that the numerical event identifier passed for broadcast wasn't used by called function except for hooking. Suppressing it introduces a clear distinction between the push and the broadcast paths. The file afb-ws-json1 is changed to avoid casting of functions. Bug-AGL: SPEC-2625 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Change-Id: I7dadfb8702457d6af797ec5f542add0a83224e3f
Diffstat (limited to 'src/afb-stub-ws.c')
-rw-r--r--src/afb-stub-ws.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c
index f008c418..0c440bd5 100644
--- a/src/afb-stub-ws.c
+++ b/src/afb-stub-ws.c
@@ -341,7 +341,7 @@ static void server_event_push_cb(void *closure, const char *event, int eventid,
json_object_put(object);
}
-static void server_event_broadcast_cb(void *closure, const char *event, int eventid, struct json_object *object)
+static void server_event_broadcast_cb(void *closure, const char *event, struct json_object *object)
{
struct afb_stub_ws *stubws = closure;