added lookup test + fix in test
[oweals/gnunet.git] / src / namestore / namestore.h
index 4350dbab4b1ae90e4494b8b65d03f342ff3c087d..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 */
 };
 
 
@@ -209,6 +209,33 @@ struct RecordStoreResponseMessage
 };
 
 
+/**
+ * Lookup a label
+ */
+struct LabelLookupMessage
+{
+  /**
+   * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP
+   */
+  struct GNUNET_NAMESTORE_Header gns_header;
+
+  /**
+   * Length of the name
+   */
+  uint32_t label_len GNUNET_PACKED;
+
+  /**
+   * The private key of the zone to look up in
+   */
+  struct GNUNET_CRYPTO_EcdsaPrivateKey zone;
+
+  /* followed by:
+   * name with length name_len
+   */
+};
+
+
+
 
 /**
  * Lookup a name for a zone hash
@@ -326,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.