diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
commit | 29e6158507a0758192075ac6ece7ba8e75ddc49a (patch) | |
tree | b91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/fs/fs_download.c | |
parent | 5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff) |
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r-- | src/fs/fs_download.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index f435245533..e8b632a3fc 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c @@ -1372,10 +1372,9 @@ transmit_download_request (void *cls, size_t size, void *buf) * Reconnect to the FS service and transmit our queries NOW. * * @param cls our download context - * @param tc unused */ static void -do_reconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) +do_reconnect (void *cls) { struct GNUNET_FS_DownloadContext *dc = cls; struct GNUNET_CLIENT_Connection *client; @@ -1625,10 +1624,9 @@ create_download_request (struct DownloadRequest *parent, * the current IBlock from the existing file. * * @param cls the 'struct ReconstructContext' - * @param tc scheduler context */ static void -reconstruct_cont (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) +reconstruct_cont (void *cls) { struct GNUNET_FS_DownloadContext *dc = cls; @@ -1655,10 +1653,9 @@ reconstruct_cont (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) * Task requesting the next block from the tree encoder. * * @param cls the 'struct GNUJNET_FS_DownloadContext' we're processing - * @param tc task context */ static void -get_next_block (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) +get_next_block (void *cls) { struct GNUNET_FS_DownloadContext *dc = cls; @@ -1855,11 +1852,9 @@ fh_reader (void *cls, uint64_t offset, size_t max, void *buf, char **emsg) * request for the file. * * @param cls the 'struct GNUNET_FS_DownloadContext' - * @param tc scheduler context */ void -GNUNET_FS_download_start_task_ (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc) +GNUNET_FS_download_start_task_ (void *cls) { struct GNUNET_FS_DownloadContext *dc = cls; struct GNUNET_FS_ProgressInfo pi; |