diff options
Diffstat (limited to 'src/namestore/namestore.h')
-rw-r--r-- | src/namestore/namestore.h | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h index e9a38f0b4..0fb5bea7c 100644 --- a/src/namestore/namestore.h +++ b/src/namestore/namestore.h | |||
@@ -37,7 +37,8 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
37 | /** | 37 | /** |
38 | * Generic namestore message with op id | 38 | * Generic namestore message with op id |
39 | */ | 39 | */ |
40 | struct GNUNET_NAMESTORE_Header { | 40 | struct GNUNET_NAMESTORE_Header |
41 | { | ||
41 | /** | 42 | /** |
42 | * header.type will be GNUNET_MESSAGE_TYPE_NAMESTORE_* | 43 | * header.type will be GNUNET_MESSAGE_TYPE_NAMESTORE_* |
43 | * header.size will be message size | 44 | * header.size will be message size |
@@ -54,7 +55,8 @@ struct GNUNET_NAMESTORE_Header { | |||
54 | /** | 55 | /** |
55 | * Store a record to the namestore (as authority). | 56 | * Store a record to the namestore (as authority). |
56 | */ | 57 | */ |
57 | struct RecordStoreMessage { | 58 | struct RecordStoreMessage |
59 | { | ||
58 | /** | 60 | /** |
59 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE | 61 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE |
60 | */ | 62 | */ |
@@ -100,7 +102,8 @@ struct RecordStoreMessage { | |||
100 | /** | 102 | /** |
101 | * Response to a record storage request. | 103 | * Response to a record storage request. |
102 | */ | 104 | */ |
103 | struct RecordStoreResponseMessage { | 105 | struct RecordStoreResponseMessage |
106 | { | ||
104 | /** | 107 | /** |
105 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE | 108 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE |
106 | */ | 109 | */ |
@@ -116,7 +119,8 @@ struct RecordStoreResponseMessage { | |||
116 | /** | 119 | /** |
117 | * Lookup a label | 120 | * Lookup a label |
118 | */ | 121 | */ |
119 | struct LabelLookupMessage { | 122 | struct LabelLookupMessage |
123 | { | ||
120 | /** | 124 | /** |
121 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP | 125 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP |
122 | */ | 126 | */ |
@@ -141,7 +145,8 @@ struct LabelLookupMessage { | |||
141 | /** | 145 | /** |
142 | * Lookup a label | 146 | * Lookup a label |
143 | */ | 147 | */ |
144 | struct LabelLookupResponseMessage { | 148 | struct LabelLookupResponseMessage |
149 | { | ||
145 | /** | 150 | /** |
146 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP_RESPONSE | 151 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP_RESPONSE |
147 | */ | 152 | */ |
@@ -184,7 +189,8 @@ struct LabelLookupResponseMessage { | |||
184 | /** | 189 | /** |
185 | * Lookup a name for a zone hash | 190 | * Lookup a name for a zone hash |
186 | */ | 191 | */ |
187 | struct ZoneToNameMessage { | 192 | struct ZoneToNameMessage |
193 | { | ||
188 | /** | 194 | /** |
189 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME | 195 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME |
190 | */ | 196 | */ |
@@ -205,7 +211,8 @@ struct ZoneToNameMessage { | |||
205 | /** | 211 | /** |
206 | * Respone for zone to name lookup | 212 | * Respone for zone to name lookup |
207 | */ | 213 | */ |
208 | struct ZoneToNameResponseMessage { | 214 | struct ZoneToNameResponseMessage |
215 | { | ||
209 | /** | 216 | /** |
210 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE | 217 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE |
211 | */ | 218 | */ |
@@ -247,7 +254,8 @@ struct ZoneToNameResponseMessage { | |||
247 | /** | 254 | /** |
248 | * Record is returned from the namestore (as authority). | 255 | * Record is returned from the namestore (as authority). |
249 | */ | 256 | */ |
250 | struct RecordResultMessage { | 257 | struct RecordResultMessage |
258 | { | ||
251 | /** | 259 | /** |
252 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT | 260 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT |
253 | */ | 261 | */ |
@@ -288,7 +296,8 @@ struct RecordResultMessage { | |||
288 | /** | 296 | /** |
289 | * Start monitoring a zone. | 297 | * Start monitoring a zone. |
290 | */ | 298 | */ |
291 | struct ZoneMonitorStartMessage { | 299 | struct ZoneMonitorStartMessage |
300 | { | ||
292 | /** | 301 | /** |
293 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_START | 302 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_START |
294 | */ | 303 | */ |
@@ -310,7 +319,8 @@ struct ZoneMonitorStartMessage { | |||
310 | /** | 319 | /** |
311 | * Ask for next result of zone iteration for the given operation | 320 | * Ask for next result of zone iteration for the given operation |
312 | */ | 321 | */ |
313 | struct ZoneMonitorNextMessage { | 322 | struct ZoneMonitorNextMessage |
323 | { | ||
314 | /** | 324 | /** |
315 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_NEXT | 325 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_NEXT |
316 | */ | 326 | */ |
@@ -334,7 +344,8 @@ struct ZoneMonitorNextMessage { | |||
334 | /** | 344 | /** |
335 | * Start a zone iteration for the given zone | 345 | * Start a zone iteration for the given zone |
336 | */ | 346 | */ |
337 | struct ZoneIterationStartMessage { | 347 | struct ZoneIterationStartMessage |
348 | { | ||
338 | /** | 349 | /** |
339 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_START | 350 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_START |
340 | */ | 351 | */ |
@@ -350,7 +361,8 @@ struct ZoneIterationStartMessage { | |||
350 | /** | 361 | /** |
351 | * Ask for next result of zone iteration for the given operation | 362 | * Ask for next result of zone iteration for the given operation |
352 | */ | 363 | */ |
353 | struct ZoneIterationNextMessage { | 364 | struct ZoneIterationNextMessage |
365 | { | ||
354 | /** | 366 | /** |
355 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT | 367 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT |
356 | */ | 368 | */ |
@@ -368,7 +380,8 @@ struct ZoneIterationNextMessage { | |||
368 | /** | 380 | /** |
369 | * Stop zone iteration for the given operation | 381 | * Stop zone iteration for the given operation |
370 | */ | 382 | */ |
371 | struct ZoneIterationStopMessage { | 383 | struct ZoneIterationStopMessage |
384 | { | ||
372 | /** | 385 | /** |
373 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP | 386 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP |
374 | */ | 387 | */ |