summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-12-22 05:29:06 +0000
committerRoger Dingledine <arma@torproject.org>2004-12-22 05:29:06 +0000
commitcf17d0d29c9526a0e9b6631693eb2bf0479e655c (patch)
treef2da64c5808b3120b5422d6e4948f73775976f92 /src/common/compat.h
parent036384fd8eaf83354ed59abec1c9816abd82528c (diff)
downloadtor-cf17d0d29c9526a0e9b6631693eb2bf0479e655c.tar.gz
tor-cf17d0d29c9526a0e9b6631693eb2bf0479e655c.zip
move network_init from or/main to common/compat
call network_init in tor-resolve.c too move tor_lookup_hostname from common/util to common/compat svn:r3203
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 48163a95fc..dafd1339a5 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -117,8 +117,10 @@ int replace_file(const char *from, const char *to);
struct in_addr;
int tor_inet_aton(const char *cp, struct in_addr *addr);
+int tor_lookup_hostname(const char *name, uint32_t *addr);
void set_socket_nonblocking(int socket);
int tor_socketpair(int family, int type, int protocol, int fd[2]);
+int network_init(void);
/* For stupid historical reasons, windows sockets have an independent
* set of errnos, and an independent way to get them. Also, you can't
* always believe WSAEWOULDBLOCK. Use the macros below to compare