#ifndef CONF_H #define CONF_H typedef struct ConfigEntry { char *key; char *value; struct ConfigEntry *next; } ConfigEntry; typedef struct { ConfigEntry *head; } Config; Config *config_load(const char *filename); const char *config_get(Config *cfg, const char *key); ConfigEntry *config_get_next(ConfigEntry *entry, int *index); void config_free(Config *cfg); #endif // CONF_H