- add underlay api implementation
[oweals/gnunet.git] / src / dv / gnunet-dv.c
index 77324978e3ea52e578cabb4a99247a14427617f1..7be154792eceeac09d5d9a744395ac1fc1c3c9af 100644 (file)
@@ -43,11 +43,12 @@ static int verbose;
  * @param cls closure
  * @param peer newly connected peer
  * @param distance distance to the peer
+ * @param network the network the next hop is located in
  */
-static void 
+static void
 connect_cb (void *cls,
            const struct GNUNET_PeerIdentity *peer,
-           uint32_t distance)
+           uint32_t distance, uint32_t network)
 {
   fprintf (stderr, "Connect: %s at %u\n",
           GNUNET_i2s (peer),
@@ -62,7 +63,7 @@ connect_cb (void *cls,
  * @param peer connected peer
  * @param distance new distance to the peer
  */
-static void 
+static void
 change_cb (void *cls,
           const struct GNUNET_PeerIdentity *peer,
           uint32_t distance)
@@ -79,7 +80,7 @@ change_cb (void *cls,
  * @param cls closure
  * @param peer peer that disconnected
  */
-static void 
+static void
 disconnect_cb (void *cls,
               const struct GNUNET_PeerIdentity *peer)
 {
@@ -96,7 +97,7 @@ disconnect_cb (void *cls,
  * @param distance how far did the message travel
  * @param msg actual message payload
  */
-static void 
+static void
 message_cb (void *cls,
            const struct GNUNET_PeerIdentity *sender,
            uint32_t distance,
@@ -171,7 +172,7 @@ main (int argc, char *const *argv)
     return 2;
 
   res = GNUNET_PROGRAM_run (argc, argv, "gnunet-dv",
-                           gettext_noop ("Print information about DV state"), 
+                           gettext_noop ("Print information about DV state"),
                            options, &run,
                            NULL);
   GNUNET_free ((void *) argv);