diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-23 15:00:54 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-23 15:00:54 +0900 |
commit | bb81464ede13b1cba93cd031de466bbc8c18f04f (patch) | |
tree | 6fc675d02f89c9611afb371b5291bb0fd86eb59e /src/include/gnunet_namestore_service.h | |
parent | b391cb1d41ad900385338936b655fc0699a61eca (diff) | |
download | gnunet-bb81464ede13b1cba93cd031de466bbc8c18f04f.tar.gz gnunet-bb81464ede13b1cba93cd031de466bbc8c18f04f.zip |
NAMESTORE: Introduce GANA-managed error codes
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r-- | src/include/gnunet_namestore_service.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h index f08c4746b..39449be5d 100644 --- a/src/include/gnunet_namestore_service.h +++ b/src/include/gnunet_namestore_service.h | |||
@@ -41,6 +41,7 @@ | |||
41 | #ifndef GNUNET_NAMESTORE_SERVICE_H | 41 | #ifndef GNUNET_NAMESTORE_SERVICE_H |
42 | #define GNUNET_NAMESTORE_SERVICE_H | 42 | #define GNUNET_NAMESTORE_SERVICE_H |
43 | 43 | ||
44 | #include "gnunet_error_codes.h" | ||
44 | #include "gnunet_util_lib.h" | 45 | #include "gnunet_util_lib.h" |
45 | #include "gnunet_block_lib.h" | 46 | #include "gnunet_block_lib.h" |
46 | #include "gnunet_gnsrecord_lib.h" | 47 | #include "gnunet_gnsrecord_lib.h" |
@@ -122,12 +123,11 @@ GNUNET_NAMESTORE_disconnect (struct GNUNET_NAMESTORE_Handle *h); | |||
122 | * @param success #GNUNET_SYSERR on failure (including timeout/queue drop/failure to validate) | 123 | * @param success #GNUNET_SYSERR on failure (including timeout/queue drop/failure to validate) |
123 | * #GNUNET_NO if content was already there or not found | 124 | * #GNUNET_NO if content was already there or not found |
124 | * #GNUNET_YES (or other positive value) on success | 125 | * #GNUNET_YES (or other positive value) on success |
125 | * @param emsg NULL on success, otherwise an error message | 126 | * @param ec the #GNUNET_ErrorCode, #GNUNET_EC_NONE on success. |
126 | */ | 127 | */ |
127 | typedef void | 128 | typedef void |
128 | (*GNUNET_NAMESTORE_ContinuationWithStatus) (void *cls, | 129 | (*GNUNET_NAMESTORE_ContinuationWithStatus) (void *cls, |
129 | int32_t success, | 130 | enum GNUNET_ErrorCode ec); |
130 | const char *emsg); | ||
131 | 131 | ||
132 | 132 | ||
133 | /** | 133 | /** |