diff options
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r-- | src/include/gnunet_transport_plugin.h | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h index 90a85356b..f8394ebc5 100644 --- a/src/include/gnunet_transport_plugin.h +++ b/src/include/gnunet_transport_plugin.h | |||
@@ -80,15 +80,13 @@ typedef void | |||
80 | * @param cls unused | 80 | * @param cls unused |
81 | * @param address the address | 81 | * @param address the address |
82 | * @param session the new session | 82 | * @param session the new session |
83 | * @param ats ats information | 83 | * @param net network information |
84 | * @param ats_count number of @a ats information | ||
85 | */ | 84 | */ |
86 | typedef void | 85 | typedef void |
87 | (*GNUNET_TRANSPORT_SessionStart) (void *cls, | 86 | (*GNUNET_TRANSPORT_SessionStart) (void *cls, |
88 | const struct GNUNET_HELLO_Address *address, | 87 | const struct GNUNET_HELLO_Address *address, |
89 | struct Session *session, | 88 | struct Session *session, |
90 | const struct GNUNET_ATS_Information *ats, | 89 | enum GNUNET_ATS_Network_Type net); |
91 | uint32_t ats_count); | ||
92 | 90 | ||
93 | 91 | ||
94 | /** | 92 | /** |
@@ -137,22 +135,16 @@ typedef enum GNUNET_ATS_Network_Type | |||
137 | 135 | ||
138 | 136 | ||
139 | /** | 137 | /** |
140 | * Function called when quality properties of an address change. | 138 | * Function called when distance of an address changes. |
141 | * | 139 | * |
142 | * @param cls closure | 140 | * @param cls closure |
143 | * @param peer peer | 141 | * @param peer peer |
144 | * @param address address | 142 | * @param distance new distance |
145 | * @param address_len length of the @a address | ||
146 | * @param session session | ||
147 | * @param ats ATS information | ||
148 | * @param ats_count number entries in the @a ats array | ||
149 | */ | 143 | */ |
150 | typedef void | 144 | typedef void |
151 | (*GNUNET_TRANSPORT_UpdateAddressMetrics) (void *cls, | 145 | (*GNUNET_TRANSPORT_UpdateAddressDistance) (void *cls, |
152 | const struct GNUNET_HELLO_Address *address, | 146 | const struct GNUNET_HELLO_Address *address, |
153 | struct Session *session, | 147 | uint32_t distance); |
154 | const struct GNUNET_ATS_Information *ats, | ||
155 | uint32_t ats_count); | ||
156 | 148 | ||
157 | 149 | ||
158 | /** | 150 | /** |
@@ -269,10 +261,10 @@ struct GNUNET_TRANSPORT_PluginEnvironment | |||
269 | GNUNET_TRANSPORT_AddressToType get_address_type; | 261 | GNUNET_TRANSPORT_AddressToType get_address_type; |
270 | 262 | ||
271 | /** | 263 | /** |
272 | * Function that will be called to figure if an address is an loopback, | 264 | * Function that will be called by DV to update distance for |
273 | * LAN, WAN etc. address | 265 | * an address. |
274 | */ | 266 | */ |
275 | GNUNET_TRANSPORT_UpdateAddressMetrics update_address_metrics; | 267 | GNUNET_TRANSPORT_UpdateAddressDistance update_address_distance; |
276 | 268 | ||
277 | /** | 269 | /** |
278 | * What is the maximum number of connections that this transport | 270 | * What is the maximum number of connections that this transport |