diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2019-05-31 18:42:01 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2019-05-31 18:42:01 +0200 |
commit | bcef77a7fb3b73d2a2fbcea51012014b62755bb5 (patch) | |
tree | 3a5935014a6a2569e592f40086f7858d1207c66c /src/device.h | |
parent | 44cb17317c40fa9d39b3402f0826006f20387be5 (diff) | |
download | neco-bcef77a7fb3b73d2a2fbcea51012014b62755bb5.tar neco-bcef77a7fb3b73d2a2fbcea51012014b62755bb5.zip |
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.
Diffstat (limited to 'src/device.h')
-rw-r--r-- | src/device.h | 5 |
1 files changed, 2 insertions, 3 deletions
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 <json-c/json.h> #include <libubox/avl.h> 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); |