diff options
Diffstat (limited to 'src/fs/fs.h')
-rw-r--r-- | src/fs/fs.h | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h index ccd949c59..6e6d0dd8e 100644 --- a/src/fs/fs.h +++ b/src/fs/fs.h | |||
@@ -1,4 +1,3 @@ | |||
1 | |||
2 | /* | 1 | /* |
3 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
4 | (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Christian Grothoff (and other contributing authors) | 3 | (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Christian Grothoff (and other contributing authors) |
@@ -915,6 +914,18 @@ GNUNET_FS_download_make_status_ (struct GNUNET_FS_ProgressInfo *pi, | |||
915 | 914 | ||
916 | 915 | ||
917 | /** | 916 | /** |
917 | * Task that creates the initial (top-level) download | ||
918 | * request for the file. | ||
919 | * | ||
920 | * @param cls the 'struct GNUNET_FS_DownloadContext' | ||
921 | * @param tc scheduler context | ||
922 | */ | ||
923 | void | ||
924 | GNUNET_FS_download_start_task_ (void *cls, | ||
925 | const struct GNUNET_SCHEDULER_TaskContext *tc); | ||
926 | |||
927 | |||
928 | /** | ||
918 | * Fill in all of the generic fields for | 929 | * Fill in all of the generic fields for |
919 | * an unindex event and call the callback. | 930 | * an unindex event and call the callback. |
920 | * | 931 | * |
@@ -1601,8 +1612,20 @@ struct GNUNET_FS_SearchContext | |||
1601 | * when the search is being stopped (if not | 1612 | * when the search is being stopped (if not |
1602 | * GNUNET_SCHEDULER_NO_TASK). Used for the task that adds some | 1613 | * GNUNET_SCHEDULER_NO_TASK). Used for the task that adds some |
1603 | * artificial delay when trying to reconnect to the FS service. | 1614 | * artificial delay when trying to reconnect to the FS service. |
1604 | */ | 1615 | o */ |
1605 | GNUNET_SCHEDULER_TaskIdentifier task; | 1616 | GNUNET_SCHEDULER_TaskIdentifier task; |
1617 | |||
1618 | /** | ||
1619 | * How many of the entries in the search request | ||
1620 | * map have been passed to the service so far? | ||
1621 | */ | ||
1622 | unsigned int search_request_map_offset; | ||
1623 | |||
1624 | /** | ||
1625 | * How many of the keywords in the KSK | ||
1626 | * map have been passed to the service so far? | ||
1627 | */ | ||
1628 | unsigned int keyword_offset; | ||
1606 | 1629 | ||
1607 | /** | 1630 | /** |
1608 | * Anonymity level for the search. | 1631 | * Anonymity level for the search. |
@@ -1792,6 +1815,11 @@ struct GNUNET_FS_DownloadContext | |||
1792 | GNUNET_SCHEDULER_TaskIdentifier task; | 1815 | GNUNET_SCHEDULER_TaskIdentifier task; |
1793 | 1816 | ||
1794 | /** | 1817 | /** |
1818 | * Task used to start the download. | ||
1819 | */ | ||
1820 | GNUNET_SCHEDULER_TaskIdentifier start_task; | ||
1821 | |||
1822 | /** | ||
1795 | * What was the size of the file on disk that we're downloading | 1823 | * What was the size of the file on disk that we're downloading |
1796 | * before we started? Used to detect if there is a point in | 1824 | * before we started? Used to detect if there is a point in |
1797 | * checking an existing block on disk for matching the desired | 1825 | * checking an existing block on disk for matching the desired |
@@ -1849,6 +1877,12 @@ struct GNUNET_FS_DownloadContext | |||
1849 | * data from the meta data yet? | 1877 | * data from the meta data yet? |
1850 | */ | 1878 | */ |
1851 | int tried_full_data; | 1879 | int tried_full_data; |
1880 | |||
1881 | /** | ||
1882 | * Have we tried to reconstruct an IBLOCK from disk | ||
1883 | * and failed (and should hence not try again?) | ||
1884 | */ | ||
1885 | int reconstruct_failed; | ||
1852 | }; | 1886 | }; |
1853 | 1887 | ||
1854 | 1888 | ||