diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-01 15:27:26 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-01 15:27:26 +0000 |
commit | ac0328545b3cd201df92c4a2bc90e078a898e0db (patch) | |
tree | 3588a7c0193a5f170443923c58ed88ab97b4e545 /src/namestore/namestore.h | |
parent | 80270d3107822eebfdbdb3eaeb03be6f63d7c9da (diff) | |
download | gnunet-ac0328545b3cd201df92c4a2bc90e078a898e0db.tar.gz gnunet-ac0328545b3cd201df92c4a2bc90e078a898e0db.zip |
- removing complete
Diffstat (limited to 'src/namestore/namestore.h')
-rw-r--r-- | src/namestore/namestore.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h index c8353e83b..be061e05e 100644 --- a/src/namestore/namestore.h +++ b/src/namestore/namestore.h | |||
@@ -169,6 +169,7 @@ struct RecordPutMessage | |||
169 | /* Length of serialized rd data */ | 169 | /* Length of serialized rd data */ |
170 | uint16_t rd_len; | 170 | uint16_t rd_len; |
171 | 171 | ||
172 | /* Number of records contained */ | ||
172 | uint16_t rd_count; | 173 | uint16_t rd_count; |
173 | 174 | ||
174 | /* Length of pubkey */ | 175 | /* Length of pubkey */ |
@@ -267,10 +268,17 @@ struct RecordRemoveMessage | |||
267 | 268 | ||
268 | /* Contenct starts here */ | 269 | /* Contenct starts here */ |
269 | 270 | ||
270 | /* name length */ | 271 | /* Name length */ |
271 | uint16_t name_len; | 272 | uint16_t name_len; |
272 | 273 | ||
273 | struct GNUNET_CRYPTO_RsaSignature signature; | 274 | /* Length of serialized rd data */ |
275 | uint16_t rd_len; | ||
276 | |||
277 | /* Number of records contained */ | ||
278 | uint16_t rd_count; | ||
279 | |||
280 | /* Length of pubkey */ | ||
281 | uint16_t key_len; | ||
274 | }; | 282 | }; |
275 | GNUNET_NETWORK_STRUCT_END | 283 | GNUNET_NETWORK_STRUCT_END |
276 | 284 | ||
@@ -289,7 +297,12 @@ struct RecordRemoveResponseMessage | |||
289 | /* Contenct starts here */ | 297 | /* Contenct starts here */ |
290 | 298 | ||
291 | /** | 299 | /** |
292 | * name length: GNUNET_NO (0) on error, GNUNET_OK (1) on success | 300 | * result: |
301 | * 0 : successful | ||
302 | * 1 : no records for entry | ||
303 | * 2 : Could not find record to remove | ||
304 | * 3 : Failed to create new signature | ||
305 | * 4 : Failed to put new set of records in database | ||
293 | */ | 306 | */ |
294 | uint16_t op_result; | 307 | uint16_t op_result; |
295 | }; | 308 | }; |