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/config-ini.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/config-ini.h')
-rw-r--r-- | src/config-ini.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/config-ini.h b/src/config-ini.h deleted file mode 100644 index 48400fd..0000000 --- a/src/config-ini.h +++ /dev/null @@ -1,24 +0,0 @@ -#pragma once - -#include <libubox/list.h> - -#include <stdio.h> - -typedef struct _ini_field { - struct list_head node; - char *key; - char *value; -} ini_field_t; - -typedef struct _ini_section { - struct list_head node; - struct list_head fields; - char *name; -} ini_section_t; - -typedef struct _ini_file { - struct list_head sections; -} ini_file_t; - -ini_file_t * read_ini_file(FILE *f); -void free_ini_file(ini_file_t *file); |