summaryrefslogtreecommitdiff
path: root/src/or/dnsserv.h
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-07-21 12:26:18 +0200
committerSebastian Hahn <sebastian@torproject.org>2010-07-27 07:56:25 +0200
commite69dc22f4ed323ed4e4c1537c48b70ca0007773a (patch)
treefb02c294a56b84a70f881914069877e2e0d52980 /src/or/dnsserv.h
parent90d3260b4ab39e1c9041e3a55a2f175f9bbaba21 (diff)
downloadtor-e69dc22f4ed323ed4e4c1537c48b70ca0007773a.tar.gz
tor-e69dc22f4ed323ed4e4c1537c48b70ca0007773a.zip
Split headers for dnsserv.c functions out of or.h
The next series of commits begins addressing the issue that we're currently including the complete or.h file in all of our source files. To change that, we're splitting function definitions into new header files (one header file per source file).
Diffstat (limited to 'src/or/dnsserv.h')
-rw-r--r--src/or/dnsserv.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/or/dnsserv.h b/src/or/dnsserv.h
new file mode 100644
index 0000000000..f3b73d45a8
--- /dev/null
+++ b/src/or/dnsserv.h
@@ -0,0 +1,26 @@
+/* Copyright (c) 2001 Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2010, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file dnsserv.h
+ * \brief Header file for dnsserv functions
+ **/
+
+#ifndef _TOR_DNSSERV_H
+#define _TOR_DNSSERV_H
+
+void dnsserv_configure_listener(connection_t *conn);
+void dnsserv_close_listener(connection_t *conn);
+void dnsserv_resolved(edge_connection_t *conn,
+ int answer_type,
+ size_t answer_len,
+ const char *answer,
+ int ttl);
+void dnsserv_reject_request(edge_connection_t *conn);
+int dnsserv_launch_request(const char *name, int is_reverse);
+
+#endif
+