diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-06-16 22:08:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-06-16 22:08:40 +0000 |
commit | 55fe7180de4f26582646418073bd52bf13bb5697 (patch) | |
tree | 30296a970be4a650f1f82644ead9f9be305f5a9d /src/include/gnunet_datastore_service.h | |
parent | a69e21076e7a4d6e5b6d66078cae83c0626c94aa (diff) | |
download | gnunet-55fe7180de4f26582646418073bd52bf13bb5697.tar.gz gnunet-55fe7180de4f26582646418073bd52bf13bb5697.zip |
further datastore API improvements:
Diffstat (limited to 'src/include/gnunet_datastore_service.h')
-rw-r--r-- | src/include/gnunet_datastore_service.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/include/gnunet_datastore_service.h b/src/include/gnunet_datastore_service.h index 626a5afcc..10b2157d3 100644 --- a/src/include/gnunet_datastore_service.h +++ b/src/include/gnunet_datastore_service.h | |||
@@ -189,19 +189,16 @@ GNUNET_DATASTORE_update (struct GNUNET_DATASTORE_Handle *h, | |||
189 | * @param expiration expiration time for the content | 189 | * @param expiration expiration time for the content |
190 | * @param uid unique identifier for the datum; | 190 | * @param uid unique identifier for the datum; |
191 | * maybe 0 if no unique identifier is available | 191 | * maybe 0 if no unique identifier is available |
192 | * | ||
193 | * @return GNUNET_SYSERR to abort the iteration, GNUNET_OK to continue, | ||
194 | * GNUNET_NO to delete the item and continue (if supported) | ||
195 | */ | 192 | */ |
196 | typedef int (*GNUNET_DATASTORE_Iterator) (void *cls, | 193 | typedef void (*GNUNET_DATASTORE_Iterator) (void *cls, |
197 | const GNUNET_HashCode * key, | 194 | const GNUNET_HashCode * key, |
198 | uint32_t size, | 195 | uint32_t size, |
199 | const void *data, | 196 | const void *data, |
200 | uint32_t type, | 197 | uint32_t type, |
201 | uint32_t priority, | 198 | uint32_t priority, |
202 | uint32_t anonymity, | 199 | uint32_t anonymity, |
203 | struct GNUNET_TIME_Absolute | 200 | struct GNUNET_TIME_Absolute |
204 | expiration, unsigned long long uid); | 201 | expiration, uint64_t uid); |
205 | 202 | ||
206 | 203 | ||
207 | /** | 204 | /** |