diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-10-25 15:36:32 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-10-25 15:36:32 +0000 |
commit | 0b80f1a54fd5efba4bca8dc4269cc0cb8e25d77d (patch) | |
tree | 52a514ecf5d7cb4dda055a0a9c5c9ea0d78a8a77 /src/namestore/namestore.h | |
parent | 1ef878cfd071e9273ca2f8e11e743cfe6886ac1a (diff) | |
download | gnunet-0b80f1a54fd5efba4bca8dc4269cc0cb8e25d77d.tar.gz gnunet-0b80f1a54fd5efba4bca8dc4269cc0cb8e25d77d.zip |
api communication done
Diffstat (limited to 'src/namestore/namestore.h')
-rw-r--r-- | src/namestore/namestore.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h index d633f7393..5e900dbcc 100644 --- a/src/namestore/namestore.h +++ b/src/namestore/namestore.h | |||
@@ -235,6 +235,47 @@ struct LabelLookupMessage | |||
235 | }; | 235 | }; |
236 | 236 | ||
237 | 237 | ||
238 | /** | ||
239 | * Lookup a label | ||
240 | */ | ||
241 | struct LabelLookupResponseMessage | ||
242 | { | ||
243 | /** | ||
244 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP_RESPONSE | ||
245 | */ | ||
246 | struct GNUNET_NAMESTORE_Header gns_header; | ||
247 | |||
248 | /** | ||
249 | * Name length | ||
250 | */ | ||
251 | uint16_t name_len GNUNET_PACKED; | ||
252 | |||
253 | /** | ||
254 | * Length of serialized record data | ||
255 | */ | ||
256 | uint16_t rd_len GNUNET_PACKED; | ||
257 | |||
258 | /** | ||
259 | * Number of records contained | ||
260 | */ | ||
261 | uint16_t rd_count GNUNET_PACKED; | ||
262 | |||
263 | /** | ||
264 | * always zero (for alignment) | ||
265 | */ | ||
266 | uint16_t reserved GNUNET_PACKED; | ||
267 | |||
268 | /** | ||
269 | * The private key of the authority. | ||
270 | */ | ||
271 | struct GNUNET_CRYPTO_EcdsaPrivateKey private_key; | ||
272 | |||
273 | /* followed by: | ||
274 | * name with length name_len | ||
275 | * serialized record data with rd_count records | ||
276 | */ | ||
277 | }; | ||
278 | |||
238 | 279 | ||
239 | 280 | ||
240 | /** | 281 | /** |