diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-10 23:24:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-10 23:24:01 +0000 |
commit | 1c323bd4cbb388a9e7515a1f733a3062bf093aee (patch) | |
tree | 7cc525d79149d44840b9f7a0040aaf3e69ecd665 /src/transport/gnunet-service-transport_plugins.c | |
parent | aedaaed687db1ff20b447378f01ad7306921450c (diff) | |
download | gnunet-1c323bd4cbb388a9e7515a1f733a3062bf093aee.tar.gz gnunet-1c323bd4cbb388a9e7515a1f733a3062bf093aee.zip |
fixing #3657 (replace ATS_Information with struct), but WIHTOUT fixing ATS testcases yet
Diffstat (limited to 'src/transport/gnunet-service-transport_plugins.c')
-rw-r--r-- | src/transport/gnunet-service-transport_plugins.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/transport/gnunet-service-transport_plugins.c b/src/transport/gnunet-service-transport_plugins.c index 1571cee71..cbfa50afd 100644 --- a/src/transport/gnunet-service-transport_plugins.c +++ b/src/transport/gnunet-service-transport_plugins.c | |||
@@ -85,19 +85,15 @@ static struct TransportPlugin *plugins_tail; | |||
85 | * @param cls closure | 85 | * @param cls closure |
86 | * @param address address to update metrics for | 86 | * @param address address to update metrics for |
87 | * @param session the session | 87 | * @param session the session |
88 | * @param ats the ats information to update | 88 | * @param distance new distance |
89 | * @param ats_count the number of @a ats elements | ||
90 | */ | 89 | */ |
91 | static void | 90 | static void |
92 | plugin_env_update_metrics (void *cls, | 91 | plugin_env_update_distance (void *cls, |
93 | const struct GNUNET_HELLO_Address *address, | 92 | const struct GNUNET_HELLO_Address *address, |
94 | struct Session *session, | 93 | uint32_t distance) |
95 | const struct GNUNET_ATS_Information *ats, | ||
96 | uint32_t ats_count) | ||
97 | { | 94 | { |
98 | GST_ats_update_metrics (address, | 95 | GST_ats_update_distance (address, |
99 | session, | 96 | distance); |
100 | ats, ats_count); | ||
101 | } | 97 | } |
102 | 98 | ||
103 | 99 | ||
@@ -191,7 +187,7 @@ GST_plugins_load (GNUNET_TRANSPORT_PluginReceiveCallback recv_cb, | |||
191 | plug->env.session_start = session_start_cb; | 187 | plug->env.session_start = session_start_cb; |
192 | plug->env.session_end = session_end_cb; | 188 | plug->env.session_end = session_end_cb; |
193 | plug->env.get_address_type = &plugin_env_address_to_type; | 189 | plug->env.get_address_type = &plugin_env_address_to_type; |
194 | plug->env.update_address_metrics = &plugin_env_update_metrics; | 190 | plug->env.update_address_distance = &plugin_env_update_distance; |
195 | plug->env.max_connections = tneigh; | 191 | plug->env.max_connections = tneigh; |
196 | plug->env.stats = GST_stats; | 192 | plug->env.stats = GST_stats; |
197 | GNUNET_CONTAINER_DLL_insert (plugins_head, | 193 | GNUNET_CONTAINER_DLL_insert (plugins_head, |