feat(config): added a simple user config

This commit is contained in:
lisk77 2025-08-29 20:15:19 +02:00
parent 1e4677bcda
commit a089bc43c3
2 changed files with 170 additions and 0 deletions

20
include/config.h Normal file
View file

@ -0,0 +1,20 @@
#ifndef CONFIG_H
#define CONFIG_H
#include "tomlc17.h"
#include "utilities.h"
typedef struct {
char *name;
char *email;
} UserTable;
typedef struct {
UserTable user;
} Config;
int load_config(Config*);
void free_config(Config*);
int validate_config(Config*);
#endif // CONFIG_H