diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-29 14:57:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-29 14:57:50 +0000 |
commit | 3c7b96221206c247d1ca1f2da4996f103e2df712 (patch) | |
tree | 9d5344ab384320bd18e2b869afaef5c9a3ab75af /src/dht/dht.h | |
parent | 794a11b2147dddd92b202d0f43bf44ac1147bff7 (diff) | |
download | gnunet-3c7b96221206c247d1ca1f2da4996f103e2df712.tar.gz gnunet-3c7b96221206c247d1ca1f2da4996f103e2df712.zip |
-doxygen, adding missing PACKED attributes
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r-- | src/dht/dht.h | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h index f736c8d75..a2c83e5ec 100644 --- a/src/dht/dht.h +++ b/src/dht/dht.h | |||
@@ -43,7 +43,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
43 | struct GNUNET_DHT_ClientGetStopMessage | 43 | struct GNUNET_DHT_ClientGetStopMessage |
44 | { | 44 | { |
45 | /** | 45 | /** |
46 | * Type: GNUNET_MESSAGE_TYPE_DHT_GET_STOP | 46 | * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_STOP |
47 | */ | 47 | */ |
48 | struct GNUNET_MessageHeader header; | 48 | struct GNUNET_MessageHeader header; |
49 | 49 | ||
@@ -72,7 +72,7 @@ struct GNUNET_DHT_ClientGetStopMessage | |||
72 | struct GNUNET_DHT_ClientGetMessage | 72 | struct GNUNET_DHT_ClientGetMessage |
73 | { | 73 | { |
74 | /** | 74 | /** |
75 | * Type: GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET | 75 | * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET |
76 | */ | 76 | */ |
77 | struct GNUNET_MessageHeader header; | 77 | struct GNUNET_MessageHeader header; |
78 | 78 | ||
@@ -90,12 +90,12 @@ struct GNUNET_DHT_ClientGetMessage | |||
90 | * The type for the data for the GET request; actually an 'enum | 90 | * The type for the data for the GET request; actually an 'enum |
91 | * GNUNET_BLOCK_Type'. | 91 | * GNUNET_BLOCK_Type'. |
92 | */ | 92 | */ |
93 | uint32_t type; | 93 | uint32_t type GNUNET_PACKED; |
94 | 94 | ||
95 | /** | 95 | /** |
96 | * The key to search for | 96 | * The key to search for |
97 | */ | 97 | */ |
98 | struct GNUNET_HashCode key; | 98 | struct GNUNET_HashCode key GNUNET_PACKED; |
99 | 99 | ||
100 | /** | 100 | /** |
101 | * Unique ID identifying this request, if 0 then | 101 | * Unique ID identifying this request, if 0 then |
@@ -115,7 +115,7 @@ struct GNUNET_DHT_ClientGetMessage | |||
115 | struct GNUNET_DHT_ClientGetResultSeenMessage | 115 | struct GNUNET_DHT_ClientGetResultSeenMessage |
116 | { | 116 | { |
117 | /** | 117 | /** |
118 | * Type: GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN | 118 | * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN |
119 | */ | 119 | */ |
120 | struct GNUNET_MessageHeader header; | 120 | struct GNUNET_MessageHeader header; |
121 | 121 | ||
@@ -128,7 +128,7 @@ struct GNUNET_DHT_ClientGetResultSeenMessage | |||
128 | * The key we are searching for (to make it easy to find the corresponding | 128 | * The key we are searching for (to make it easy to find the corresponding |
129 | * GET inside the service). | 129 | * GET inside the service). |
130 | */ | 130 | */ |
131 | struct GNUNET_HashCode key; | 131 | struct GNUNET_HashCode key GNUNET_PACKED; |
132 | 132 | ||
133 | /** | 133 | /** |
134 | * Unique ID identifying this request. | 134 | * Unique ID identifying this request. |
@@ -147,14 +147,14 @@ struct GNUNET_DHT_ClientGetResultSeenMessage | |||
147 | struct GNUNET_DHT_ClientResultMessage | 147 | struct GNUNET_DHT_ClientResultMessage |
148 | { | 148 | { |
149 | /** | 149 | /** |
150 | * Type: GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT | 150 | * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT |
151 | */ | 151 | */ |
152 | struct GNUNET_MessageHeader header; | 152 | struct GNUNET_MessageHeader header; |
153 | 153 | ||
154 | /** | 154 | /** |
155 | * The type for the data. | 155 | * The type for the data. |
156 | */ | 156 | */ |
157 | uint32_t type; | 157 | uint32_t type GNUNET_PACKED; |
158 | 158 | ||
159 | /** | 159 | /** |
160 | * Number of peers recorded in the outgoing path from source to the | 160 | * Number of peers recorded in the outgoing path from source to the |
@@ -181,7 +181,7 @@ struct GNUNET_DHT_ClientResultMessage | |||
181 | /** | 181 | /** |
182 | * The key that was searched for | 182 | * The key that was searched for |
183 | */ | 183 | */ |
184 | struct GNUNET_HashCode key; | 184 | struct GNUNET_HashCode key GNUNET_PACKED; |
185 | 185 | ||
186 | /* put path, get path and actual data are copied to end of this dealy do */ | 186 | /* put path, get path and actual data are copied to end of this dealy do */ |
187 | 187 | ||
@@ -194,7 +194,7 @@ struct GNUNET_DHT_ClientResultMessage | |||
194 | struct GNUNET_DHT_ClientPutMessage | 194 | struct GNUNET_DHT_ClientPutMessage |
195 | { | 195 | { |
196 | /** | 196 | /** |
197 | * Type: GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT | 197 | * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT |
198 | */ | 198 | */ |
199 | struct GNUNET_MessageHeader header; | 199 | struct GNUNET_MessageHeader header; |
200 | 200 | ||
@@ -226,7 +226,7 @@ struct GNUNET_DHT_ClientPutMessage | |||
226 | /** | 226 | /** |
227 | * The key to store the value under. | 227 | * The key to store the value under. |
228 | */ | 228 | */ |
229 | struct GNUNET_HashCode key; | 229 | struct GNUNET_HashCode key GNUNET_PACKED; |
230 | 230 | ||
231 | /* DATA copied to end of this message */ | 231 | /* DATA copied to end of this message */ |
232 | 232 | ||
@@ -239,7 +239,7 @@ struct GNUNET_DHT_ClientPutMessage | |||
239 | struct GNUNET_DHT_ClientPutConfirmationMessage | 239 | struct GNUNET_DHT_ClientPutConfirmationMessage |
240 | { | 240 | { |
241 | /** | 241 | /** |
242 | * Type: GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT_OK | 242 | * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT_OK |
243 | */ | 243 | */ |
244 | struct GNUNET_MessageHeader header; | 244 | struct GNUNET_MessageHeader header; |
245 | 245 | ||
@@ -263,7 +263,7 @@ struct GNUNET_DHT_ClientPutConfirmationMessage | |||
263 | struct GNUNET_DHT_MonitorPutMessage | 263 | struct GNUNET_DHT_MonitorPutMessage |
264 | { | 264 | { |
265 | /** | 265 | /** |
266 | * Type: GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT | 266 | * Type: #GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT |
267 | */ | 267 | */ |
268 | struct GNUNET_MessageHeader header; | 268 | struct GNUNET_MessageHeader header; |
269 | 269 | ||
@@ -301,7 +301,7 @@ struct GNUNET_DHT_MonitorPutMessage | |||
301 | /** | 301 | /** |
302 | * The key to store the value under. | 302 | * The key to store the value under. |
303 | */ | 303 | */ |
304 | struct GNUNET_HashCode key; | 304 | struct GNUNET_HashCode key GNUNET_PACKED; |
305 | 305 | ||
306 | /* put path (if tracked) */ | 306 | /* put path (if tracked) */ |
307 | 307 | ||
@@ -316,7 +316,8 @@ struct GNUNET_DHT_MonitorPutMessage | |||
316 | struct GNUNET_DHT_MonitorStartStopMessage | 316 | struct GNUNET_DHT_MonitorStartStopMessage |
317 | { | 317 | { |
318 | /** | 318 | /** |
319 | * Type: GNUNET_MESSAGE_TYPE_DHT_MONITOR_(START|STOP) | 319 | * Type: #GNUNET_MESSAGE_TYPE_DHT_MONITOR_START or |
320 | * #GNUNET_MESSAGE_TYPE_DHT_MONITOR_STOP | ||
320 | */ | 321 | */ |
321 | struct GNUNET_MessageHeader header; | 322 | struct GNUNET_MessageHeader header; |
322 | 323 | ||
@@ -348,7 +349,7 @@ struct GNUNET_DHT_MonitorStartStopMessage | |||
348 | /** | 349 | /** |
349 | * The key to filter messages by. | 350 | * The key to filter messages by. |
350 | */ | 351 | */ |
351 | struct GNUNET_HashCode key; | 352 | struct GNUNET_HashCode key GNUNET_PACKED; |
352 | }; | 353 | }; |
353 | 354 | ||
354 | 355 | ||
@@ -358,7 +359,7 @@ struct GNUNET_DHT_MonitorStartStopMessage | |||
358 | struct GNUNET_DHT_MonitorGetMessage | 359 | struct GNUNET_DHT_MonitorGetMessage |
359 | { | 360 | { |
360 | /** | 361 | /** |
361 | * Type: GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET | 362 | * Type: #GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET |
362 | */ | 363 | */ |
363 | struct GNUNET_MessageHeader header; | 364 | struct GNUNET_MessageHeader header; |
364 | 365 | ||
@@ -391,7 +392,7 @@ struct GNUNET_DHT_MonitorGetMessage | |||
391 | /** | 392 | /** |
392 | * The key to store the value under. | 393 | * The key to store the value under. |
393 | */ | 394 | */ |
394 | struct GNUNET_HashCode key; | 395 | struct GNUNET_HashCode key GNUNET_PACKED; |
395 | 396 | ||
396 | /* get path (if tracked) */ | 397 | /* get path (if tracked) */ |
397 | 398 | ||
@@ -403,7 +404,7 @@ struct GNUNET_DHT_MonitorGetMessage | |||
403 | struct GNUNET_DHT_MonitorGetRespMessage | 404 | struct GNUNET_DHT_MonitorGetRespMessage |
404 | { | 405 | { |
405 | /** | 406 | /** |
406 | * Type: GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT | 407 | * Type: #GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT |
407 | */ | 408 | */ |
408 | struct GNUNET_MessageHeader header; | 409 | struct GNUNET_MessageHeader header; |
409 | 410 | ||
@@ -430,7 +431,7 @@ struct GNUNET_DHT_MonitorGetRespMessage | |||
430 | /** | 431 | /** |
431 | * The key of the corresponding GET request. | 432 | * The key of the corresponding GET request. |
432 | */ | 433 | */ |
433 | struct GNUNET_HashCode key; | 434 | struct GNUNET_HashCode key GNUNET_PACKED; |
434 | 435 | ||
435 | /* put path (if tracked) */ | 436 | /* put path (if tracked) */ |
436 | 437 | ||