aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-03 13:20:17 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-03 13:20:17 +0000
commit2aeb9884df190077944584342157afd5d32d6c8a (patch)
treeb9f1fa15b0741be6b5af46c8f50945c1e3f0a82d /src/transport/gnunet-service-transport_neighbours.h
parent8116248c35c6a085c5f3143b30ac11dc4ae53d50 (diff)
downloadgnunet-2aeb9884df190077944584342157afd5d32d6c8a.tar.gz
gnunet-2aeb9884df190077944584342157afd5d32d6c8a.zip
document API, do not pass unused 'session' argument
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.h')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.h42
1 files changed, 31 insertions, 11 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.h b/src/transport/gnunet-service-transport_neighbours.h
index 710439b10..ee3a34a79 100644
--- a/src/transport/gnunet-service-transport_neighbours.h
+++ b/src/transport/gnunet-service-transport_neighbours.h
@@ -209,38 +209,58 @@ GST_neighbours_session_terminated (const struct GNUNET_PeerIdentity *peer,
209 209
210 210
211/** 211/**
212 * FIXME 212 * Track information about data we received from the
213 * given address (used to notify ATS about our utilization
214 * of allocated resources).
215 *
216 * @param address the address we got data from
217 * @param message the message we received (really only the size is used)
213 */ 218 */
214void 219void
215GST_neighbours_notify_data_recv (const struct GNUNET_HELLO_Address *address, 220GST_neighbours_notify_data_recv (const struct GNUNET_HELLO_Address *address,
216 struct Session *session,
217 const struct GNUNET_MessageHeader *message); 221 const struct GNUNET_MessageHeader *message);
218 222
219 223
220/** 224/**
221 * FIXME 225 * Track information about payload (useful data) we received from the
226 * given address (used to notify ATS about our utilization of
227 * allocated resources).
228 *
229 * @param address the address we got data from
230 * @param message the message we received (really only the size is used)
222 */ 231 */
223void 232void
224GST_neighbours_notify_payload_recv (const struct GNUNET_HELLO_Address *address, 233GST_neighbours_notify_payload_recv (const struct GNUNET_HELLO_Address *address,
225 struct Session *session,
226 const struct GNUNET_MessageHeader *message); 234 const struct GNUNET_MessageHeader *message);
227 235
228 236
229/** 237/**
230 * FIXME 238 * Track information about data we transmitted using the given @a
239 * address and @a session (used to notify ATS about our utilization of
240 * allocated resources).
241 *
242 * @param address the address we transmitted data to
243 * @param session session we used to transmit data
244 * @param message the message we sent (really only the size is used)
231 */ 245 */
232void 246void
233GST_neighbours_notify_payload_sent (const struct GNUNET_PeerIdentity *peer, 247GST_neighbours_notify_data_sent (const struct GNUNET_HELLO_Address *address,
234 size_t size); 248 struct Session *session,
249 size_t size);
235 250
236 251
237/** 252/**
238 * FIXME 253 * Track information about payload (useful data) we transmitted using the
254 * given address (used to notify ATS about our utilization of
255 * allocated resources).
256 *
257 * @param address the address we transmitted data to
258 * @param message the message we sent (really only the size is used)
239 */ 259 */
240void 260void
241GST_neighbours_notify_data_sent (const struct GNUNET_HELLO_Address *address, 261GST_neighbours_notify_payload_sent (const struct GNUNET_PeerIdentity *peer,
242 struct Session *session, 262 size_t size);
243 size_t size); 263
244 264
245 265
246/** 266/**