aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_plugins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats/gnunet-service-ats_plugins.c')
-rw-r--r--src/ats/gnunet-service-ats_plugins.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/ats/gnunet-service-ats_plugins.c b/src/ats/gnunet-service-ats_plugins.c
index fbc047a33..b0bbb910b 100644
--- a/src/ats/gnunet-service-ats_plugins.c
+++ b/src/ats/gnunet-service-ats_plugins.c
@@ -70,22 +70,15 @@ GAS_plugin_notify_preference_changed (const struct GNUNET_PeerIdentity *peer,
70 70
71 71
72/** 72/**
73 * The relative value for a property changed 73 * The relative value for a property changed.
74 * 74 *
75 * @param address the peer 75 * @param address the peer for which a property changed
76 * @param type the ATS type
77 * @param prop_rel the new relative preference value
78 */ 76 */
79void 77void
80GAS_plugin_notify_property_changed (struct ATS_Address *address, 78GAS_plugin_notify_property_changed (struct ATS_Address *address)
81 enum GNUNET_ATS_Property type,
82 double prop_rel)
83{ 79{
84 sf->s_address_update_property (sf->cls, 80 sf->s_address_update_property (sf->cls,
85 address, 81 address);
86 type,
87 0,
88 prop_rel);
89} 82}
90 83
91 84
@@ -221,8 +214,7 @@ bandwidth_changed_cb (void *cls,
221 address->addr, 214 address->addr,
222 address->addr_len, 215 address->addr_len,
223 address->active, 216 address->active,
224 address->atsi, 217 &address->properties,
225 address->atsi_count,
226 GNUNET_BANDWIDTH_value_init (address->assigned_bw_out), 218 GNUNET_BANDWIDTH_value_init (address->assigned_bw_out),
227 GNUNET_BANDWIDTH_value_init (address->assigned_bw_in)); 219 GNUNET_BANDWIDTH_value_init (address->assigned_bw_in));
228 220
@@ -481,15 +473,13 @@ GAS_plugin_done ()
481 * for talking to the respective peer. 473 * for talking to the respective peer.
482 * 474 *
483 * @param new_address the new address 475 * @param new_address the new address
484 * @param addr_net network scope the address is in
485 */ 476 */
486void 477void
487GAS_plugin_new_address (struct ATS_Address *new_address, 478GAS_plugin_new_address (struct ATS_Address *new_address)
488 enum GNUNET_ATS_Network_Type addr_net)
489{ 479{
490 sf->s_add (sf->cls, 480 sf->s_add (sf->cls,
491 new_address, 481 new_address,
492 addr_net); 482 new_address->properties.scope); /* FIXME: remove 3rd arg here! */
493} 483}
494 484
495 485