diff options
author | Diadlo <polsha3@gmail.com> | 2017-08-05 11:10:43 +0300 |
---|---|---|
committer | Diadlo <polsha3@gmail.com> | 2017-08-27 16:02:58 +0300 |
commit | 020e77fbdf6b40b714bd97c34e3cd0b0dd036be2 (patch) | |
tree | 3cb14469386f903d3f8405920f5a579946b6f50b /toxcore/network.h | |
parent | f084f2c621b75a146ccefecbffa9be5f514297e3 (diff) |
Remove 'in_addr' and 'addrinfo' mention from network.h
Diffstat (limited to 'toxcore/network.h')
-rw-r--r-- | toxcore/network.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/toxcore/network.h b/toxcore/network.h index f57c6897..3c98c168 100644 --- a/toxcore/network.h +++ b/toxcore/network.h | |||
@@ -63,10 +63,6 @@ | |||
63 | 63 | ||
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | struct in_addr; | ||
67 | struct in6_addr; | ||
68 | struct addrinfo; | ||
69 | |||
70 | typedef short Family; | 66 | typedef short Family; |
71 | 67 | ||
72 | typedef int Socket; | 68 | typedef int Socket; |
@@ -165,14 +161,6 @@ typedef struct { | |||
165 | } | 161 | } |
166 | IP_Port; | 162 | IP_Port; |
167 | 163 | ||
168 | /* Convert in_addr to IP */ | ||
169 | void get_ip4(IP4 *ip, const struct in_addr *addr); | ||
170 | void get_ip6(IP6 *ip, const struct in6_addr *addr); | ||
171 | |||
172 | /* Conevrt IP to in_addr */ | ||
173 | void fill_addr4(IP4 ip, struct in_addr *addr); | ||
174 | void fill_addr6(IP6 ip, struct in6_addr *addr); | ||
175 | |||
176 | /* Convert values between host and network byte order. | 164 | /* Convert values between host and network byte order. |
177 | */ | 165 | */ |
178 | uint32_t net_htonl(uint32_t hostlong); | 166 | uint32_t net_htonl(uint32_t hostlong); |