X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fgns%2Fgns.h;h=cb47c817a8d99e92269ec83dee7d5afa56204897;hb=82c4c89493dcbfc6ee7fd1232a9088d02e2cd0a2;hp=e35df78586f398bc2547a92b530b590605005772;hpb=bd742f26f08fed45b48eeb1567447acd7a77d350;p=oweals%2Fgnunet.git diff --git a/src/gns/gns.h b/src/gns/gns.h index e35df7858..cb47c817a 100644 --- a/src/gns/gns.h +++ b/src/gns/gns.h @@ -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*/ };