summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-14 01:06:49 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-14 19:30:05 +0000
commitd79b15c52daf82748040f41f93fa6e046efdeee7 (patch)
tree9d2e84a4616c17a91b9f48dcf7731e9dcd816571 /toxcore/network.h
parent1eea3f0ab6fbccac3f276b7db7101ed57e6986ba (diff)
Use apidsl to generate ping.h.
The ping.api.h file looks rather ugly, but it works. This is an exercise in finding the complete set of use cases needed from apidsl for toxcore. We'll try to make things work as much as possible, and then make apidsl better and make the .api.h files pretty.
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 943030e5..c8671f57 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -155,11 +155,11 @@ typedef struct {
155} 155}
156IP; 156IP;
157 157
158typedef struct { 158#define IP_PORT_DEFINED
159typedef struct IP_Port {
159 IP ip; 160 IP ip;
160 uint16_t port; 161 uint16_t port;
161} 162} IP_Port;
162IP_Port;
163 163
164/* Convert values between host and network byte order. 164/* Convert values between host and network byte order.
165 */ 165 */