added lookup test + fix in test
[oweals/gnunet.git] / src / namestore / namestore.h
index 761360c478c67d7aa654dfc1db5fc9f40936394a..d633f7393ed1c19286d04b7a82bd10aaff359ea5 100644 (file)
@@ -95,7 +95,7 @@ struct LookupBlockResponseMessage
    */
   struct GNUNET_CRYPTO_EcdsaPublicKey derived_key;
 
-  /* follwed by encrypted block data */
+  /* followed by encrypted block data */
 };
 
 
@@ -215,19 +215,19 @@ struct RecordStoreResponseMessage
 struct LabelLookupMessage
 {
   /**
-   * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_LABEL_LOOKUP
+   * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP
    */
   struct GNUNET_NAMESTORE_Header gns_header;
 
   /**
-   * The private key of the zone to look up in
+   * Length of the name
    */
-  struct GNUNET_CRYPTO_EcdsaPrivateKey zone;
+  uint32_t label_len GNUNET_PACKED;
 
   /**
-   * Length of the name
+   * The private key of the zone to look up in
    */
-  uint16_t label_len GNUNET_PACKED;
+  struct GNUNET_CRYPTO_EcdsaPrivateKey zone;
 
   /* followed by:
    * name with length name_len
@@ -353,7 +353,13 @@ struct ZoneMonitorStartMessage
   /**
    * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_START
    */
-  struct GNUNET_NAMESTORE_Header gns_header;
+  struct GNUNET_MessageHeader header;
+
+  /**
+   * #GNUNET_YES to first iterate over all records,
+   * #GNUNET_NO to only monitor changes.o
+   */
+  uint32_t iterate_first GNUNET_PACKED;
 
   /**
    * Zone key.