aboutsummaryrefslogtreecommitdiff
path: root/src/lib/net/resolve.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-10 12:56:09 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-10 13:00:02 -0400
commitc2ddb7b231c640a292d261af265dd423cee09179 (patch)
treea9c125f730396d4e7247b7c77628c3b306540658 /src/lib/net/resolve.h
parent5d8336c182777c36ebff561b420d67fcafb9a9f7 (diff)
downloadtor-c2ddb7b231c640a292d261af265dd423cee09179.tar.gz
tor-c2ddb7b231c640a292d261af265dd423cee09179.zip
Move tor_addr_{,port_}lookup to resolve.c
Diffstat (limited to 'src/lib/net/resolve.h')
-rw-r--r--src/lib/net/resolve.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/net/resolve.h b/src/lib/net/resolve.h
index c91aecfee4..bf870c44c4 100644
--- a/src/lib/net/resolve.h
+++ b/src/lib/net/resolve.h
@@ -22,7 +22,13 @@
#define USE_SANDBOX_GETADDRINFO
#endif
-MOCK_DECL(int,tor_lookup_hostname,(const char *name, uint32_t *addr));
+struct tor_addr_t;
+
+MOCK_DECL(int, tor_lookup_hostname,(const char *name, uint32_t *addr));
+MOCK_DECL(int, tor_addr_lookup,(const char *name, uint16_t family,
+ struct tor_addr_t *addr_out));
+int tor_addr_port_lookup(const char *s, struct tor_addr_t *addr_out,
+ uint16_t *port_out);
struct addrinfo;
#ifdef USE_SANDBOX_GETADDRINFO