X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fdv%2Fdv.h;h=c0a4828a20592a7f55fc05d9b68a9a9e2931bfd2;hb=37defe2dbd9ea4e5a37710404e8046acbdf4a18e;hp=bcc586a0e6ddb20435d3d6d4b2a3601c6581790e;hpb=20b65432c8df1b2f84fcc0dac3b2f5d689f5c888;p=oweals%2Fgnunet.git diff --git a/src/dv/dv.h b/src/dv/dv.h index bcc586a0e..c0a4828a2 100644 --- a/src/dv/dv.h +++ b/src/dv/dv.h @@ -135,13 +135,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 +156,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