aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-gns-gtk_zone.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/gnunet-gns-gtk_zone.c')
-rw-r--r--src/gns/gnunet-gns-gtk_zone.c32
1 files changed, 28 insertions, 4 deletions
diff --git a/src/gns/gnunet-gns-gtk_zone.c b/src/gns/gnunet-gns-gtk_zone.c
index dd88df89..181665ab 100644
--- a/src/gns/gnunet-gns-gtk_zone.c
+++ b/src/gns/gnunet-gns-gtk_zone.c
@@ -140,6 +140,32 @@ GNUNET_GNS_GTK_main_treeview_popup_menu_cb (GtkWidget *widget,
140 return FALSE; 140 return FALSE;
141} 141}
142 142
143
144
145struct ZoneIteration_Context
146{
147 GNUNET_HashCode zone;
148 struct GNUNET_NAMESTORE_ZoneIterator * it;
149};
150
151void zone_iteration_proc (void *cls,
152 const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *zone_key,
153 struct GNUNET_TIME_Absolute expire,
154 const char *name,
155 unsigned int rd_len,
156 const struct GNUNET_NAMESTORE_RecordData *rd,
157 const struct GNUNET_CRYPTO_RsaSignature *signature)
158{
159 struct ZoneIteration_Context * zc_ctx = cls;
160 GNUNET_assert (zc_ctx != NULL);
161 if ((NULL == zone_key) && (NULL == name))
162 {
163 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Zone iteration done\n");
164 return;
165 }
166 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Zone iteration dummy\n");
167}
168
143/** 169/**
144 * The zone treeview was realized. Setup the model. 170 * The zone treeview was realized. Setup the model.
145 * 171 *
@@ -165,15 +191,13 @@ GNUNET_GNS_GTK_main_treeview_realize_cb (GtkWidget *widget,
165 /* Append a top level row and leave it empty */ 191 /* Append a top level row and leave it empty */
166 gtk_tree_store_append(ts, &toplevel, NULL); 192 gtk_tree_store_append(ts, &toplevel, NULL);
167 193
168 /*
169 struct ZoneIteration_Context * zc_ctx = GNUNET_malloc (sizeof (struct ZoneIteration_Context)); 194 struct ZoneIteration_Context * zc_ctx = GNUNET_malloc (sizeof (struct ZoneIteration_Context));
170 zc_ctx->zone = zone; 195 zc_ctx->zone = gns->zone;
171 GNUNET_NAMESTORE_zone_iteration_start(gns->ns, &zone, 196 GNUNET_NAMESTORE_zone_iteration_start(gns->ns, &gns->zone,
172 GNUNET_NAMESTORE_RF_NONE, 197 GNUNET_NAMESTORE_RF_NONE,
173 GNUNET_NAMESTORE_RF_NONE, 198 GNUNET_NAMESTORE_RF_NONE,
174 &zone_iteration_proc, 199 &zone_iteration_proc,
175 zc_ctx); 200 zc_ctx);
176 */
177 201
178 202
179 GNUNET_break (0); 203 GNUNET_break (0);