CPlay/config_ini/conf.h
2025-11-14 20:15:27 +01:00

19 lines
439 B
C

#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