diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-28 20:02:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-28 20:02:23 +0000 |
commit | 8113ba1371bfd97a4a09c47b070e8f4425ba10a9 (patch) | |
tree | 228453f6d1764aaac3f829896064ee1bf3c45b92 /src/namestore/namestore.h | |
parent | 3d1275946f7264fbd3baecfecddb3fd2e3a4fe57 (diff) | |
download | gnunet-8113ba1371bfd97a4a09c47b070e8f4425ba10a9.tar.gz gnunet-8113ba1371bfd97a4a09c47b070e8f4425ba10a9.zip |
-more code cleanup in namestore
Diffstat (limited to 'src/namestore/namestore.h')
-rw-r--r-- | src/namestore/namestore.h | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h index 8968abdf2..c86a2513b 100644 --- a/src/namestore/namestore.h +++ b/src/namestore/namestore.h | |||
@@ -406,6 +406,32 @@ struct RecordRemoveMessage | |||
406 | 406 | ||
407 | 407 | ||
408 | /** | 408 | /** |
409 | * Removal of the record succeeded. | ||
410 | */ | ||
411 | #define RECORD_REMOVE_RESULT_SUCCESS 0 | ||
412 | |||
413 | /** | ||
414 | * There are NO records for the given name. | ||
415 | */ | ||
416 | #define RECORD_REMOVE_RESULT_NO_RECORDS 1 | ||
417 | |||
418 | /** | ||
419 | * The specific record that was to be removed was | ||
420 | * not found. | ||
421 | */ | ||
422 | #define RECORD_REMOVE_RESULT_RECORD_NOT_FOUND 2 | ||
423 | |||
424 | /** | ||
425 | * Internal error, failed to sign the remaining records. | ||
426 | */ | ||
427 | #define RECORD_REMOVE_RESULT_FAILED_TO_SIGN 3 | ||
428 | |||
429 | /** | ||
430 | * Internal error, failed to store the updated record set | ||
431 | */ | ||
432 | #define RECORD_REMOVE_RESULT_FAILED_TO_PUT_UPDATE 4 | ||
433 | |||
434 | /** | ||
409 | * Remove a record from the namestore response | 435 | * Remove a record from the namestore response |
410 | */ | 436 | */ |
411 | struct RecordRemoveResponseMessage | 437 | struct RecordRemoveResponseMessage |
@@ -416,12 +442,7 @@ struct RecordRemoveResponseMessage | |||
416 | struct GNUNET_NAMESTORE_Header gns_header; | 442 | struct GNUNET_NAMESTORE_Header gns_header; |
417 | 443 | ||
418 | /** | 444 | /** |
419 | * result: | 445 | * Result code (see RECORD_REMOVE_RESULT_*). In network byte order. |
420 | * 0 : successful | ||
421 | * 1 : no records for entry | ||
422 | * 2 : Could not find record to remove | ||
423 | * 3 : Failed to create new signature | ||
424 | * 4 : Failed to put new set of records in database | ||
425 | */ | 446 | */ |
426 | int32_t op_result; | 447 | int32_t op_result; |
427 | }; | 448 | }; |