]> jfr.im git - solanum.git/blobdiff - include/dns.h
Merge pull request #285 from edk0/ratelimits
[solanum.git] / include / dns.h
index b06ab1e6c5d19bef3d801fc0fccd95826d44e935..3a13c3f7dec087258a130323c5dae4e03eaecbb0 100644 (file)
 #ifndef CHARYBDIS_DNS_H
 #define CHARYBDIS_DNS_H
 
-typedef void (*DNSCB)(const char *res, int status, int aftype, void *data);
+#include "stdinc.h"
+#include "authproc.h"
+
+extern rb_dlink_list nameservers;
 
-extern rb_helper *authd_helper;
+typedef void (*DNSCB)(const char *res, int status, int aftype, void *data);
+typedef void (*DNSLISTCB)(int resc, const char *resv[], int status, void *data);
 
-void init_authd(void);
-void restart_authd(void);
-void rehash_authd(void);
-void check_authd(void);
+uint32_t lookup_hostname(const char *hostname, int aftype, DNSCB callback, void *data);
+uint32_t lookup_ip(const char *hostname, int aftype, DNSCB callback, void *data);
+void cancel_lookup(uint32_t xid);
+void cancel_dns_stats(uint32_t xid);
 
-uint16_t lookup_hostname(const char *hostname, int aftype, DNSCB callback, void *data);
-uint16_t lookup_ip(const char *hostname, int aftype, DNSCB callback, void *data);
-void cancel_lookup(uint16_t xid);
 void dns_results_callback(const char *callid, const char *status, const char *aftype, const char *results);
-void report_dns_servers(struct Client *);
+void dns_stats_results_callback(const char *callid, const char *status, int resc, const char *resv[]);
+
+void init_dns(void);
+void reload_nameservers(void);
 
 #endif