afb-evt: Refactor processing of broadcasted events 99/21899/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:38:02 +0000 (15:38 +0200)
commit5b5968815dc672467f40ed6b49f05a590bdb8b4d
treea850a00955f697eb2766027e8f60731af344a2cc
parent6fe59e27c0640462f92133106b4d4d52d77683f9
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

Change-Id: I9fe75adc8086812b21b70ce28baffcf77bd5e1cf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
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