#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);
/**
* @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);
/**