diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-08 18:13:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-08 18:13:10 +0000 |
commit | ed8beb3bda5f3b1d2bf31f57f077bf90e40af812 (patch) | |
tree | 4ee276dfc49030a79cd7a8c5b26ab08a6aaffde2 /src/ats/plugin_ats_ril.c | |
parent | e1669fabbcb9f21c509e03811fe2d8b5b568b15c (diff) | |
download | gnunet-ed8beb3bda5f3b1d2bf31f57f077bf90e40af812.tar.gz gnunet-ed8beb3bda5f3b1d2bf31f57f077bf90e40af812.zip |
changing s_get API to return void instead of address, have plugin use existing mechanism to signal address activation
Diffstat (limited to 'src/ats/plugin_ats_ril.c')
-rw-r--r-- | src/ats/plugin_ats_ril.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ats/plugin_ats_ril.c b/src/ats/plugin_ats_ril.c index cd867b95c..78f58e609 100644 --- a/src/ats/plugin_ats_ril.c +++ b/src/ats/plugin_ats_ril.c | |||
@@ -2484,7 +2484,7 @@ GAS_ril_bulk_stop (void *solver) | |||
2484 | * @param solver the solver handle | 2484 | * @param solver the solver handle |
2485 | * @param peer the identity of the peer | 2485 | * @param peer the identity of the peer |
2486 | */ | 2486 | */ |
2487 | static const struct ATS_Address * | 2487 | static void |
2488 | GAS_ril_get_preferred_address (void *solver, | 2488 | GAS_ril_get_preferred_address (void *solver, |
2489 | const struct GNUNET_PeerIdentity *peer) | 2489 | const struct GNUNET_PeerIdentity *peer) |
2490 | { | 2490 | { |
@@ -2514,9 +2514,12 @@ GAS_ril_get_preferred_address (void *solver, | |||
2514 | s->parameters.temperature = s->parameters.temperature_init; | 2514 | s->parameters.temperature = s->parameters.temperature_init; |
2515 | s->parameters.epsilon = s->parameters.epsilon_init; | 2515 | s->parameters.epsilon = s->parameters.epsilon_init; |
2516 | } | 2516 | } |
2517 | return agent->address_inuse; | 2517 | if (NULL != agent->address_inuse) |
2518 | s->env->bandwidth_changed_cb (s->env->cls, | ||
2519 | agent->address_inuse); | ||
2518 | } | 2520 | } |
2519 | 2521 | ||
2522 | |||
2520 | /** | 2523 | /** |
2521 | * Tell solver stop notifying ATS about changes for this peers | 2524 | * Tell solver stop notifying ATS about changes for this peers |
2522 | * | 2525 | * |