fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 21 Jan 2010 14:51:17 +0000 (14:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 21 Jan 2010 14:51:17 +0000 (14:51 +0000)
src/hostlist/gnunet-daemon-hostlist.c
src/hostlist/hostlist-client.c
src/hostlist/hostlist-client.h

index b8cf93d5a5288e3832022bb4969d8cd756d5824f..f5db86c91f9f5fda177646f4331265ae63742de5 100644 (file)
@@ -158,8 +158,8 @@ run (void *cls,
      const char *cfgfile,
      const struct GNUNET_CONFIGURATION_Handle * cfg)
 {
-  GNUNET_CORE_ClientEventHandler ch = NULL;
-  GNUNET_CORE_ClientEventHandler dh = NULL;
+  GNUNET_CORE_ConnectEventHandler ch = NULL;
+  GNUNET_CORE_DisconnectEventHandler dh = NULL;
   struct GNUNET_CORE_MessageHandler handlers[] = 
     {
       { NULL, 0, 0 }
index 6c0629eb393bf39cec6a8f7ec273749f79b94fac..e816b46c416dc6b85442c03dd074b4b320c78724 100644 (file)
@@ -638,11 +638,15 @@ schedule_hostlist_task ()
  *
  * @param cls closure
  * @param peer peer identity this notification is about
+ * @param latency reported latency of the connection with 'other'
+ * @param distance reported distance (DV) to 'other' 
  */
 static void
 connect_handler (void *cls,
                 const struct
-                GNUNET_PeerIdentity * peer)
+                GNUNET_PeerIdentity * peer,
+                struct GNUNET_TIME_Relative latency,
+                uint32_t distance)
 {
   connection_count++;
 }
@@ -706,8 +710,8 @@ int
 GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c,
                              struct GNUNET_SCHEDULER_Handle *s,
                              struct GNUNET_STATISTICS_Handle *st,
-                             GNUNET_CORE_ClientEventHandler *ch,
-                             GNUNET_CORE_ClientEventHandler *dh)
+                             GNUNET_CORE_ConnectEventHandler *ch,
+                             GNUNET_CORE_DisconnectEventHandler *dh)
 {
   if (0 != curl_global_init (CURL_GLOBAL_WIN32))
     {
index 26c013505694412be2532e4e151c1610ae716055..888d2099a95a6bb54b2b97fcf03b191d31a6c805 100644 (file)
@@ -46,8 +46,8 @@ int
 GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c,
                              struct GNUNET_SCHEDULER_Handle *s,
                              struct GNUNET_STATISTICS_Handle *st,
-                             GNUNET_CORE_ClientEventHandler *ch,
-                             GNUNET_CORE_ClientEventHandler *dh);
+                             GNUNET_CORE_ConnectEventHandler *ch,
+                             GNUNET_CORE_DisconnectEventHandler *dh);
 
 
 /**