aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-10 23:24:01 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-10 23:24:01 +0000
commit1c323bd4cbb388a9e7515a1f733a3062bf093aee (patch)
tree7cc525d79149d44840b9f7a0040aaf3e69ecd665 /src/include/gnunet_transport_plugin.h
parentaedaaed687db1ff20b447378f01ad7306921450c (diff)
downloadgnunet-1c323bd4cbb388a9e7515a1f733a3062bf093aee.tar.gz
gnunet-1c323bd4cbb388a9e7515a1f733a3062bf093aee.zip
fixing #3657 (replace ATS_Information with struct), but WIHTOUT fixing ATS testcases yet
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r--src/include/gnunet_transport_plugin.h28
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 */
86typedef void 85typedef 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 */
150typedef void 144typedef 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