diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-03-08 14:14:01 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-03-08 14:14:01 +0000 |
commit | 3a60024e089a38aa32fcafece7c257672abf4608 (patch) | |
tree | a3c36e0a87766bd85e450bd1b9c8766965a34710 /src/gns/gns.h | |
parent | 588b14ec0ec5c59d0dad37dcc0841c1ff0b2942c (diff) | |
download | gnunet-3a60024e089a38aa32fcafece7c257672abf4608.tar.gz gnunet-3a60024e089a38aa32fcafece7c257672abf4608.zip |
-GNS service api change, replaced complicated buggy code
Diffstat (limited to 'src/gns/gns.h')
-rw-r--r-- | src/gns/gns.h | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/src/gns/gns.h b/src/gns/gns.h index df964939a..e0cb0fd29 100644 --- a/src/gns/gns.h +++ b/src/gns/gns.h | |||
@@ -41,14 +41,9 @@ struct GNUNET_GNS_ClientLookupMessage | |||
41 | struct GNUNET_MessageHeader header; | 41 | struct GNUNET_MessageHeader header; |
42 | 42 | ||
43 | /** | 43 | /** |
44 | * A key. TODO some uid | ||
45 | */ | ||
46 | GNUNET_HashCode key; | ||
47 | |||
48 | /** | ||
49 | * Unique identifier for this request (for key collisions). | 44 | * Unique identifier for this request (for key collisions). |
50 | */ | 45 | */ |
51 | uint64_t unique_id GNUNET_PACKED; | 46 | uint32_t id GNUNET_PACKED; |
52 | 47 | ||
53 | /** | 48 | /** |
54 | * the type of record to look up | 49 | * the type of record to look up |
@@ -73,14 +68,7 @@ struct GNUNET_GNS_ClientLookupResultMessage | |||
73 | /** | 68 | /** |
74 | * Unique identifier for this request (for key collisions). | 69 | * Unique identifier for this request (for key collisions). |
75 | */ | 70 | */ |
76 | // FIXME: unaligned | 71 | uint32_t id GNUNET_PACKED; |
77 | uint64_t unique_id; | ||
78 | |||
79 | /** | ||
80 | * A key. TODO some uid | ||
81 | * // FIXME: why hash? | ||
82 | */ | ||
83 | GNUNET_HashCode key; | ||
84 | 72 | ||
85 | /** | 73 | /** |
86 | * The number of records contained in response | 74 | * The number of records contained in response |
@@ -103,15 +91,9 @@ struct GNUNET_GNS_ClientShortenMessage | |||
103 | struct GNUNET_MessageHeader header; | 91 | struct GNUNET_MessageHeader header; |
104 | 92 | ||
105 | /** | 93 | /** |
106 | * A key. TODO some uid | 94 | * Unique identifier for this request |
107 | */ | 95 | */ |
108 | GNUNET_HashCode key; | 96 | uint32_t id GNUNET_PACKED; |
109 | |||
110 | /** | ||
111 | * Unique identifier for this request (for key collisions). | ||
112 | */ | ||
113 | // FIXME: unaligned | ||
114 | uint64_t unique_id GNUNET_PACKED; | ||
115 | 97 | ||
116 | /* Followed by the name to shorten up */ | 98 | /* Followed by the name to shorten up */ |
117 | }; | 99 | }; |
@@ -130,14 +112,7 @@ struct GNUNET_GNS_ClientShortenResultMessage | |||
130 | /** | 112 | /** |
131 | * Unique identifier for this request (for key collisions). | 113 | * Unique identifier for this request (for key collisions). |
132 | */ | 114 | */ |
133 | // FIXME: unaligned | 115 | uint32_t id GNUNET_PACKED; |
134 | uint64_t unique_id GNUNET_PACKED; | ||
135 | |||
136 | /** | ||
137 | * A key. TODO some uid | ||
138 | * // FIXME: why hash? | ||
139 | */ | ||
140 | GNUNET_HashCode key; | ||
141 | 116 | ||
142 | /* followed by the shortened name or '\0' for no result*/ | 117 | /* followed by the shortened name or '\0' for no result*/ |
143 | 118 | ||