diff options
Diffstat (limited to 'src/transport/transport_api2_application.c')
-rw-r--r-- | src/transport/transport_api2_application.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/transport/transport_api2_application.c b/src/transport/transport_api2_application.c index 49f0f36c7..7d790d738 100644 --- a/src/transport/transport_api2_application.c +++ b/src/transport/transport_api2_application.c | |||
@@ -51,7 +51,7 @@ struct GNUNET_TRANSPORT_ApplicationSuggestHandle | |||
51 | /** | 51 | /** |
52 | * What preference is being expressed? | 52 | * What preference is being expressed? |
53 | */ | 53 | */ |
54 | enum GNUNET_MQ_PreferenceKind pk; | 54 | enum GNUNET_MQ_PriorityPreferences pk; |
55 | 55 | ||
56 | /** | 56 | /** |
57 | * How much bandwidth does the client expect? | 57 | * How much bandwidth does the client expect? |
@@ -277,15 +277,12 @@ GNUNET_TRANSPORT_application_done ( | |||
277 | 277 | ||
278 | 278 | ||
279 | /** | 279 | /** |
280 | * We would like to receive address suggestions for a peer. TRANSPORT will | 280 | * An application would like TRANSPORT to connect to a peer. |
281 | * respond with a call to the continuation immediately containing an address or | ||
282 | * no address if none is available. TRANSPORT can suggest more addresses until we call | ||
283 | * #GNUNET_TRANSPORT_application_suggest_cancel(). | ||
284 | * | 281 | * |
285 | * @param ch handle | 282 | * @param ch handle |
286 | * @param peer identity of the peer we need an address for | 283 | * @param peer identity of the peer we need an address for |
287 | * @param pk what kind of application will the application require (can be | 284 | * @param pk what kind of application will the application require (can be |
288 | * #GNUNET_MQ_PREFERENCE_NONE, we will still try to connect) | 285 | * #GNUNET_MQ_PRIO_BACKGROUND, we will still try to connect) |
289 | * @param bw desired bandwith, can be zero (we will still try to connect) | 286 | * @param bw desired bandwith, can be zero (we will still try to connect) |
290 | * @return suggest handle, NULL if a request is already pending | 287 | * @return suggest handle, NULL if a request is already pending |
291 | */ | 288 | */ |
@@ -293,7 +290,7 @@ struct GNUNET_TRANSPORT_ApplicationSuggestHandle * | |||
293 | GNUNET_TRANSPORT_application_suggest ( | 290 | GNUNET_TRANSPORT_application_suggest ( |
294 | struct GNUNET_TRANSPORT_ApplicationHandle *ch, | 291 | struct GNUNET_TRANSPORT_ApplicationHandle *ch, |
295 | const struct GNUNET_PeerIdentity *peer, | 292 | const struct GNUNET_PeerIdentity *peer, |
296 | enum GNUNET_MQ_PreferenceKind pk, | 293 | enum GNUNET_MQ_PriorityPreferences pk, |
297 | struct GNUNET_BANDWIDTH_Value32NBO bw) | 294 | struct GNUNET_BANDWIDTH_Value32NBO bw) |
298 | { | 295 | { |
299 | struct GNUNET_TRANSPORT_ApplicationSuggestHandle *s; | 296 | struct GNUNET_TRANSPORT_ApplicationSuggestHandle *s; |