mirror of https://github.com/dnomd343/ClearDNS
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
677 B
26 lines
677 B
2 years ago
|
#ifndef _DNSPROXY_H_
|
||
|
#define _DNSPROXY_H_
|
||
|
|
||
2 years ago
|
#include "common.h"
|
||
2 years ago
|
#include "process.h"
|
||
2 years ago
|
|
||
2 years ago
|
typedef struct {
|
||
2 years ago
|
uint16_t port;
|
||
|
uint32_t cache;
|
||
|
uint8_t debug; // bool value
|
||
|
uint8_t verify; // bool value
|
||
|
uint8_t parallel; // bool value
|
||
|
uint8_t optimistic; // bool value
|
||
2 years ago
|
char **bootstrap;
|
||
|
char **fallback;
|
||
|
char **primary;
|
||
|
} dnsproxy;
|
||
|
|
||
2 years ago
|
dnsproxy* dnsproxy_init(uint16_t port);
|
||
2 years ago
|
void dnsproxy_add_primary(dnsproxy *info, const char *server);
|
||
|
void dnsproxy_add_fallback(dnsproxy *info, const char *server);
|
||
|
void dnsproxy_add_bootstrap(dnsproxy *info, const char *server);
|
||
|
process* dnsproxy_load(const char *caption, dnsproxy *info, const char *file);
|
||
2 years ago
|
|
||
2 years ago
|
#endif
|