mirror of https://github.com/dnomd343/ClearDNS
dnomd343
2 years ago
7 changed files with 68 additions and 23 deletions
@ -0,0 +1,6 @@ |
|||
#ifndef _LOADER_H_ |
|||
#define _LOADER_H_ |
|||
|
|||
void load_config(const char *config_file); |
|||
|
|||
#endif |
@ -0,0 +1,8 @@ |
|||
#ifndef _PARSER_H_ |
|||
#define _PARSER_H_ |
|||
|
|||
#include "config.h" |
|||
|
|||
void config_parser(cleardns_config *config, const char *config_file); |
|||
|
|||
#endif |
@ -1,5 +1,19 @@ |
|||
#include "loader.h" |
|||
#include "logger.h" |
|||
#include "config.h" |
|||
#include "parser.h" |
|||
|
|||
void load_dnsproxy() { |
|||
|
|||
} |
|||
|
|||
void load_config(const char *config_file) { |
|||
cleardns_config *config = config_init(); |
|||
config_parser(config, config_file); |
|||
|
|||
config_dump(config); |
|||
|
|||
// TODO: load into process
|
|||
|
|||
config_free(config); |
|||
} |
|||
|
Loading…
Reference in new issue