From f96bbb49cc9bcd81693300191cf7a01b879fd83d Mon Sep 17 00:00:00 2001 From: José Bollo Date: Fri, 20 Jul 2018 17:57:59 +0200 Subject: afb-config: Rewrite the config as JSON object MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/afb-supervision.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/afb-supervision.h') 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); -- cgit 1.2.3-korg