aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk.h')
-rw-r--r--src/fs/gnunet-fs-gtk.h95
1 files changed, 95 insertions, 0 deletions
diff --git a/src/fs/gnunet-fs-gtk.h b/src/fs/gnunet-fs-gtk.h
index abf1844e..be54953a 100644
--- a/src/fs/gnunet-fs-gtk.h
+++ b/src/fs/gnunet-fs-gtk.h
@@ -28,10 +28,68 @@
28 28
29#include "gnunet_gtk.h" 29#include "gnunet_gtk.h"
30#include <gnunet/gnunet_fs_service.h> 30#include <gnunet/gnunet_fs_service.h>
31#include <gnunet/gnunet_gns_service.h>
32#include <gnunet/gnunet_identity_service.h>
33#include <gnunet/gnunet_namestore_service.h>
31#include <extractor.h> 34#include <extractor.h>
32 35
36
37/**
38 * Context for a GNS lookup for starting a search.
39 */
40struct SearchLookup
41{
42
43 /**
44 * This is a DLL.
45 */
46 struct SearchLookup *prev;
47
48 /**
49 * This is a DLL.
50 */
51 struct SearchLookup *next;
52
53 /**
54 * Our active request with GNS.
55 */
56 struct GNUNET_GNS_LookupRequest *gns;
57
58 /**
59 * Keywords to use.
60 */
61 gchar *keywords;
62
63 /**
64 * Task to trigger timeout.
65 */
66 GNUNET_SCHEDULER_TaskIdentifier timeout_task;
67
68 /**
69 * Desired anonymity level.
70 */
71 guint anonymity_level;
72
73};
74
75
76/**
77 * Abort the given search lookup.
78 *
79 * @param sl lookup to abort.
80 */
81void
82abort_search_lookup (struct SearchLookup *sl);
83
84
85/**
86 * Context for the main window.
87 */
33struct GNUNET_GTK_MainWindowContext 88struct GNUNET_GTK_MainWindowContext
34{ 89{
90 /**
91 * Builder that loaded the main window.
92 */
35 GtkBuilder *builder; 93 GtkBuilder *builder;
36 94
37 const struct GNUNET_CONFIGURATION_Handle *cfg; 95 const struct GNUNET_CONFIGURATION_Handle *cfg;
@@ -72,6 +130,43 @@ struct GNUNET_GTK_MainWindowContext
72 GtkNotebook *notebook; 130 GtkNotebook *notebook;
73 131
74 GtkImage *connection_indicator; 132 GtkImage *connection_indicator;
133
134 /**
135 * Handle to the GNS service.
136 */
137 struct GNUNET_GNS_Handle *gns;
138
139 /**
140 * Handle to a zone monitor to update the namespace's drop-down list store.
141 * Monitors the @e sks_zone. Can be NULL.
142 */
143 struct GNUNET_NAMESTORE_ZoneMonitor *zm;
144
145 /**
146 * This is a DLL.
147 */
148 struct SearchLookup *sl_head;
149
150 /**
151 * This is a DLL.
152 */
153 struct SearchLookup *sl_tail;
154
155 /**
156 * Handle to identity service.
157 */
158 struct GNUNET_IDENTITY_Handle *identity;
159
160 /**
161 * Operation we use to determine namespace resolution domain.
162 */
163 struct GNUNET_IDENTITY_Operation *id_op;
164
165 /**
166 * Our zone for SKS operations. Can be NULL.
167 */
168 struct GNUNET_CRYPTO_EccPrivateKey *sks_zone;
169
75}; 170};
76 171
77 172