20 lines
295 B
C
20 lines
295 B
C
#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
|