aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-11-29 13:09:56 +0100
committerFederico Angelilli <code@fedang.net>2024-11-29 13:09:56 +0100
commit728e1e204d39bf11013ee999bcbff779aebc3399 (patch)
treea70b7cdf8576142022fc20b6ef219ecb84fcd028 /src/config.h
parent8ad2993b9e6679a669b80154639b4941ed2fafb4 (diff)
Simplify parsing
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h4
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);