- LRN's patch
[oweals/gnunet.git] / src / gns / gns.h
index e35df78586f398bc2547a92b530b590605005772..cb47c817a8d99e92269ec83dee7d5afa56204897 100644 (file)
@@ -28,7 +28,6 @@
 
 GNUNET_NETWORK_STRUCT_BEGIN
 
-
 /**
  * Message from client to GNS service to lookup records.
  */
@@ -39,21 +38,23 @@ struct GNUNET_GNS_ClientLookupMessage
    */
   struct GNUNET_MessageHeader header;
 
+  /**
+   * A key. TODO some uid
+   */
+  GNUNET_HashCode key;
+
   /**
    * Unique identifier for this request (for key collisions).
    */
+  // FIXME: unaligned
   uint64_t unique_id;
 
   /**
    * the type of record to look up
    */
+  // FIXME: bad type - should be of GNUNET_GNS_RecordType
   int type;
 
-  /**
-   * Length of name to lookup
-   */
-  uint32_t namelen;
-
   /* Followed by the name to look up */
 };
 
@@ -71,18 +72,21 @@ struct GNUNET_GNS_ClientResultMessage
   /**
    * Unique identifier for this request (for key collisions).
    */
+  // FIXME: unaligned
   uint64_t unique_id;
 
   /**
    * A key. TODO some uid
+   * // FIXME: why hash?
    */
   GNUNET_HashCode key;
 
   /**
    * The number of records contained in response
-   */
+   */  
   uint32_t num_records;
 
+  // FIXME: what format has a GNS_Record?
   /* followed by num_records GNUNET_GNS_Records*/
 
 };