Config iteration

This commit is contained in:
Imbus 2025-11-14 20:15:27 +01:00
parent ac6abd7c10
commit 77fd1763e0
3 changed files with 66 additions and 4 deletions

View file

@ -11,8 +11,9 @@ typedef struct {
ConfigEntry *head;
} Config;
Config *config_load(const char *filename);
const char *config_get(Config *cfg, const char *key);
void config_free(Config *cfg);
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