[IOMultiplexer] Added asynchronous DNS Lookups
[IOMultiplexer.git] / src / IODNSEngine_cares.c
diff --git a/src/IODNSEngine_cares.c b/src/IODNSEngine_cares.c
new file mode 100644 (file)
index 0000000..c35cbc7
--- /dev/null
@@ -0,0 +1,41 @@
+/* IODNSEngine_cares.c - IOMultiplexer
+ * Copyright (C) 2012  Philipp Kreil (pk910)
+ * 
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License 
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. 
+ */
+#include "IODNSEngine.h"
+
+static int dnsengine_cares_init() {
+    return 0;
+}
+
+static void dnsengine_cares_add(struct IODNSQuery *iodns) {
+    /* unused */
+}
+
+static void dnsengine_cares_remove(struct IODNSQuery *iodns) {
+    /* unused */
+}
+
+static void dnsengine_cares_loop() {
+    /* unused */
+}
+
+struct IODNSEngine dnsengine_cares = {
+    .name = "cares",
+    .init = dnsengine_cares_init,
+    .add = dnsengine_cares_add,
+    .remove = dnsengine_cares_remove,
+    .loop = dnsengine_cares_loop,
+};