mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Move definition of config struct into src/config.h.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -174,24 +174,6 @@ typedef struct {
|
||||
int reply_domain;
|
||||
} countersStruct;
|
||||
|
||||
typedef struct {
|
||||
int maxDBdays;
|
||||
int DBinterval;
|
||||
int port;
|
||||
int maxlogage;
|
||||
int16_t debug;
|
||||
unsigned char privacylevel;
|
||||
unsigned char blockingmode;
|
||||
bool socket_listenlocal;
|
||||
bool analyze_AAAA;
|
||||
bool resolveIPv6;
|
||||
bool resolveIPv4;
|
||||
bool ignore_localhost;
|
||||
bool analyze_only_A_AAAA;
|
||||
bool DBimport;
|
||||
bool parse_arp_cache;
|
||||
} ConfigStruct;
|
||||
|
||||
// Dynamic structs
|
||||
typedef struct {
|
||||
unsigned char magic;
|
||||
|
||||
@@ -16,6 +16,24 @@ void get_privacy_level(FILE *fp);
|
||||
void get_blocking_mode(FILE *fp);
|
||||
void read_debuging_settings(FILE *fp);
|
||||
|
||||
typedef struct {
|
||||
int maxDBdays;
|
||||
int DBinterval;
|
||||
int port;
|
||||
int maxlogage;
|
||||
int16_t debug;
|
||||
unsigned char privacylevel;
|
||||
unsigned char blockingmode;
|
||||
bool socket_listenlocal;
|
||||
bool analyze_AAAA;
|
||||
bool resolveIPv6;
|
||||
bool resolveIPv4;
|
||||
bool ignore_localhost;
|
||||
bool analyze_only_A_AAAA;
|
||||
bool DBimport;
|
||||
bool parse_arp_cache;
|
||||
} ConfigStruct;
|
||||
|
||||
extern ConfigStruct config;
|
||||
|
||||
#endif //CONFIG_H
|
||||
|
||||
@@ -35,7 +35,6 @@ logFileNamesStruct files = {
|
||||
// Fixed size structs
|
||||
countersStruct *counters = NULL;
|
||||
overTimeData *overTime = NULL;
|
||||
ConfigStruct config;
|
||||
|
||||
// The special memory handling routines have to be the last ones in this source file
|
||||
// as we restore the original definition of the strdup, free, calloc, and realloc
|
||||
|
||||
Reference in New Issue
Block a user