fixes
authorChristian Grothoff <christian@grothoff.org>
Thu, 21 Jan 2010 18:32:42 +0000 (18:32 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 21 Jan 2010 18:32:42 +0000 (18:32 +0000)
src/core/test_core_api.c
src/core/test_core_api_start_only.c

index 7cb5e245ca7b6df7ec63663603ef9fe3a9fef83d..bb3a0d586b561ef090b676857e5c031c8fa2855a 100644 (file)
@@ -104,7 +104,9 @@ terminate_task_error (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 
 static void
 connect_notify (void *cls,
-                const struct GNUNET_PeerIdentity *peer)
+                const struct GNUNET_PeerIdentity *peer,
+               struct GNUNET_TIME_Relative latency,
+               uint32_t distance)
 {
   GNUNET_assert ((ok == 5) || (ok == 6));
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -125,7 +127,9 @@ disconnect_notify (void *cls,
 static int
 inbound_notify (void *cls,
                 const struct GNUNET_PeerIdentity *other,
-                const struct GNUNET_MessageHeader *message)
+                const struct GNUNET_MessageHeader *message,
+               struct GNUNET_TIME_Relative latency,
+               uint32_t distance)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other));
@@ -136,7 +140,9 @@ inbound_notify (void *cls,
 static int
 outbound_notify (void *cls,
                  const struct GNUNET_PeerIdentity *other,
-                 const struct GNUNET_MessageHeader *message)
+                 const struct GNUNET_MessageHeader *message,
+                struct GNUNET_TIME_Relative latency,
+                uint32_t distance)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Core notifies about outbound data for `%4s'.\n",
@@ -151,7 +157,9 @@ static GNUNET_SCHEDULER_TaskIdentifier err_task;
 static int
 process_mtype (void *cls,
                const struct GNUNET_PeerIdentity *peer,
-               const struct GNUNET_MessageHeader *message)
+               const struct GNUNET_MessageHeader *message,
+              struct GNUNET_TIME_Relative latency,
+              uint32_t distance)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Receiving message from `%4s'.\n", GNUNET_i2s (peer));
index 8b5e867bcb9642bd64401edcbcbb419a0e07812b..8994b31a7364512a5bba492373f04f122c844ab9 100644 (file)
@@ -71,7 +71,9 @@ static int ok;
 
 static void
 connect_notify (void *cls,
-                const struct GNUNET_PeerIdentity *peer)
+                const struct GNUNET_PeerIdentity *peer,
+               struct GNUNET_TIME_Relative latency,
+               uint32_t distance)
 {
 }
 
@@ -86,7 +88,9 @@ disconnect_notify (void *cls,
 static int
 inbound_notify (void *cls,
                 const struct GNUNET_PeerIdentity *other,
-                const struct GNUNET_MessageHeader *message)
+                const struct GNUNET_MessageHeader *message,
+               struct GNUNET_TIME_Relative latency,
+               uint32_t distance)
 {
   return GNUNET_OK;
 }
@@ -95,7 +99,9 @@ inbound_notify (void *cls,
 static int
 outbound_notify (void *cls,
                  const struct GNUNET_PeerIdentity *other,
-                 const struct GNUNET_MessageHeader *message)
+                 const struct GNUNET_MessageHeader *message,
+                struct GNUNET_TIME_Relative latency,
+                uint32_t distance)
 {
   return GNUNET_OK;
 }