-doxygen
[oweals/gnunet.git] / src / dv / dv.h
index bcc586a0e6ddb20435d3d6d4b2a3601c6581790e..b20e0b8ffe0a6ee611af2efc8e3271d7f267bf5e 100644 (file)
@@ -46,6 +46,11 @@ struct GNUNET_DV_ConnectMessage
    */
   uint32_t distance GNUNET_PACKED;
 
+  /**
+   * The network the peer is in
+   */
+  uint32_t network GNUNET_PACKED;
+
   /**
    * The other peer (at the given distance).
    */
@@ -135,13 +140,14 @@ struct GNUNET_DV_SendMessage
 
 /**
  * Message from service to DV plugin, saying that a
- * SEND request was handled.  
+ * SEND request was handled.
  */
 struct GNUNET_DV_AckMessage
 {
   /**
-   * Type: GNUNET_MESSAGE_TYPE_DV_SEND_ACK
-   */ 
+   * Type: GNUNET_MESSAGE_TYPE_DV_SEND_ACK or
+   * GNUNET_MESSAGE_TYPE_DV_SEND_NACK.
+   */
   struct GNUNET_MessageHeader header;
 
   /**
@@ -155,6 +161,32 @@ struct GNUNET_DV_AckMessage
   struct GNUNET_PeerIdentity target;
 
 };
+
+
+/**
+ * Message from service to DV plugin, saying that our
+ * distance to another peer changed.
+ */
+struct GNUNET_DV_DistanceUpdateMessage
+{
+  /**
+   * Type: GNUNET_MESSAGE_TYPE_DV_DISTANCE_CHANGED.
+   */
+  struct GNUNET_MessageHeader header;
+
+  /**
+   * What is the new distance?
+   */
+  uint32_t distance GNUNET_PACKED;
+
+  /**
+   * The peer for which the distance changed.
+   */
+  struct GNUNET_PeerIdentity peer;
+
+};
+
+
 GNUNET_NETWORK_STRUCT_END
 
 #endif