- minor renamings
[oweals/gnunet.git] / src / dv / gnunet-dv.c
index 77324978e3ea52e578cabb4a99247a14427617f1..7e2d5b5715a592cd50eb655ef37e8d5020a3f342 100644 (file)
@@ -43,11 +43,13 @@ 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,
+            enum GNUNET_ATS_Network_Type network)
 {
   fprintf (stderr, "Connect: %s at %u\n",
           GNUNET_i2s (peer),
@@ -61,11 +63,13 @@ connect_cb (void *cls,
  * @param cls closure
  * @param peer connected peer
  * @param distance new distance to the peer
+ * @param network network used on first hop to peer
  */
-static void 
+static void
 change_cb (void *cls,
           const struct GNUNET_PeerIdentity *peer,
-          uint32_t distance)
+          uint32_t distance,
+           enum GNUNET_ATS_Network_Type network)
 {
   fprintf (stderr, "Change: %s at %u\n",
           GNUNET_i2s (peer),
@@ -79,7 +83,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 +100,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 +175,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);