aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-03 19:52:40 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-03 19:52:40 +0000
commite913da8373e0707ef43c38c85e457af85498b143 (patch)
treedf8a540f9938325aeaea79ba7e7f57f20c2e8a9d /src/fs/fs.h
parent6cba55a63e41448c28555322f4ff97729804f9c8 (diff)
downloadgnunet-e913da8373e0707ef43c38c85e457af85498b143.tar.gz
gnunet-e913da8373e0707ef43c38c85e457af85498b143.zip
download deserialization and not keeping a file handle open per active download
Diffstat (limited to 'src/fs/fs.h')
-rw-r--r--src/fs/fs.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h
index d3960c265..9b3a3902d 100644
--- a/src/fs/fs.h
+++ b/src/fs/fs.h
@@ -823,6 +823,15 @@ int
823GNUNET_FS_search_start_searching_ (struct GNUNET_FS_SearchContext *sc); 823GNUNET_FS_search_start_searching_ (struct GNUNET_FS_SearchContext *sc);
824 824
825/** 825/**
826 * Start the downloading process (by entering the queue).
827 *
828 * @param dc our download context
829 */
830void
831GNUNET_FS_download_start_downloading_ (struct GNUNET_FS_DownloadContext *dc);
832
833
834/**
826 * Start download probes for the given search result. 835 * Start download probes for the given search result.
827 * 836 *
828 * @param sr the search result 837 * @param sr the search result
@@ -1382,7 +1391,7 @@ struct DownloadRequest
1382 /** 1391 /**
1383 * Set if this request is currently in the linked list of pending 1392 * Set if this request is currently in the linked list of pending
1384 * requests. Needed in case we get a response for a request that we 1393 * requests. Needed in case we get a response for a request that we
1385 * have not yet send (due to FS bug or two blocks with identical 1394 * have not yet send (i.e. due to two blocks with identical
1386 * content); in this case, we would need to remove the block from 1395 * content); in this case, we would need to remove the block from
1387 * the pending list (and need a fast way to check if the block is on 1396 * the pending list (and need a fast way to check if the block is on
1388 * it). 1397 * it).
@@ -1487,12 +1496,6 @@ struct GNUNET_FS_DownloadContext
1487 struct DownloadRequest *pending; 1496 struct DownloadRequest *pending;
1488 1497
1489 /** 1498 /**
1490 * The file handle, NULL if we don't create
1491 * a file.
1492 */
1493 struct GNUNET_DISK_FileHandle *handle;
1494
1495 /**
1496 * Non-NULL if we are currently having a request for 1499 * Non-NULL if we are currently having a request for
1497 * transmission pending with the client handle. 1500 * transmission pending with the client handle.
1498 */ 1501 */