aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/namestore.h')
-rw-r--r--src/namestore/namestore.h48
1 files changed, 15 insertions, 33 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h
index 67d61f9b3..e9a38f0b4 100644
--- a/src/namestore/namestore.h
+++ b/src/namestore/namestore.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @file namestore/namestore.h 22 * @file namestore/namestore.h
@@ -37,8 +37,7 @@ GNUNET_NETWORK_STRUCT_BEGIN
37/** 37/**
38 * Generic namestore message with op id 38 * Generic namestore message with op id
39 */ 39 */
40struct GNUNET_NAMESTORE_Header 40struct GNUNET_NAMESTORE_Header {
41{
42 /** 41 /**
43 * header.type will be GNUNET_MESSAGE_TYPE_NAMESTORE_* 42 * header.type will be GNUNET_MESSAGE_TYPE_NAMESTORE_*
44 * header.size will be message size 43 * header.size will be message size
@@ -55,8 +54,7 @@ struct GNUNET_NAMESTORE_Header
55/** 54/**
56 * Store a record to the namestore (as authority). 55 * Store a record to the namestore (as authority).
57 */ 56 */
58struct RecordStoreMessage 57struct RecordStoreMessage {
59{
60 /** 58 /**
61 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE 59 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE
62 */ 60 */
@@ -102,8 +100,7 @@ struct RecordStoreMessage
102/** 100/**
103 * Response to a record storage request. 101 * Response to a record storage request.
104 */ 102 */
105struct RecordStoreResponseMessage 103struct RecordStoreResponseMessage {
106{
107 /** 104 /**
108 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE 105 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE
109 */ 106 */
@@ -119,8 +116,7 @@ struct RecordStoreResponseMessage
119/** 116/**
120 * Lookup a label 117 * Lookup a label
121 */ 118 */
122struct LabelLookupMessage 119struct LabelLookupMessage {
123{
124 /** 120 /**
125 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP 121 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP
126 */ 122 */
@@ -145,8 +141,7 @@ struct LabelLookupMessage
145/** 141/**
146 * Lookup a label 142 * Lookup a label
147 */ 143 */
148struct LabelLookupResponseMessage 144struct LabelLookupResponseMessage {
149{
150 /** 145 /**
151 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP_RESPONSE 146 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP_RESPONSE
152 */ 147 */
@@ -189,8 +184,7 @@ struct LabelLookupResponseMessage
189/** 184/**
190 * Lookup a name for a zone hash 185 * Lookup a name for a zone hash
191 */ 186 */
192struct ZoneToNameMessage 187struct ZoneToNameMessage {
193{
194 /** 188 /**
195 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME 189 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME
196 */ 190 */
@@ -211,8 +205,7 @@ struct ZoneToNameMessage
211/** 205/**
212 * Respone for zone to name lookup 206 * Respone for zone to name lookup
213 */ 207 */
214struct ZoneToNameResponseMessage 208struct ZoneToNameResponseMessage {
215{
216 /** 209 /**
217 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE 210 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE
218 */ 211 */
@@ -248,15 +241,13 @@ struct ZoneToNameResponseMessage
248 * name with length name_len 241 * name with length name_len
249 * serialized record data with rd_count records 242 * serialized record data with rd_count records
250 */ 243 */
251
252}; 244};
253 245
254 246
255/** 247/**
256 * Record is returned from the namestore (as authority). 248 * Record is returned from the namestore (as authority).
257 */ 249 */
258struct RecordResultMessage 250struct RecordResultMessage {
259{
260 /** 251 /**
261 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT 252 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT
262 */ 253 */
@@ -297,8 +288,7 @@ struct RecordResultMessage
297/** 288/**
298 * Start monitoring a zone. 289 * Start monitoring a zone.
299 */ 290 */
300struct ZoneMonitorStartMessage 291struct ZoneMonitorStartMessage {
301{
302 /** 292 /**
303 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_START 293 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_START
304 */ 294 */
@@ -314,15 +304,13 @@ struct ZoneMonitorStartMessage
314 * Zone key. 304 * Zone key.
315 */ 305 */
316 struct GNUNET_CRYPTO_EcdsaPrivateKey zone; 306 struct GNUNET_CRYPTO_EcdsaPrivateKey zone;
317
318}; 307};
319 308
320 309
321/** 310/**
322 * Ask for next result of zone iteration for the given operation 311 * Ask for next result of zone iteration for the given operation
323 */ 312 */
324struct ZoneMonitorNextMessage 313struct ZoneMonitorNextMessage {
325{
326 /** 314 /**
327 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_NEXT 315 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_NEXT
328 */ 316 */
@@ -339,7 +327,6 @@ struct ZoneMonitorNextMessage
339 * should be send again). In NBO. 327 * should be send again). In NBO.
340 */ 328 */
341 uint64_t limit; 329 uint64_t limit;
342
343}; 330};
344 331
345 332
@@ -347,8 +334,7 @@ struct ZoneMonitorNextMessage
347/** 334/**
348 * Start a zone iteration for the given zone 335 * Start a zone iteration for the given zone
349 */ 336 */
350struct ZoneIterationStartMessage 337struct ZoneIterationStartMessage {
351{
352 /** 338 /**
353 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_START 339 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_START
354 */ 340 */
@@ -358,15 +344,13 @@ struct ZoneIterationStartMessage
358 * Zone key. All zeros for "all zones". 344 * Zone key. All zeros for "all zones".
359 */ 345 */
360 struct GNUNET_CRYPTO_EcdsaPrivateKey zone; 346 struct GNUNET_CRYPTO_EcdsaPrivateKey zone;
361
362}; 347};
363 348
364 349
365/** 350/**
366 * Ask for next result of zone iteration for the given operation 351 * Ask for next result of zone iteration for the given operation
367 */ 352 */
368struct ZoneIterationNextMessage 353struct ZoneIterationNextMessage {
369{
370 /** 354 /**
371 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT 355 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT
372 */ 356 */
@@ -378,15 +362,13 @@ struct ZoneIterationNextMessage
378 * should be send again). In NBO. 362 * should be send again). In NBO.
379 */ 363 */
380 uint64_t limit; 364 uint64_t limit;
381
382}; 365};
383 366
384 367
385/** 368/**
386 * Stop zone iteration for the given operation 369 * Stop zone iteration for the given operation
387 */ 370 */
388struct ZoneIterationStopMessage 371struct ZoneIterationStopMessage {
389{
390 /** 372 /**
391 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP 373 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP
392 */ 374 */