diff options
Diffstat (limited to 'src/plugins/fs/search.h')
-rw-r--r-- | src/plugins/fs/search.h | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/src/plugins/fs/search.h b/src/plugins/fs/search.h index ac0df7ee..f3678982 100644 --- a/src/plugins/fs/search.h +++ b/src/plugins/fs/search.h | |||
@@ -30,24 +30,29 @@ | |||
30 | #include <GNUnet/gnunet_ecrs_lib.h> | 30 | #include <GNUnet/gnunet_ecrs_lib.h> |
31 | #include <GNUnet/gnunet_fsui_lib.h> | 31 | #include <GNUnet/gnunet_fsui_lib.h> |
32 | 32 | ||
33 | void * fs_download_started(void * downloadContext, | 33 | struct SL; |
34 | unsigned long long total, | 34 | |
35 | unsigned int anonymityLevel, | 35 | struct DL; |
36 | const struct ECRS_URI * uri, | 36 | |
37 | const char * filename, | 37 | struct DL * |
38 | unsigned long long completed, | 38 | fs_download_started(struct FSUI_DownloadList * fsui_dl, |
39 | cron_t eta); | 39 | unsigned long long total, |
40 | 40 | unsigned int anonymityLevel, | |
41 | void fs_download_update(void * downloadContext, | 41 | const struct ECRS_FileInfo * fi, |
42 | const char * filename, | ||
43 | unsigned long long completed, | ||
44 | cron_t eta); | ||
45 | |||
46 | void fs_download_update(struct DL * downloadContext, | ||
42 | unsigned long long completed, | 47 | unsigned long long completed, |
43 | const char * data, | 48 | const char * data, |
44 | unsigned int size); | 49 | unsigned int size); |
45 | 50 | ||
46 | void fs_download_completed(void * downloadContext); | 51 | void fs_download_completed(struct DL * downloadContext); |
47 | 52 | ||
48 | void fs_download_aborted(void * downloadContext); | 53 | void fs_download_aborted(struct DL * downloadContext); |
49 | 54 | ||
50 | void fs_download_stopped(void * downloadContext); | 55 | void fs_download_stopped(struct DL * downloadContext); |
51 | 56 | ||
52 | 57 | ||
53 | /** | 58 | /** |
@@ -58,7 +63,7 @@ void fs_download_stopped(void * downloadContext); | |||
58 | * @param path the tree path that selects where to add | 63 | * @param path the tree path that selects where to add |
59 | * the information, NULL for top-level | 64 | * the information, NULL for top-level |
60 | */ | 65 | */ |
61 | void fs_search_result_received(void * searchContext, | 66 | void fs_search_result_received(struct SL * searchContext, |
62 | const ECRS_FileInfo * info, | 67 | const ECRS_FileInfo * info, |
63 | const struct ECRS_URI * uri); | 68 | const struct ECRS_URI * uri); |
64 | 69 | ||
@@ -67,21 +72,22 @@ void fs_search_result_received(void * searchContext, | |||
67 | * | 72 | * |
68 | * @return internal search context | 73 | * @return internal search context |
69 | */ | 74 | */ |
70 | void * fs_search_started(struct FSUI_SearchList * list, | 75 | struct SL * |
71 | const struct ECRS_URI * uri, | 76 | fs_search_started(struct FSUI_SearchList * list, |
72 | unsigned int anonymityLevel, | 77 | const struct ECRS_URI * uri, |
73 | unsigned int resultCount, | 78 | unsigned int anonymityLevel, |
74 | const ECRS_FileInfo * results); | 79 | unsigned int resultCount, |
80 | const ECRS_FileInfo * results); | ||
75 | 81 | ||
76 | /** | 82 | /** |
77 | * A search process has been aborted. Update display. | 83 | * A search process has been aborted. Update display. |
78 | */ | 84 | */ |
79 | void fs_search_aborted(void * searchContext); | 85 | void fs_search_aborted(struct SL * searchContext); |
80 | 86 | ||
81 | /** | 87 | /** |
82 | * A search process has stopped. Clean up. | 88 | * A search process has stopped. Clean up. |
83 | */ | 89 | */ |
84 | void fs_search_stopped(void * searchContext); | 90 | void fs_search_stopped(struct SL * searchContext); |
85 | 91 | ||
86 | 92 | ||
87 | /** | 93 | /** |