diff options
| author | Federico Angelilli <code@fedang.net> | 2024-11-29 13:09:56 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-11-29 13:09:56 +0100 |
| commit | 728e1e204d39bf11013ee999bcbff779aebc3399 (patch) | |
| tree | a70b7cdf8576142022fc20b6ef219ecb84fcd028 /src/config.h | |
| parent | 8ad2993b9e6679a669b80154639b4941ed2fafb4 (diff) | |
Simplify parsing
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.h b/src/config.h index 6a13ab3..df511d4 100644 --- a/src/config.h +++ b/src/config.h @@ -26,7 +26,7 @@ typedef enum { typedef struct { const char *key; config_type_t type; - void *data; + const void *data; size_t offset; } config_entry_t; @@ -67,7 +67,7 @@ const char *config_type_to_string(config_type_t type); void config_init(config_t *config); config_status_t config_read_entry(const config_entry_t *entries, void *result, size_t *index, - const char *section, const char *label, const char *key, const char *value); + const char *key, const char *value); int config_read(config_t *config, FILE *file); |
