]> jfr.im git - solanum.git/blobdiff - include/dns.h
Resolve shfit/reduce conflict in timespec production (#54)
[solanum.git] / include / dns.h
index f5655e165421345d0ae736e3667afa9a2cfbb0d9..72d8407713a9889905d561ca6596ed1efadcf429 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  charybdis
+ *  solanum
  *  dns.h: A header with the DNS functions.
  *
  *  Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
  *  USA
  */
 
-#ifndef CHARYBDIS_DNS_H
-#define CHARYBDIS_DNS_H
+#ifndef SOLANUM_DNS_H
+#define SOLANUM_DNS_H
 
 #include "stdinc.h"
-#include "authd.h"
+#include "authproc.h"
 
 extern rb_dlink_list nameservers;
 
 typedef void (*DNSCB)(const char *res, int status, int aftype, void *data);
 typedef void (*DNSLISTCB)(int resc, const char *resv[], int status, void *data);
 
-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);
+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);
+
 void dns_results_callback(const char *callid, const char *status, const char *aftype, const char *results);
 void dns_stats_results_callback(const char *callid, const char *status, int resc, const char *resv[]);
-void report_dns_servers(struct Client *);
-void init_nameserver_cache(void);
+
+void init_dns(void);
+void reload_nameservers(void);
 
 #endif