diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-30 17:13:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-30 17:13:49 +0000 |
commit | 48aec5c799d171609d8ae4918d0b8acbdfbb2bbc (patch) | |
tree | f7fa2c29fead558f0cd51deaae876f8a21fc40dc /src/transport/transport_api_hello_get.c | |
parent | b54a66f94d833dbe98eb0dd9e236a3d7bba3ce20 (diff) | |
download | gnunet-48aec5c799d171609d8ae4918d0b8acbdfbb2bbc.tar.gz gnunet-48aec5c799d171609d8ae4918d0b8acbdfbb2bbc.zip |
use different enum for HELLO address classes, deploy for DHT
Diffstat (limited to 'src/transport/transport_api_hello_get.c')
-rw-r--r-- | src/transport/transport_api_hello_get.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/transport_api_hello_get.c b/src/transport/transport_api_hello_get.c index 9d4209e04..ec7b544d6 100644 --- a/src/transport/transport_api_hello_get.c +++ b/src/transport/transport_api_hello_get.c | |||
@@ -77,7 +77,7 @@ struct GNUNET_TRANSPORT_HelloGetHandle | |||
77 | /** | 77 | /** |
78 | * Type of HELLOs client cares about. | 78 | * Type of HELLOs client cares about. |
79 | */ | 79 | */ |
80 | enum GNUNET_ATS_Network_Type nt; | 80 | enum GNUNET_TRANSPORT_AddressClass ac; |
81 | }; | 81 | }; |
82 | 82 | ||
83 | 83 | ||
@@ -219,7 +219,7 @@ schedule_reconnect (struct GNUNET_TRANSPORT_HelloGetHandle *ghh) | |||
219 | * is never called synchronously. | 219 | * is never called synchronously. |
220 | * | 220 | * |
221 | * @param cfg configuration | 221 | * @param cfg configuration |
222 | * @param nt which network type should the addresses from the HELLO belong to? | 222 | * @param ac which network type should the addresses from the HELLO belong to? |
223 | * @param rec function to call with the HELLO, sender will be our peer | 223 | * @param rec function to call with the HELLO, sender will be our peer |
224 | * identity; message and sender will be NULL on timeout | 224 | * identity; message and sender will be NULL on timeout |
225 | * (handshake with transport service pending/failed). | 225 | * (handshake with transport service pending/failed). |
@@ -229,7 +229,7 @@ schedule_reconnect (struct GNUNET_TRANSPORT_HelloGetHandle *ghh) | |||
229 | */ | 229 | */ |
230 | struct GNUNET_TRANSPORT_HelloGetHandle * | 230 | struct GNUNET_TRANSPORT_HelloGetHandle * |
231 | GNUNET_TRANSPORT_hello_get (const struct GNUNET_CONFIGURATION_Handle *cfg, | 231 | GNUNET_TRANSPORT_hello_get (const struct GNUNET_CONFIGURATION_Handle *cfg, |
232 | enum GNUNET_ATS_Network_Type nt, | 232 | enum GNUNET_TRANSPORT_AddressClass ac, |
233 | GNUNET_TRANSPORT_HelloUpdateCallback rec, | 233 | GNUNET_TRANSPORT_HelloUpdateCallback rec, |
234 | void *rec_cls) | 234 | void *rec_cls) |
235 | { | 235 | { |
@@ -239,7 +239,7 @@ GNUNET_TRANSPORT_hello_get (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
239 | ghh->rec = rec; | 239 | ghh->rec = rec; |
240 | ghh->rec_cls = rec_cls; | 240 | ghh->rec_cls = rec_cls; |
241 | ghh->cfg = cfg; | 241 | ghh->cfg = cfg; |
242 | ghh->nt = nt; | 242 | ghh->ac = ac; |
243 | reconnect (ghh); | 243 | reconnect (ghh); |
244 | if (NULL == ghh->mq) | 244 | if (NULL == ghh->mq) |
245 | { | 245 | { |