From f735158d94616b75ade351a3cce226483b8af55e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Jan 2015 01:08:03 +0000 Subject: -towards improved ATS API, adding return value with address record when adding address, adding new subsystem with peer-to-address map to transport; causes various new assertions to fail, but no major regression -- not finished --- src/transport/gnunet-service-transport_manipulation.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/transport/gnunet-service-transport_manipulation.h') diff --git a/src/transport/gnunet-service-transport_manipulation.h b/src/transport/gnunet-service-transport_manipulation.h index 668e91716..e020c3396 100644 --- a/src/transport/gnunet-service-transport_manipulation.h +++ b/src/transport/gnunet-service-transport_manipulation.h @@ -77,9 +77,10 @@ GST_manipulation_send (const struct GNUNET_PeerIdentity *target, */ struct GNUNET_TIME_Relative GST_manipulation_recv (void *cls, - const struct GNUNET_HELLO_Address *address, - struct Session *session, - const struct GNUNET_MessageHeader *message); + const struct GNUNET_HELLO_Address *address, + struct Session *session, + const struct GNUNET_MessageHeader *message); + /** * Function that will be called to manipulate ATS information according to @@ -90,13 +91,14 @@ GST_manipulation_recv (void *cls, * @param session the session * @param ats the ats information * @param ats_count the number of ats information + * @return modified @a ats information */ struct GNUNET_ATS_Information * -GST_manipulation_manipulate_metrics (const struct GNUNET_PeerIdentity *peer, - const struct GNUNET_HELLO_Address *address, - struct Session *session, - const struct GNUNET_ATS_Information *ats, - uint32_t ats_count); +GST_manipulation_manipulate_metrics (const struct GNUNET_HELLO_Address *address, + struct Session *session, + const struct GNUNET_ATS_Information *ats, + uint32_t ats_count); + /** * Notify manipulation about disconnect so it can discard queued messages -- cgit v1.2.3