aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_test_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_test_lib.c')
-rw-r--r--src/fs/fs_test_lib.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fs/fs_test_lib.c b/src/fs/fs_test_lib.c
index 1e098bd60..589f979d6 100644
--- a/src/fs/fs_test_lib.c
+++ b/src/fs/fs_test_lib.c
@@ -63,7 +63,7 @@ struct TestPublishOperation
63 /** 63 /**
64 * Task to abort publishing (timeout). 64 * Task to abort publishing (timeout).
65 */ 65 */
66 GNUNET_SCHEDULER_TaskIdentifier publish_timeout_task; 66 struct GNUNET_SCHEDULER_Task * publish_timeout_task;
67 67
68 /** 68 /**
69 * Seed for file generation. 69 * Seed for file generation.
@@ -131,7 +131,7 @@ struct TestDownloadOperation
131 /** 131 /**
132 * Function to call when download is done. 132 * Function to call when download is done.
133 */ 133 */
134 GNUNET_SCHEDULER_Task download_cont; 134 GNUNET_SCHEDULER_TaskCallback download_cont;
135 135
136 /** 136 /**
137 * Closure for download_cont. 137 * Closure for download_cont.
@@ -146,7 +146,7 @@ struct TestDownloadOperation
146 /** 146 /**
147 * Task to abort downloading (timeout). 147 * Task to abort downloading (timeout).
148 */ 148 */
149 GNUNET_SCHEDULER_TaskIdentifier download_timeout_task; 149 struct GNUNET_SCHEDULER_Task * download_timeout_task;
150 150
151 /** 151 /**
152 * Context for current download operation. 152 * Context for current download operation.
@@ -215,7 +215,7 @@ publish_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
215{ 215{
216 struct TestPublishOperation *po = cls; 216 struct TestPublishOperation *po = cls;
217 217
218 po->publish_timeout_task = GNUNET_SCHEDULER_NO_TASK; 218 po->publish_timeout_task = NULL;
219 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 219 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
220 "Timeout while trying to publish data\n"); 220 "Timeout while trying to publish data\n");
221 GNUNET_TESTBED_operation_done (po->fs_op); 221 GNUNET_TESTBED_operation_done (po->fs_op);
@@ -242,7 +242,7 @@ publish_progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info)
242 { 242 {
243 case GNUNET_FS_STATUS_PUBLISH_COMPLETED: 243 case GNUNET_FS_STATUS_PUBLISH_COMPLETED:
244 GNUNET_SCHEDULER_cancel (po->publish_timeout_task); 244 GNUNET_SCHEDULER_cancel (po->publish_timeout_task);
245 po->publish_timeout_task = GNUNET_SCHEDULER_NO_TASK; 245 po->publish_timeout_task = NULL;
246 po->publish_uri = 246 po->publish_uri =
247 GNUNET_FS_uri_dup (info->value.publish.specifics.completed.chk_uri); 247 GNUNET_FS_uri_dup (info->value.publish.specifics.completed.chk_uri);
248 GNUNET_SCHEDULER_add_continuation (&report_uri, po, 248 GNUNET_SCHEDULER_add_continuation (&report_uri, po,
@@ -489,7 +489,7 @@ download_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
489 489
490 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 490 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
491 "Timeout while trying to download file\n"); 491 "Timeout while trying to download file\n");
492 dop->download_timeout_task = GNUNET_SCHEDULER_NO_TASK; 492 dop->download_timeout_task = NULL;
493 GNUNET_FS_download_stop (dop->download_context, GNUNET_YES); 493 GNUNET_FS_download_stop (dop->download_context, GNUNET_YES);
494 GNUNET_SCHEDULER_add_continuation (dop->download_cont, 494 GNUNET_SCHEDULER_add_continuation (dop->download_cont,
495 dop->download_cont_cls, 495 dop->download_cont_cls,
@@ -543,7 +543,7 @@ download_progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info)
543 break; 543 break;
544 case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED: 544 case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED:
545 GNUNET_SCHEDULER_cancel (dop->download_timeout_task); 545 GNUNET_SCHEDULER_cancel (dop->download_timeout_task);
546 dop->download_timeout_task = GNUNET_SCHEDULER_NO_TASK; 546 dop->download_timeout_task = NULL;
547 GNUNET_SCHEDULER_add_continuation (&report_success, dop, 547 GNUNET_SCHEDULER_add_continuation (&report_success, dop,
548 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 548 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
549 break; 549 break;
@@ -627,7 +627,7 @@ GNUNET_FS_TEST_download (struct GNUNET_TESTBED_Peer *peer,
627 struct GNUNET_TIME_Relative timeout, 627 struct GNUNET_TIME_Relative timeout,
628 uint32_t anonymity, uint32_t seed, 628 uint32_t anonymity, uint32_t seed,
629 const struct GNUNET_FS_Uri *uri, unsigned int verbose, 629 const struct GNUNET_FS_Uri *uri, unsigned int verbose,
630 GNUNET_SCHEDULER_Task cont, void *cont_cls) 630 GNUNET_SCHEDULER_TaskCallback cont, void *cont_cls)
631{ 631{
632 struct TestDownloadOperation *dop; 632 struct TestDownloadOperation *dop;
633 633