hook+trace: adds hookid and type
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 29 Aug 2017 12:18:47 +0000 (14:18 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 29 Aug 2017 12:18:47 +0000 (14:18 +0200)
commit0959d003f6476eb3397049b5fc7f304988ec06c2
tree41c78ede5bbed5fc2bf67764c5ce6f46db648622
parent7dfbf0230218f8bac9b37326421c24547d22bbd8
hook+trace: adds hookid and type

The hookid is a unic identifier for a hook event.
Its purpose is to distinguish events that could match
different filters: a same event has a same id.

Also integrate the field "type" (of the event) in the
trace event.

Change-Id: I90b0b2d3a0846b673b993110d2752cc54db75bd8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-hook.c
src/afb-hook.h
src/afb-trace.c
test/monitoring/monitor.js