diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-03-12 17:30:49 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-03-12 17:30:49 +0000 |
commit | 54ce17ec50827d3a905a3cb182ccd3c18bbd3668 (patch) | |
tree | 61b35438d97bf9985cf220edb9ae3c2e744d5162 /src/dv/dv.h | |
parent | 81b31b0577c1c4e3ddfc736f65d3329b5afad1a9 (diff) |
wont work because someone made my random heap function unpossible. committing for posterity mostly
Diffstat (limited to 'src/dv/dv.h')
-rw-r--r-- | src/dv/dv.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dv/dv.h b/src/dv/dv.h index 10120a4b00..d43befd709 100644 --- a/src/dv/dv.h +++ b/src/dv/dv.h @@ -33,7 +33,8 @@ typedef void (*GNUNET_DV_MessageReceivedHandler) (void *cls, struct GNUNET_PeerIdentity *sender, - struct GNUNET_MessageHeader *msg, + char *msg, + size_t msg_len, unsigned int distance, char *sender_address, size_t sender_address_len); @@ -42,7 +43,8 @@ typedef void (*GNUNET_DV_MessageReceivedHandler) (void *cls, * DV Message, contains a message that was received * via DV for this peer! * - * Sender address is copied to the end of this struct. + * Sender address is copied to the end of this struct, + * followed by the actual message received. */ struct GNUNET_DV_MessageReceived { @@ -59,7 +61,7 @@ struct GNUNET_DV_MessageReceived /** * The message that was sent */ - struct GNUNET_MessageHeader *msg; + size_t msg_len; /** * The distance to the peer that we received the message from |