diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-07-08 21:44:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-07-08 21:44:05 +0000 |
commit | 8f31d00ecb420926db5363a2882b5302d8635246 (patch) | |
tree | 93cbc42a2d86539716fa508ed34748d6a84c370b /src/namestore/namestore.h | |
parent | 8096356e5dab41fa45cedfaf1f5bb41603cba89a (diff) | |
download | gnunet-8f31d00ecb420926db5363a2882b5302d8635246.tar.gz gnunet-8f31d00ecb420926db5363a2882b5302d8635246.zip |
-skeleton for monitor API
Diffstat (limited to 'src/namestore/namestore.h')
-rw-r--r-- | src/namestore/namestore.h | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h index 0c1ec9be3..3fb7a558c 100644 --- a/src/namestore/namestore.h +++ b/src/namestore/namestore.h | |||
@@ -368,6 +368,29 @@ struct ZoneToNameResponseMessage | |||
368 | }; | 368 | }; |
369 | 369 | ||
370 | 370 | ||
371 | /** | ||
372 | * Start monitoring a zone. | ||
373 | */ | ||
374 | struct ZoneMonitorStartMessage | ||
375 | { | ||
376 | /** | ||
377 | * Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_START | ||
378 | */ | ||
379 | struct GNUNET_NAMESTORE_Header gns_header; | ||
380 | |||
381 | /** | ||
382 | * Zone hash | ||
383 | */ | ||
384 | struct GNUNET_CRYPTO_ShortHashCode zone; | ||
385 | |||
386 | /** | ||
387 | * All zones. GNUNET_YES to monitor all zones, | ||
388 | * GNUNET_NO to only monitor 'zone'. In NBO. | ||
389 | */ | ||
390 | uint32_t all_zones GNUNET_PACKED; | ||
391 | |||
392 | }; | ||
393 | |||
371 | 394 | ||
372 | /** | 395 | /** |
373 | * Start a zone iteration for the given zone | 396 | * Start a zone iteration for the given zone |
@@ -419,6 +442,7 @@ struct ZoneIterationStopMessage | |||
419 | struct GNUNET_NAMESTORE_Header gns_header; | 442 | struct GNUNET_NAMESTORE_Header gns_header; |
420 | }; | 443 | }; |
421 | 444 | ||
445 | |||
422 | /** | 446 | /** |
423 | * Next result of zone iteration for the given operation | 447 | * Next result of zone iteration for the given operation |
424 | * // FIXME: use 'struct LookupResponseMessage' instead? (identical except | 448 | * // FIXME: use 'struct LookupResponseMessage' instead? (identical except |
@@ -435,7 +459,9 @@ struct ZoneIterationResponseMessage | |||
435 | 459 | ||
436 | uint16_t name_len; | 460 | uint16_t name_len; |
437 | 461 | ||
438 | /* Record data length */ | 462 | /** |
463 | * Record data length | ||
464 | */ | ||
439 | uint16_t rd_len; | 465 | uint16_t rd_len; |
440 | 466 | ||
441 | /** | 467 | /** |
@@ -458,9 +484,11 @@ struct ZoneIterationResponseMessage | |||
458 | */ | 484 | */ |
459 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded public_key; | 485 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded public_key; |
460 | 486 | ||
461 | |||
462 | |||
463 | }; | 487 | }; |
488 | |||
489 | |||
490 | |||
491 | |||
464 | GNUNET_NETWORK_STRUCT_END | 492 | GNUNET_NETWORK_STRUCT_END |
465 | 493 | ||
466 | 494 | ||