diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-20 11:33:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-20 11:33:07 +0000 |
commit | 66ec361f74889c6bcc73880af39dd8cd3a3179d5 (patch) | |
tree | fd5e699fbebe8a5c4279c7f5e74e0b7fbe160f72 /src/fs/fs_download.c | |
parent | 7f5570186d7d89dc6b3742bff7070fb94343279b (diff) | |
download | gnunet-66ec361f74889c6bcc73880af39dd8cd3a3179d5.tar.gz gnunet-66ec361f74889c6bcc73880af39dd8cd3a3179d5.zip |
bug fixes, api fixes, extended testcase
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r-- | src/fs/fs_download.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index 71d10edac..1938fb08f 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c | |||
@@ -745,6 +745,7 @@ try_reconnect (struct GNUNET_FS_DownloadContext *dc) | |||
745 | * @param length how many bytes should be downloaded starting at offset | 745 | * @param length how many bytes should be downloaded starting at offset |
746 | * @param anonymity anonymity level to use for the download | 746 | * @param anonymity anonymity level to use for the download |
747 | * @param options various options | 747 | * @param options various options |
748 | * @param cctx initial value for the client context for this download | ||
748 | * @param parent parent download to associate this download with (use NULL | 749 | * @param parent parent download to associate this download with (use NULL |
749 | * for top-level downloads; useful for manually-triggered recursive downloads) | 750 | * for top-level downloads; useful for manually-triggered recursive downloads) |
750 | * @return context that can be used to control this download | 751 | * @return context that can be used to control this download |
@@ -758,6 +759,7 @@ GNUNET_FS_download_start (struct GNUNET_FS_Handle *h, | |||
758 | uint64_t length, | 759 | uint64_t length, |
759 | uint32_t anonymity, | 760 | uint32_t anonymity, |
760 | enum GNUNET_FS_DownloadOptions options, | 761 | enum GNUNET_FS_DownloadOptions options, |
762 | void *cctx, | ||
761 | struct GNUNET_FS_DownloadContext *parent) | 763 | struct GNUNET_FS_DownloadContext *parent) |
762 | { | 764 | { |
763 | struct GNUNET_FS_ProgressInfo pi; | 765 | struct GNUNET_FS_ProgressInfo pi; |
@@ -789,6 +791,7 @@ GNUNET_FS_download_start (struct GNUNET_FS_Handle *h, | |||
789 | dc->parent = parent; | 791 | dc->parent = parent; |
790 | dc->uri = GNUNET_FS_uri_dup (uri); | 792 | dc->uri = GNUNET_FS_uri_dup (uri); |
791 | dc->meta = GNUNET_CONTAINER_meta_data_duplicate (meta); | 793 | dc->meta = GNUNET_CONTAINER_meta_data_duplicate (meta); |
794 | dc->client_info = cctx; | ||
792 | if (NULL != filename) | 795 | if (NULL != filename) |
793 | { | 796 | { |
794 | dc->filename = GNUNET_strdup (filename); | 797 | dc->filename = GNUNET_strdup (filename); |