diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-19 01:08:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-19 01:08:03 +0000 |
commit | f735158d94616b75ade351a3cce226483b8af55e (patch) | |
tree | 1cd9732b99cc6437fec7751b8f3c9ef28f0371c9 /src/transport/gnunet-service-transport_manipulation.h | |
parent | d769049a7db56037ea4aff3d9d8a8d42a373ec9c (diff) | |
download | gnunet-f735158d94616b75ade351a3cce226483b8af55e.tar.gz gnunet-f735158d94616b75ade351a3cce226483b8af55e.zip |
-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
Diffstat (limited to 'src/transport/gnunet-service-transport_manipulation.h')
-rw-r--r-- | src/transport/gnunet-service-transport_manipulation.h | 18 |
1 files changed, 10 insertions, 8 deletions
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, | |||
77 | */ | 77 | */ |
78 | struct GNUNET_TIME_Relative | 78 | struct GNUNET_TIME_Relative |
79 | GST_manipulation_recv (void *cls, | 79 | GST_manipulation_recv (void *cls, |
80 | const struct GNUNET_HELLO_Address *address, | 80 | const struct GNUNET_HELLO_Address *address, |
81 | struct Session *session, | 81 | struct Session *session, |
82 | const struct GNUNET_MessageHeader *message); | 82 | const struct GNUNET_MessageHeader *message); |
83 | |||
83 | 84 | ||
84 | /** | 85 | /** |
85 | * Function that will be called to manipulate ATS information according to | 86 | * Function that will be called to manipulate ATS information according to |
@@ -90,13 +91,14 @@ GST_manipulation_recv (void *cls, | |||
90 | * @param session the session | 91 | * @param session the session |
91 | * @param ats the ats information | 92 | * @param ats the ats information |
92 | * @param ats_count the number of ats information | 93 | * @param ats_count the number of ats information |
94 | * @return modified @a ats information | ||
93 | */ | 95 | */ |
94 | struct GNUNET_ATS_Information * | 96 | struct GNUNET_ATS_Information * |
95 | GST_manipulation_manipulate_metrics (const struct GNUNET_PeerIdentity *peer, | 97 | GST_manipulation_manipulate_metrics (const struct GNUNET_HELLO_Address *address, |
96 | const struct GNUNET_HELLO_Address *address, | 98 | struct Session *session, |
97 | struct Session *session, | 99 | const struct GNUNET_ATS_Information *ats, |
98 | const struct GNUNET_ATS_Information *ats, | 100 | uint32_t ats_count); |
99 | uint32_t ats_count); | 101 | |
100 | 102 | ||
101 | /** | 103 | /** |
102 | * Notify manipulation about disconnect so it can discard queued messages | 104 | * Notify manipulation about disconnect so it can discard queued messages |