CPlay/config_ini/conf.h
2025-11-03 03:06:29 +01:00

18 lines
374 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);
void config_free(Config *cfg);
#endif // CONF_H