diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-07-20 17:57:59 +0200 |
---|---|---|
committer | Jose Bollo <jose.bollo@iot.bzh> | 2018-07-25 15:12:48 +0200 |
commit | f96bbb49cc9bcd81693300191cf7a01b879fd83d (patch) | |
tree | 0d50513ecaab432ce2a4fbd73175363b49545b7e /src/afb-supervision.h | |
parent | fe9601cbf6bbebe9464bfbde2efd0ec278b3e243 (diff) |
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>
Diffstat (limited to 'src/afb-supervision.h')
-rw-r--r-- | src/afb-supervision.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-supervision.h b/src/afb-supervision.h index 0acf7f6e..a7c0f1e1 100644 --- a/src/afb-supervision.h +++ b/src/afb-supervision.h @@ -19,6 +19,6 @@ #pragma once struct afb_apiset; -struct afb_config; +struct json_object; -extern int afb_supervision_init(struct afb_apiset *apiset, struct afb_config *config); +extern int afb_supervision_init(struct afb_apiset *apiset, struct json_object *config); |