afb-evt: Refactor processing of broadcasted events 96/21896/2
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 16 Jul 2019 12:12:35 +0000 (14:12 +0200)
committerJose Bollo <jose.bollo@iot.bzh>
Thu, 18 Jul 2019 13:39:52 +0000 (15:39 +0200)
commita445694bda8773cb80566808b5dcb56f033dee58
treee8a38f5e268c4f67b43d53c59cb20b4f234f2b2f
parentc53b1b3433a9fcb0f4f3afe8eca1daf75d43673f
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
src/afb-api-dbus.c
src/afb-evt.c
src/afb-evt.h
src/afb-export.c
src/afb-stub-ws.c
src/afb-ws-json1.c