diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-14 01:06:49 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-14 19:30:05 +0000 |
commit | d79b15c52daf82748040f41f93fa6e046efdeee7 (patch) | |
tree | 9d2e84a4616c17a91b9f48dcf7731e9dcd816571 /toxcore/network.h | |
parent | 1eea3f0ab6fbccac3f276b7db7101ed57e6986ba (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.h | 6 |
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 | } |
156 | IP; | 156 | IP; |
157 | 157 | ||
158 | typedef struct { | 158 | #define IP_PORT_DEFINED |
159 | typedef struct IP_Port { | ||
159 | IP ip; | 160 | IP ip; |
160 | uint16_t port; | 161 | uint16_t port; |
161 | } | 162 | } IP_Port; |
162 | IP_Port; | ||
163 | 163 | ||
164 | /* Convert values between host and network byte order. | 164 | /* Convert values between host and network byte order. |
165 | */ | 165 | */ |