use -Wl on -no-undefined as it is a linker option:
[oweals/gnunet.git] / src / include / gnunet_dv_service.h
index 9e49baf5722b39b791544abc583d4a18b4dd0137..98648f84cac1aace18c00b989984933ce3ea3a79 100644 (file)
@@ -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
@@ -40,7 +40,8 @@
  */
 typedef void (*GNUNET_DV_ConnectCallback)(void *cls,
                                          const struct GNUNET_PeerIdentity *peer,
-                                         uint32_t distance, uint32_t network);
+                                         uint32_t distance,
+                                          enum GNUNET_ATS_Network_Type network);
 
 
 /**
@@ -50,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);
 
 
 /**