aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/search.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2006-10-29 19:50:11 +0000
committerChristian Grothoff <christian@grothoff.org>2006-10-29 19:50:11 +0000
commitb30837e852c7ba43ce4372aabe539be2cd565ebc (patch)
tree41bf3b8af3546b581aa40622f9b25a13221da527 /src/plugins/fs/search.h
parentb6eb2c21ad31d585bfcdf7be8d48df6433fd876f (diff)
downloadgnunet-gtk-b30837e852c7ba43ce4372aabe539be2cd565ebc.tar.gz
gnunet-gtk-b30837e852c7ba43ce4372aabe539be2cd565ebc.zip
fixing compile errors
Diffstat (limited to 'src/plugins/fs/search.h')
-rw-r--r--src/plugins/fs/search.h59
1 files changed, 13 insertions, 46 deletions
diff --git a/src/plugins/fs/search.h b/src/plugins/fs/search.h
index c161fb35..5b72aafd 100644
--- a/src/plugins/fs/search.h
+++ b/src/plugins/fs/search.h
@@ -29,33 +29,17 @@
29 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#include "fs.h"
32 33
33struct SL;
34
35struct DL;
36
37struct DL *
38fs_download_started(struct FSUI_DownloadList * fsui_dl,
39 struct DL * dl_parent,
40 struct SL * sl_parent,
41 unsigned long long total,
42 unsigned int anonymityLevel,
43 const ECRS_FileInfo * fi,
44 const char * filename,
45 unsigned long long completed,
46 cron_t eta);
47
48void fs_download_update(struct DL * downloadContext,
49 unsigned long long completed,
50 const char * data,
51 unsigned int size);
52
53void fs_download_completed(struct DL * downloadContext);
54
55void fs_download_aborted(struct DL * downloadContext);
56
57void fs_download_stopped(struct DL * downloadContext);
58 34
35/**
36 * Add the given search result to the search
37 * tree at the specified position.
38 */
39void addEntryToSearchTree(SearchList * searchContext,
40 DownloadList * downloadParent,
41 const ECRS_FileInfo * info,
42 GtkTreeIter * iter);
59 43
60/** 44/**
61 * Add the given result to the model (search result 45 * Add the given result to the model (search result
@@ -65,7 +49,7 @@ void fs_download_stopped(struct DL * downloadContext);
65 * @param path the tree path that selects where to add 49 * @param path the tree path that selects where to add
66 * the information, NULL for top-level 50 * the information, NULL for top-level
67 */ 51 */
68void fs_search_result_received(struct SL * searchContext, 52void fs_search_result_received(SearchList * searchContext,
69 const ECRS_FileInfo * info, 53 const ECRS_FileInfo * info,
70 const struct ECRS_URI * uri); 54 const struct ECRS_URI * uri);
71 55
@@ -74,7 +58,7 @@ void fs_search_result_received(struct SL * searchContext,
74 * 58 *
75 * @return internal search context 59 * @return internal search context
76 */ 60 */
77struct SL * 61SearchList *
78fs_search_started(struct FSUI_SearchList * list, 62fs_search_started(struct FSUI_SearchList * list,
79 const struct ECRS_URI * uri, 63 const struct ECRS_URI * uri,
80 unsigned int anonymityLevel, 64 unsigned int anonymityLevel,
@@ -84,28 +68,11 @@ fs_search_started(struct FSUI_SearchList * list,
84/** 68/**
85 * A search process has been aborted. Update display. 69 * A search process has been aborted. Update display.
86 */ 70 */
87void fs_search_aborted(struct SL * searchContext); 71void fs_search_aborted(SearchList * searchContext);
88 72
89/** 73/**
90 * A search process has stopped. Clean up. 74 * A search process has stopped. Clean up.
91 */ 75 */
92void fs_search_stopped(struct SL * searchContext); 76void fs_search_stopped(SearchList * searchContext);
93
94
95/**
96 * Initialize the search module.
97 */
98void fs_search_start(struct GE_Context * e,
99 struct GC_Configuration * c);
100
101/**
102 * Shutdown the search module.
103 */
104void fs_search_stop(void);
105
106
107void on_closeSearchButton_clicked_fs(GtkWidget * searchPage,
108 GtkWidget * closeButton);
109
110 77
111#endif 78#endif