afb-config: Rewrite the config as JSON object 33/15733/1
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 20 Jul 2018 15:57:59 +0000 (17:57 +0200)
committerJose Bollo <jose.bollo@iot.bzh>
Wed, 25 Jul 2018 13:12:48 +0000 (15:12 +0200)
commitf96bbb49cc9bcd81693300191cf7a01b879fd83d
tree0d50513ecaab432ce2a4fbd73175363b49545b7e
parentfe9601cbf6bbebe9464bfbde2efd0ec278b3e243
afb-config: Rewrite the config as JSON object

Despite its poor performance, this changes is good
at the end because:

 - it allows to put config in files
 - it removes dirty code to translate to JSON
 - it removes dirty code to dump the config
 - it unifies code for scanning hook's flag's names
 - it improves unity of naming between option's names and JSON's names

Change-Id: I2487c8746d78a0cff80505a12b9fa60e40da9951
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/CMakeLists.txt
src/afb-config.c
src/afb-config.h
src/afb-hook-flags.c [new file with mode: 0644]
src/afb-hook-flags.h [new file with mode: 0644]
src/afb-supervision.c
src/afb-supervision.h
src/afb-trace.c
src/main-afb-daemon.c
src/wrap-json.h