diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-19 13:54:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-19 13:54:35 +0000 |
commit | bf2d1ccefd7b5bd13295733a36bf19afba46f4b2 (patch) | |
tree | c440a5bcf7e328d1dd05dd3b1a5def173adb49df /src/datastore/perf_datastore_api.c | |
parent | 1997d2d086b237e2688d12567933a53b2229ea26 (diff) | |
download | gnunet-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.c | 8 |
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 | ||
113 | static void | 113 | static void |
114 | check_success (void *cls, int success, const char *msg) | 114 | check_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 | */ |
154 | static void | 156 | static void |
155 | remove_next (void *cls, int success, const char *msg) | 157 | remove_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 | ||
278 | static void | 280 | static void |
279 | run_tests (void *cls, int success, const char *msg) | 281 | run_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 | ||