]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
dns.h: label functions that are only used inside feature/relay
authorNick Mathewson <nickm@torproject.org>
Wed, 19 Feb 2020 17:17:13 +0000 (12:17 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 19 Feb 2020 17:17:13 +0000 (12:17 -0500)
src/feature/relay/dns.h

index 4e5766af0c36c7b41268daaeb55b0ba5ef5dc81a..70abaf138bd5898ec0656a1466a5bf93477991e6 100644 (file)
 
 int dns_init(void);
 int has_dns_init_failed(void);
-void dns_free_all(void);
 int dns_reset(void);
 void connection_dns_remove(edge_connection_t *conn);
 void assert_connection_edge_not_dns_pending(edge_connection_t *conn);
 void assert_all_pending_dns_resolves_ok(void);
 MOCK_DECL(void,dns_cancel_pending_resolve,(const char *question));
 int dns_resolve(edge_connection_t *exitconn);
-void dns_launch_correctness_checks(void);
 int dns_seems_to_be_broken(void);
 int dns_seems_to_be_broken_for_ipv6(void);
 void dns_reset_correctness_checks(void);
@@ -31,6 +29,11 @@ size_t dns_cache_total_allocation(void);
 void dump_dns_mem_usage(int severity);
 size_t dns_cache_handle_oom(time_t now, size_t min_remove_bytes);
 
+/* These functions are only used within the feature/relay module, and don't
+ * need stubs. */
+void dns_free_all(void);
+void dns_launch_correctness_checks(void);
+
 #else /* !defined(HAVE_MODULE_RELAY) */
 
 #define dns_init() (0)