From bcef77a7fb3b73d2a2fbcea51012014b62755bb5 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 31 May 2019 18:42:01 +0200 Subject: Switch to a JSON-based config format We can get rid of a lot of code by ditching out INI format parser. We also remove the support for "subtype" and "generator" templates for now; rather than implementing this in NeCo itself, templates could be implemented as a Lua DSL later. --- src/device.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/device.h') diff --git a/src/device.h b/src/device.h index 33acfbb..e44c695 100644 --- a/src/device.h +++ b/src/device.h @@ -1,7 +1,6 @@ #pragma once -#include "config-ini.h" - +#include #include extern struct avl_tree device_types; @@ -15,7 +14,7 @@ typedef struct _device { struct _device_type { struct avl_node node; - device_t * (*process_config)(const char *name, const ini_file_t *config); + device_t * (*process_config)(const char *name, struct json_object *config); void (*free)(device_t *device); void (*init)(device_t *device); -- cgit v1.2.3