diff options
Diffstat (limited to 'src/plugins/fs/namespace_search.c')
-rw-r--r-- | src/plugins/fs/namespace_search.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/fs/namespace_search.c b/src/plugins/fs/namespace_search.c index 19fa561a..baed05fe 100644 --- a/src/plugins/fs/namespace_search.c +++ b/src/plugins/fs/namespace_search.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <GNUnet/gnunet_util_crypto.h> | 32 | #include <GNUnet/gnunet_util_crypto.h> |
33 | #include <GNUnet/gnunet_uritrack_lib.h> | 33 | #include <GNUnet/gnunet_uritrack_lib.h> |
34 | #include <GNUnet/gnunet_namespace_lib.h> | 34 | #include <GNUnet/gnunet_namespace_lib.h> |
35 | #include <GNUnet/gnunet_pseudonym_lib.h> | ||
35 | #include <extractor.h> | 36 | #include <extractor.h> |
36 | 37 | ||
37 | 38 | ||
@@ -82,7 +83,7 @@ on_namespaceRatingSpinButton_changed_fs (GtkWidget * dummy, | |||
82 | GNUNET_enc_to_hash(encStr, | 83 | GNUNET_enc_to_hash(encStr, |
83 | &nsid); | 84 | &nsid); |
84 | newrating = gtk_spin_button_get_value (GTK_SPIN_BUTTON (spin)); | 85 | newrating = gtk_spin_button_get_value (GTK_SPIN_BUTTON (spin)); |
85 | rating = GNUNET_NS_namespace_rank (ectx, | 86 | rating = GNUNET_PSEUDO_rank (ectx, |
86 | cfg, &nsid, | 87 | cfg, &nsid, |
87 | newrating - rating); | 88 | newrating - rating); |
88 | if (rating != newrating) | 89 | if (rating != newrating) |
@@ -192,7 +193,7 @@ on_searchNamespaceComboBoxEntry_changed_fs (GtkWidget * dummy, | |||
192 | 193 | ||
193 | struct NewNamespaceInfo | 194 | struct NewNamespaceInfo |
194 | { | 195 | { |
195 | const char *namespaceName; | 196 | char *namespaceName; |
196 | const GNUNET_HashCode *namespaceId; | 197 | const GNUNET_HashCode *namespaceId; |
197 | const struct GNUNET_ECRS_MetaData *md; | 198 | const struct GNUNET_ECRS_MetaData *md; |
198 | int rating; | 199 | int rating; |
@@ -296,15 +297,16 @@ saveDiscovery (void *cls) | |||
296 | */ | 297 | */ |
297 | int | 298 | int |
298 | namespace_discovered_cb (void *cls, | 299 | namespace_discovered_cb (void *cls, |
299 | const char *namespaceName, | ||
300 | const GNUNET_HashCode * namespaceId, | 300 | const GNUNET_HashCode * namespaceId, |
301 | const struct GNUNET_ECRS_MetaData *md, int rating) | 301 | const struct GNUNET_ECRS_MetaData *md, int rating) |
302 | { | 302 | { |
303 | struct NewNamespaceInfo nni; | 303 | struct NewNamespaceInfo nni; |
304 | nni.namespaceName = namespaceName; | 304 | |
305 | nni.namespaceName = GNUNET_PSEUDO_id_to_name(ectx, cfg, namespaceId); | ||
305 | nni.namespaceId = namespaceId; | 306 | nni.namespaceId = namespaceId; |
306 | nni.md = md; | 307 | nni.md = md; |
307 | nni.rating = rating; | 308 | nni.rating = rating; |
308 | GNUNET_GTK_save_call (&saveDiscovery, &nni); | 309 | GNUNET_GTK_save_call (&saveDiscovery, &nni); |
310 | GNUNET_free(nni.namespaceName); | ||
309 | return GNUNET_OK; | 311 | return GNUNET_OK; |
310 | } | 312 | } |