summaryrefslogtreecommitdiff
path: root/src/gns/gnunet-service-gns.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-22 07:28:58 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-22 07:28:58 +0000
commit35904869bbbecaac43611a0d7b4b78e7735a90bf (patch)
tree04b76dcab6a97a1c4d41fbfda81f46893db543d0 /src/gns/gnunet-service-gns.c
parentaa590fa228c0efd30c5d6523bb064b4d4421752e (diff)
downloadgnunet-35904869bbbecaac43611a0d7b4b78e7735a90bf.tar.gz
gnunet-35904869bbbecaac43611a0d7b4b78e7735a90bf.zip
-move shorten logic to its own file
Diffstat (limited to 'src/gns/gnunet-service-gns.c')
-rw-r--r--src/gns/gnunet-service-gns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c
index 583a5131a..b21584350 100644
--- a/src/gns/gnunet-service-gns.c
+++ b/src/gns/gnunet-service-gns.c
@@ -34,6 +34,7 @@
34#include "gnunet_statistics_service.h" 34#include "gnunet_statistics_service.h"
35#include "gns.h" 35#include "gns.h"
36#include "gnunet-service-gns_resolver.h" 36#include "gnunet-service-gns_resolver.h"
37#include "gnunet-service-gns_shorten.h"
37#include "gnunet-service-gns_interceptor.h" 38#include "gnunet-service-gns_interceptor.h"
38#include "gnunet_protocols.h" 39#include "gnunet_protocols.h"
39 40
@@ -214,6 +215,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
214 215
215 GNS_interceptor_done (); 216 GNS_interceptor_done ();
216 GNS_resolver_done (); 217 GNS_resolver_done ();
218 GNS_shorten_done ();
217 if (NULL != statistics) 219 if (NULL != statistics)
218 { 220 {
219 GNUNET_STATISTICS_destroy (statistics, GNUNET_NO); 221 GNUNET_STATISTICS_destroy (statistics, GNUNET_NO);
@@ -718,11 +720,10 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
718 return; 720 return;
719 } 721 }
720 } 722 }
721 /* FIXME: install client disconnect handle to clean up pending
722 lookups on client disconnect! */
723 GNS_resolver_init (namestore_handle, dht_handle, 723 GNS_resolver_init (namestore_handle, dht_handle,
724 c, 724 c,
725 max_parallel_bg_queries); 725 max_parallel_bg_queries);
726 GNS_shorten_init (namestore_handle, dht_handle);
726 GNUNET_SERVER_disconnect_notify (server, 727 GNUNET_SERVER_disconnect_notify (server,
727 &notify_client_disconnect, 728 &notify_client_disconnect,
728 NULL); 729 NULL);