aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-05 15:30:24 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-05 15:30:24 +0000
commit4708a37d9085048e728d4e3ebc3c1a3c34703f89 (patch)
treedf57aab7ad03cdfa4d22ce47f739cd1cb30f9140 /src
parentd979a66964e220529d962bc9f0e7db067aacc8db (diff)
downloadgnunet-4708a37d9085048e728d4e3ebc3c1a3c34703f89.tar.gz
gnunet-4708a37d9085048e728d4e3ebc3c1a3c34703f89.zip
-cleaning up gnunet-service-ats_addresses.h
Diffstat (limited to 'src')
-rw-r--r--src/ats/gnunet-service-ats_addresses.h60
-rw-r--r--src/include/gnunet_transport_plugin.h1
2 files changed, 24 insertions, 37 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.h b/src/ats/gnunet-service-ats_addresses.h
index f26eb779d..9895f0244 100644
--- a/src/ats/gnunet-service-ats_addresses.h
+++ b/src/ats/gnunet-service-ats_addresses.h
@@ -257,57 +257,57 @@ struct GAS_NormalizationInfo
257struct ATS_Address 257struct ATS_Address
258{ 258{
259 /** 259 /**
260 * Next element in DLL 260 * Peer ID this address is for.
261 */ 261 */
262 struct ATS_Address *next; 262 struct GNUNET_PeerIdentity peer;
263 263
264 /** 264 /**
265 * Previous element in DLL 265 * Address (in plugin-specific binary format).
266 */ 266 */
267 struct ATS_Address *prev; 267 const void *addr;
268 268
269 /** 269 /**
270 * Peer ID 270 * Plugin name
271 */ 271 */
272 struct GNUNET_PeerIdentity peer; 272 char *plugin;
273 273
274 /** 274 /**
275 * Address 275 * Solver specific information for this address
276 */ 276 */
277 const void *addr; 277 void *solver_information;
278 278
279 /** 279 /**
280 * Address length 280 * ATS performance information for this address
281 */ 281 */
282 size_t addr_len; 282 struct GNUNET_ATS_Information *atsi;
283 283
284 /** 284 /**
285 * Session ID, can never be 0. 285 * Time when address had last activity (update, in uses)
286 */ 286 */
287 uint32_t session_id; 287 struct GNUNET_TIME_Absolute t_last_activity;
288 288
289 /** 289 /**
290 * Field to store local flags 290 * Time when address was added
291 */ 291 */
292 uint32_t local_address_info; 292 struct GNUNET_TIME_Absolute t_added;
293 293
294 /** 294 /**
295 * Plugin name 295 * Address length, number of bytes in @e addr.
296 */ 296 */
297 char *plugin; 297 size_t addr_len;
298 298
299 /** 299 /**
300 * Solver specific information for this address 300 * Session ID, can never be 0.
301 */ 301 */
302 void *solver_information; 302 uint32_t session_id;
303 303
304 /** 304 /**
305 * ATS performance information for this address 305 * Field to store local flags
306 */ 306 */
307 struct GNUNET_ATS_Information *atsi; 307 uint32_t local_address_info;
308 308
309 /** 309 /**
310 * ATS performance information for this address 310 * ATS performance information for this address, size of the @e atsi array.
311 */ 311 */
312 uint32_t atsi_count; 312 uint32_t atsi_count;
313 313
@@ -332,16 +332,6 @@ struct ATS_Address
332 uint32_t last_notified_bw_out; 332 uint32_t last_notified_bw_out;
333 333
334 /** 334 /**
335 * Time when address had last activity (update, in uses)
336 */
337 struct GNUNET_TIME_Absolute t_last_activity;
338
339 /**
340 * Time when address was added
341 */
342 struct GNUNET_TIME_Absolute t_added;
343
344 /**
345 * Is this the active address for this peer? 335 * Is this the active address for this peer?
346 */ 336 */
347 int active; 337 int active;
@@ -360,7 +350,7 @@ struct ATS_Address
360 350
361 351
362/** 352/**
363 * A multihashmap to store all addresses 353 * A multipeermap mapping peer identities to `struct ATS_Address`.
364 */ 354 */
365extern struct GNUNET_CONTAINER_MultiPeerMap *GSA_addresses; 355extern struct GNUNET_CONTAINER_MultiPeerMap *GSA_addresses;
366 356
@@ -368,7 +358,7 @@ extern struct GNUNET_CONTAINER_MultiPeerMap *GSA_addresses;
368 358
369/** 359/**
370 * Initialize address subsystem. The addresses subsystem manages the addresses 360 * Initialize address subsystem. The addresses subsystem manages the addresses
371 * known and current performance information. 361 * known and current performance information.
372 */ 362 */
373void 363void
374GAS_addresses_init (void); 364GAS_addresses_init (void);
@@ -431,14 +421,12 @@ GAS_addresses_destroy (const struct GNUNET_PeerIdentity *peer,
431 421
432 422
433/** 423/**
434 * Remove all addresses 424 * Remove all addresses.
435 */ 425 */
436void 426void
437GAS_addresses_destroy_all (void); 427GAS_addresses_destroy_all (void);
438 428
439 429
440
441
442/** 430/**
443 * Iterator for #GAS_addresses_get_peer_info() 431 * Iterator for #GAS_addresses_get_peer_info()
444 * 432 *
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h
index 0e75cb454..2aaf638ce 100644
--- a/src/include/gnunet_transport_plugin.h
+++ b/src/include/gnunet_transport_plugin.h
@@ -491,7 +491,6 @@ typedef void
491 struct Session *session); 491 struct Session *session);
492 492
493 493
494
495/** 494/**
496 * Function that will be called whenever the transport service wants to 495 * Function that will be called whenever the transport service wants to
497 * notify the plugin that the inbound quota changed and that the plugin 496 * notify the plugin that the inbound quota changed and that the plugin