fix compiler warning for format string
[oweals/gnunet.git] / src / gns / gns.h
index 476cb0fd219fe96caad58e807a6d1747d8c3d4c1..ca5525f801895ec07891252e70668da48668ea1c 100644 (file)
@@ -90,6 +90,32 @@ struct LookupMessage
 };
 
 
+/**
+ * Message from client to GNS service to lookup records.
+ */
+struct ReverseLookupMessage
+{
+  /**
+   * Header of type #GNUNET_MESSAGE_TYPE_GNS_REVERSE_LOOKUP
+   */
+  struct GNUNET_MessageHeader header;
+
+  /**
+   * Unique identifier for this request (for key collisions).
+   */
+  uint32_t id GNUNET_PACKED;
+
+  /**
+   * Zone that is target for reverse lookup
+   */
+  struct GNUNET_CRYPTO_EcdsaPublicKey zone_pkey;
+  
+  /**
+   * Root zone
+   */
+  struct GNUNET_CRYPTO_EcdsaPublicKey root_pkey;
+};
+
 /**
  * Message from GNS service to client: new results.
  */
@@ -114,6 +140,24 @@ struct LookupResultMessage
 
 };
 
+/**
+ * Message from GNS service to client: new results.
+ */
+struct ReverseLookupResultMessage
+{
+  /**
+    * Header of type #GNUNET_MESSAGE_TYPE_GNS_REVERSE_LOOKUP_RESULT
+   */
+  struct GNUNET_MessageHeader header;
+
+  /**
+   * Unique identifier for this request (for key collisions).
+   */
+  uint32_t id GNUNET_PACKED;
+
+  /* followed by the resulting name of the reverse lookup */
+};
+
 
 GNUNET_NETWORK_STRUCT_END