feat(config): added a simple user config
This commit is contained in:
parent
1e4677bcda
commit
a089bc43c3
2 changed files with 170 additions and 0 deletions
20
include/config.h
Normal file
20
include/config.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue