multicast, psyc, psycstore, client_manager fixes
[oweals/gnunet.git] / src / include / gnunet_dv_service.h
index 967184130311ad579d721288e5e75e582c36290d..f694c17eab1a661b37f532da56ec65b496bbc782 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2013 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2013 Christian Grothoff (and other contributing authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -14,8 +14,8 @@
 
      You should have received a copy of the GNU General Public License
      along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-     Boston, MA 02111-1307, USA.
+     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+     Boston, MA 02110-1301, USA.
 */
 
 /**
@@ -27,7 +27,7 @@
 #define GNUNET_SERVICE_DV_H
 
 #include "gnunet_util_lib.h"
-
+#include "gnunet_ats_service.h"
 
 /**
  * Signature of a function to be called if DV
  * @param cls closure
  * @param peer newly connected peer
  * @param distance distance to the peer
+ * @param network the peer is located in
  */
 typedef void (*GNUNET_DV_ConnectCallback)(void *cls,
                                          const struct GNUNET_PeerIdentity *peer,
-                                         uint32_t distance);
+                                         uint32_t distance,
+                                          enum GNUNET_ATS_Network_Type network);
 
 
 /**
@@ -49,10 +51,12 @@ typedef void (*GNUNET_DV_ConnectCallback)(void *cls,
  * @param cls closure
  * @param peer connected peer
  * @param distance new distance to the peer
+ * @param network this network will be used to reach the next hop
  */
 typedef void (*GNUNET_DV_DistanceChangedCallback)(void *cls,
                                                  const struct GNUNET_PeerIdentity *peer,
-                                                 uint32_t distance);
+                                                 uint32_t distance,
+                                                  enum GNUNET_ATS_Network_Type network);
 
 
 /**