aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/perf_datastore_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-19 13:54:35 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-19 13:54:35 +0000
commitbf2d1ccefd7b5bd13295733a36bf19afba46f4b2 (patch)
treec440a5bcf7e328d1dd05dd3b1a5def173adb49df /src/datastore/perf_datastore_api.c
parent1997d2d086b237e2688d12567933a53b2229ea26 (diff)
downloadgnunet-bf2d1ccefd7b5bd13295733a36bf19afba46f4b2.tar.gz
gnunet-bf2d1ccefd7b5bd13295733a36bf19afba46f4b2.zip
adding min_expiration argument to GNUNET_DATASTORE_ContinuationWithStatus callback to communicate which content has a chance of being stored in the medium term
Diffstat (limited to 'src/datastore/perf_datastore_api.c')
-rw-r--r--src/datastore/perf_datastore_api.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c
index 1ba215374..372a61f7d 100644
--- a/src/datastore/perf_datastore_api.c
+++ b/src/datastore/perf_datastore_api.c
@@ -111,7 +111,7 @@ run_continuation (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
111 111
112 112
113static void 113static void
114check_success (void *cls, int success, const char *msg) 114check_success (void *cls, int success, struct GNUNET_TIME_Absolute min_expiration, const char *msg)
115{ 115{
116 struct CpsRunContext *crc = cls; 116 struct CpsRunContext *crc = cls;
117 117
@@ -149,10 +149,12 @@ check_success (void *cls, int success, const char *msg)
149 * 149 *
150 * @param cls closure 150 * @param cls closure
151 * @param success GNUNET_SYSERR on failure 151 * @param success GNUNET_SYSERR on failure
152 * @param min_expiration minimum expiration time required for content to be stored
153 * by the datacache at this time, zero for unknown
152 * @param msg NULL on success, otherwise an error message 154 * @param msg NULL on success, otherwise an error message
153 */ 155 */
154static void 156static void
155remove_next (void *cls, int success, const char *msg) 157remove_next (void *cls, int success, struct GNUNET_TIME_Absolute min_expiration, const char *msg)
156{ 158{
157 struct CpsRunContext *crc = cls; 159 struct CpsRunContext *crc = cls;
158 160
@@ -276,7 +278,7 @@ run_continuation (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
276 278
277 279
278static void 280static void
279run_tests (void *cls, int success, const char *msg) 281run_tests (void *cls, int success, struct GNUNET_TIME_Absolute min_expiration, const char *msg)
280{ 282{
281 struct CpsRunContext *crc = cls; 283 struct CpsRunContext *crc = cls;
282 284