aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_download.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r--src/fs/fs_download.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c
index 89de277da..ba4461986 100644
--- a/src/fs/fs_download.c
+++ b/src/fs/fs_download.c
@@ -59,7 +59,7 @@ is_recursive_download (struct GNUNET_FS_DownloadContext *dc)
59 * Given the offset of a block (with respect to the DBLOCKS) and its 59 * Given the offset of a block (with respect to the DBLOCKS) and its
60 * depth, return the offset where we would store this block in the 60 * depth, return the offset where we would store this block in the
61 * file. 61 * file.
62 * 62 *
63 * @param fsize overall file size 63 * @param fsize overall file size
64 * @param off offset of the block in the file 64 * @param off offset of the block in the file
65 * @param depth depth of the block in the tree, 0 for DBLOCK 65 * @param depth depth of the block in the tree, 0 for DBLOCK
@@ -134,8 +134,8 @@ GNUNET_FS_download_make_status_ (struct GNUNET_FS_ProgressInfo *pi,
134 134
135/** 135/**
136 * We're ready to transmit a search request to the 136 * We're ready to transmit a search request to the
137 * file-sharing service. Do it. If there is 137 * file-sharing service. Do it. If there is
138 * more than one request pending, try to send 138 * more than one request pending, try to send
139 * multiple or request another transmission. 139 * multiple or request another transmission.
140 * 140 *
141 * @param cls closure 141 * @param cls closure
@@ -204,7 +204,7 @@ process_result_with_request (void *cls, const GNUNET_HashCode * key,
204 * We've found a matching block without downloading it. 204 * We've found a matching block without downloading it.
205 * Encrypt it and pass it to our "receive" function as 205 * Encrypt it and pass it to our "receive" function as
206 * if we had received it from the network. 206 * if we had received it from the network.
207 * 207 *
208 * @param dc download in question 208 * @param dc download in question
209 * @param chk request this relates to 209 * @param chk request this relates to
210 * @param dr request details 210 * @param dr request details
@@ -543,7 +543,7 @@ try_match_block (struct GNUNET_FS_DownloadContext *dc,
543 * used in the main libextractor library and yielding 543 * used in the main libextractor library and yielding
544 * meta data). 544 * meta data).
545 * @param type libextractor-type describing the meta data 545 * @param type libextractor-type describing the meta data
546 * @param format basic format information about data 546 * @param format basic format information about data
547 * @param data_mime_type mime-type of data (not of the original file); 547 * @param data_mime_type mime-type of data (not of the original file);
548 * can be NULL (if mime-type is not known) 548 * can be NULL (if mime-type is not known)
549 * @param data actual meta-data found 549 * @param data actual meta-data found
@@ -1057,7 +1057,7 @@ process_result_with_request (void *cls, const GNUNET_HashCode * key,
1057 dc->completed += app; 1057 dc->completed += app;
1058 1058
1059 /* do recursive download if option is set and either meta data 1059 /* do recursive download if option is set and either meta data
1060 * says it is a directory or if no meta data is given AND filename 1060 * says it is a directory or if no meta data is given AND filename
1061 * ends in '.gnd' (top-level case) */ 1061 * ends in '.gnd' (top-level case) */
1062 if (is_recursive_download (dc)) 1062 if (is_recursive_download (dc))
1063 GNUNET_FS_directory_list_contents (prc->size, pt, off, 1063 GNUNET_FS_directory_list_contents (prc->size, pt, off,
@@ -1242,8 +1242,8 @@ receive_results (void *cls, const struct GNUNET_MessageHeader *msg)
1242 1242
1243/** 1243/**
1244 * We're ready to transmit a search request to the 1244 * We're ready to transmit a search request to the
1245 * file-sharing service. Do it. If there is 1245 * file-sharing service. Do it. If there is
1246 * more than one request pending, try to send 1246 * more than one request pending, try to send
1247 * multiple or request another transmission. 1247 * multiple or request another transmission.
1248 * 1248 *
1249 * @param cls closure 1249 * @param cls closure
@@ -1495,7 +1495,7 @@ deactivate_fs_download (void *cls)
1495 * @param depth depth of the current entry, 0 are the DBLOCKs, 1495 * @param depth depth of the current entry, 0 are the DBLOCKs,
1496 * top level block is 'dc->treedepth - 1' 1496 * top level block is 'dc->treedepth - 1'
1497 * @param dr_offset offset in the original file this block maps to 1497 * @param dr_offset offset in the original file this block maps to
1498 * (as in, offset of the first byte of the first DBLOCK 1498 * (as in, offset of the first byte of the first DBLOCK
1499 * in the subtree rooted in the returned download request tree) 1499 * in the subtree rooted in the returned download request tree)
1500 * @param file_start_offset desired starting offset for the download 1500 * @param file_start_offset desired starting offset for the download
1501 * in the original file; requesting tree should not contain 1501 * in the original file; requesting tree should not contain
@@ -1616,7 +1616,7 @@ get_next_block (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1616 * 1616 *
1617 * This function checks if the content on disk matches 1617 * This function checks if the content on disk matches
1618 * the expected content based on the URI. 1618 * the expected content based on the URI.
1619 * 1619 *
1620 * @param cls closure 1620 * @param cls closure
1621 * @param chk content hash key for the block 1621 * @param chk content hash key for the block
1622 * @param offset offset of the block 1622 * @param offset offset of the block
@@ -1658,7 +1658,7 @@ reconstruct_cb (void *cls, const struct ContentHashKey *chk, uint64_t offset,
1658 case BRS_CHK_SET: 1658 case BRS_CHK_SET:
1659 if (0 == memcmp (chk, &dr->chk, sizeof (struct ContentHashKey))) 1659 if (0 == memcmp (chk, &dr->chk, sizeof (struct ContentHashKey)))
1660 { 1660 {
1661 /* block matches, hence tree below matches; 1661 /* block matches, hence tree below matches;
1662 * this request is done! */ 1662 * this request is done! */
1663 dr->state = BRS_DOWNLOAD_UP; 1663 dr->state = BRS_DOWNLOAD_UP;
1664 /* calculate how many bytes of payload this block 1664 /* calculate how many bytes of payload this block
@@ -1816,7 +1816,7 @@ GNUNET_FS_download_start_task_ (void *cls,
1816 /* already done entirely, party! */ 1816 /* already done entirely, party! */
1817 if (dc->rfh != NULL) 1817 if (dc->rfh != NULL)
1818 { 1818 {
1819 /* avoid hanging on to file handle longer than 1819 /* avoid hanging on to file handle longer than
1820 * necessary */ 1820 * necessary */
1821 GNUNET_DISK_file_close (dc->rfh); 1821 GNUNET_DISK_file_close (dc->rfh);
1822 dc->rfh = NULL; 1822 dc->rfh = NULL;
@@ -1851,7 +1851,7 @@ GNUNET_FS_download_start_task_ (void *cls,
1851 { 1851 {
1852 if (dc->rfh != NULL) 1852 if (dc->rfh != NULL)
1853 { 1853 {
1854 /* avoid hanging on to file handle longer than 1854 /* avoid hanging on to file handle longer than
1855 * necessary */ 1855 * necessary */
1856 GNUNET_DISK_file_close (dc->rfh); 1856 GNUNET_DISK_file_close (dc->rfh);
1857 dc->rfh = NULL; 1857 dc->rfh = NULL;