aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs.h')
-rw-r--r--src/fs/fs.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h
index 3dc60a5dc..529a917a3 100644
--- a/src/fs/fs.h
+++ b/src/fs/fs.h
@@ -855,6 +855,18 @@ struct GNUNET_FS_DownloadContext
855 struct DownloadRequest *pending; 855 struct DownloadRequest *pending;
856 856
857 /** 857 /**
858 * The file handle, NULL if we don't create
859 * a file.
860 */
861 struct GNUNET_DISK_FileHandle *handle;
862
863 /**
864 * Identity of the peer having the content, or all-zeros
865 * if we don't know of such a peer.
866 */
867 struct GNUNET_PeerIdentity target;
868
869 /**
858 * ID of a task that is using this struct 870 * ID of a task that is using this struct
859 * and that must be cancelled when the download 871 * and that must be cancelled when the download
860 * is being stopped (if not GNUNET_SCHEDULER_NO_TASK). 872 * is being stopped (if not GNUNET_SCHEDULER_NO_TASK).
@@ -877,11 +889,27 @@ struct GNUNET_FS_DownloadContext
877 uint64_t length; 889 uint64_t length;
878 890
879 /** 891 /**
892 * How many bytes have we already received within
893 * the specified range (DBlocks only).
894 */
895 uint64_t completed;
896
897 /**
898 * Time download was started.
899 */
900 struct GNUNET_TIME_Absolute start_time;
901
902 /**
880 * Desired level of anonymity. 903 * Desired level of anonymity.
881 */ 904 */
882 uint32_t anonymity; 905 uint32_t anonymity;
883 906
884 /** 907 /**
908 * The depth of the file-tree.
909 */
910 unsigned int treedepth;
911
912 /**
885 * Options for the download. 913 * Options for the download.
886 */ 914 */
887 enum GNUNET_FS_DownloadOptions options; 915 enum GNUNET_FS_DownloadOptions options;