added lookup test + fix in test
[oweals/gnunet.git] / src / namestore / namestore.h
index b95358fa445e3960ab6c604387054d48b1cfb0f2..d633f7393ed1c19286d04b7a82bd10aaff359ea5 100644 (file)
@@ -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.