diff src/dns.h @ 0:6ee11bf9e3ea

Initial revision
author jcid
date Sun, 07 Oct 2007 00:36:34 +0200
parents
children 9cfe920dca2e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/dns.h	Sun Oct 07 00:36:34 2007 +0200
@@ -0,0 +1,31 @@
+#ifndef __DNS_H__
+#define __DNS_H__
+
+#include "chain.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
+typedef void (*DnsCallback_t)(int Status, Dlist *addr_list, void *data);
+
+void a_Dns_init (void);
+void a_Dns_freeall(void);
+void a_Dns_resolve(const char *hostname, DnsCallback_t cb_func, void *cb_data);
+
+#define DILLO_ADDR_MAX 16
+
+typedef struct _DilloHost
+{
+  int af;
+  int alen;
+  char data[DILLO_ADDR_MAX];
+} DilloHost;
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __DNS_H__ */