diff options
Diffstat (limited to 'src/gns/gnunet-gns-gtk.c')
-rw-r--r-- | src/gns/gnunet-gns-gtk.c | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/src/gns/gnunet-gns-gtk.c b/src/gns/gnunet-gns-gtk.c index 99c5cae2..5af0a0b4 100644 --- a/src/gns/gnunet-gns-gtk.c +++ b/src/gns/gnunet-gns-gtk.c | |||
@@ -24,6 +24,7 @@ | |||
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | */ | 25 | */ |
26 | #include "gnunet_gtk.h" | 26 | #include "gnunet_gtk.h" |
27 | #include "gnunet-gns-gtk.h" | ||
27 | #include <gnunet/gnunet_namestore_service.h> | 28 | #include <gnunet/gnunet_namestore_service.h> |
28 | 29 | ||
29 | /** | 30 | /** |
@@ -49,25 +50,6 @@ static char *zonekey_directory; | |||
49 | 50 | ||
50 | static GtkWidget *main_window; | 51 | static GtkWidget *main_window; |
51 | 52 | ||
52 | struct GNUNET_GNS_Context | ||
53 | { | ||
54 | /** | ||
55 | * Handle to the namestore. | ||
56 | */ | ||
57 | struct GNUNET_NAMESTORE_Handle *ns; | ||
58 | |||
59 | GtkBuilder *builder; | ||
60 | |||
61 | struct GNUNET_CRYPTO_RsaPrivateKey *pkey; | ||
62 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pubkey; | ||
63 | |||
64 | GNUNET_HashCode zone; | ||
65 | |||
66 | |||
67 | |||
68 | }; | ||
69 | |||
70 | |||
71 | /** | 53 | /** |
72 | * Get cfg. | 54 | * Get cfg. |
73 | */ | 55 | */ |
@@ -295,32 +277,6 @@ GNUNET_GNS_GTK_main_window_delete_event_cb (GtkWidget *widget, | |||
295 | GNUNET_SCHEDULER_add_now (&shutdown_task, user_data); | 277 | GNUNET_SCHEDULER_add_now (&shutdown_task, user_data); |
296 | } | 278 | } |
297 | 279 | ||
298 | struct ZoneIteration_Context | ||
299 | { | ||
300 | GNUNET_HashCode zone; | ||
301 | struct GNUNET_NAMESTORE_ZoneIterator * it; | ||
302 | }; | ||
303 | |||
304 | void zone_iteration_proc (void *cls, | ||
305 | const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *zone_key, | ||
306 | struct GNUNET_TIME_Absolute expire, | ||
307 | const char *name, | ||
308 | unsigned int rd_len, | ||
309 | const struct GNUNET_NAMESTORE_RecordData *rd, | ||
310 | const struct GNUNET_CRYPTO_RsaSignature *signature) | ||
311 | { | ||
312 | struct ZoneIteration_Context * zc_ctx = cls; | ||
313 | GNUNET_assert (zc_ctx != NULL); | ||
314 | if ((NULL == zone_key) && (NULL == name)) | ||
315 | { | ||
316 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Zone iteration done\n"); | ||
317 | return; | ||
318 | } | ||
319 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Zone iteration dummy\n"); | ||
320 | } | ||
321 | |||
322 | |||
323 | |||
324 | /** | 280 | /** |
325 | * Actual main function run right after GNUnet's scheduler | 281 | * Actual main function run right after GNUnet's scheduler |
326 | * is initialized. Initializes up GTK and Glade. | 282 | * is initialized. Initializes up GTK and Glade. |