diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-18 10:04:57 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-18 10:04:57 +0900 |
commit | c9562b8cf7a29f4ec2457cb9d9d4530c24225da1 (patch) | |
tree | fb7d0296af5537ddda7e772a46e959c8ed64fbac /src/fs/fs_download.c | |
parent | 9173da4f8c1f4b50ccd9d61f6fa138904740ecfa (diff) | |
parent | d748b0c920b0581ca65962f34d1f2e94c9a89926 (diff) | |
download | gnunet-c9562b8cf7a29f4ec2457cb9d9d4530c24225da1.tar.gz gnunet-c9562b8cf7a29f4ec2457cb9d9d4530c24225da1.zip |
-fix conflict
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r-- | src/fs/fs_download.c | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index e0ad8cd1d..102b297c1 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c | |||
@@ -1422,7 +1422,6 @@ try_reconnect (struct GNUNET_FS_DownloadContext *dc) | |||
1422 | * We're allowed to ask the FS service for our blocks. Start the download. | 1422 | * We're allowed to ask the FS service for our blocks. Start the download. |
1423 | * | 1423 | * |
1424 | * @param cls the 'struct GNUNET_FS_DownloadContext' | 1424 | * @param cls the 'struct GNUNET_FS_DownloadContext' |
1425 | * @param mq handle to use for communication with FS (we must destroy it!) | ||
1426 | */ | 1425 | */ |
1427 | static void | 1426 | static void |
1428 | activate_fs_download (void *cls) | 1427 | activate_fs_download (void *cls) |
@@ -2096,36 +2095,6 @@ create_download_context (struct GNUNET_FS_Handle *h, | |||
2096 | } | 2095 | } |
2097 | 2096 | ||
2098 | 2097 | ||
2099 | /** | ||
2100 | * Download parts of a file. Note that this will store | ||
2101 | * the blocks at the respective offset in the given file. Also, the | ||
2102 | * download is still using the blocking of the underlying FS | ||
2103 | * encoding. As a result, the download may *write* outside of the | ||
2104 | * given boundaries (if offset and length do not match the 32k FS | ||
2105 | * block boundaries). <p> | ||
2106 | * | ||
2107 | * This function should be used to focus a download towards a | ||
2108 | * particular portion of the file (optimization), not to strictly | ||
2109 | * limit the download to exactly those bytes. | ||
2110 | * | ||
2111 | * @param h handle to the file sharing subsystem | ||
2112 | * @param uri the URI of the file (determines what to download); CHK or LOC URI | ||
2113 | * @param meta known metadata for the file (can be NULL) | ||
2114 | * @param filename where to store the file, maybe NULL (then no file is | ||
2115 | * created on disk and data must be grabbed from the callbacks) | ||
2116 | * @param tempname where to store temporary file data, not used if filename is non-NULL; | ||
2117 | * can be NULL (in which case we will pick a name if needed); the temporary file | ||
2118 | * may already exist, in which case we will try to use the data that is there and | ||
2119 | * if it is not what is desired, will overwrite it | ||
2120 | * @param offset at what offset should we start the download (typically 0) | ||
2121 | * @param length how many bytes should be downloaded starting at offset | ||
2122 | * @param anonymity anonymity level to use for the download | ||
2123 | * @param options various options | ||
2124 | * @param cctx initial value for the client context for this download | ||
2125 | * @param parent parent download to associate this download with (use NULL | ||
2126 | * for top-level downloads; useful for manually-triggered recursive downloads) | ||
2127 | * @return context that can be used to control this download | ||
2128 | */ | ||
2129 | struct GNUNET_FS_DownloadContext * | 2098 | struct GNUNET_FS_DownloadContext * |
2130 | GNUNET_FS_download_start (struct GNUNET_FS_Handle *h, | 2099 | GNUNET_FS_download_start (struct GNUNET_FS_Handle *h, |
2131 | const struct GNUNET_FS_Uri *uri, | 2100 | const struct GNUNET_FS_Uri *uri, |
@@ -2163,40 +2132,6 @@ GNUNET_FS_download_start (struct GNUNET_FS_Handle *h, | |||
2163 | } | 2132 | } |
2164 | 2133 | ||
2165 | 2134 | ||
2166 | /** | ||
2167 | * Download parts of a file based on a search result. The download | ||
2168 | * will be associated with the search result (and the association | ||
2169 | * will be preserved when serializing/deserializing the state). | ||
2170 | * If the search is stopped, the download will not be aborted but | ||
2171 | * be 'promoted' to a stand-alone download. | ||
2172 | * | ||
2173 | * As with the other download function, this will store | ||
2174 | * the blocks at the respective offset in the given file. Also, the | ||
2175 | * download is still using the blocking of the underlying FS | ||
2176 | * encoding. As a result, the download may *write* outside of the | ||
2177 | * given boundaries (if offset and length do not match the 32k FS | ||
2178 | * block boundaries). <p> | ||
2179 | * | ||
2180 | * The given range can be used to focus a download towards a | ||
2181 | * particular portion of the file (optimization), not to strictly | ||
2182 | * limit the download to exactly those bytes. | ||
2183 | * | ||
2184 | * @param h handle to the file sharing subsystem | ||
2185 | * @param sr the search result to use for the download (determines uri and | ||
2186 | * meta data and associations) | ||
2187 | * @param filename where to store the file, maybe NULL (then no file is | ||
2188 | * created on disk and data must be grabbed from the callbacks) | ||
2189 | * @param tempname where to store temporary file data, not used if filename is non-NULL; | ||
2190 | * can be NULL (in which case we will pick a name if needed); the temporary file | ||
2191 | * may already exist, in which case we will try to use the data that is there and | ||
2192 | * if it is not what is desired, will overwrite it | ||
2193 | * @param offset at what offset should we start the download (typically 0) | ||
2194 | * @param length how many bytes should be downloaded starting at offset | ||
2195 | * @param anonymity anonymity level to use for the download | ||
2196 | * @param options various download options | ||
2197 | * @param cctx initial value for the client context for this download | ||
2198 | * @return context that can be used to control this download | ||
2199 | */ | ||
2200 | struct GNUNET_FS_DownloadContext * | 2135 | struct GNUNET_FS_DownloadContext * |
2201 | GNUNET_FS_download_start_from_search (struct GNUNET_FS_Handle *h, | 2136 | GNUNET_FS_download_start_from_search (struct GNUNET_FS_Handle *h, |
2202 | struct GNUNET_FS_SearchResult *sr, | 2137 | struct GNUNET_FS_SearchResult *sr, |