diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-05-05 14:02:24 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-05-05 14:02:24 +0200 |
commit | e94c5914935ca0842ca762d343cb167c68b8a79a (patch) | |
tree | 4719d48bbcd9be334854d0ed88ba76f5b259b296 /src/transport/transport_api2_application.c | |
parent | b84057d7593651e16a161de9f2ec51f93c98589d (diff) |
use new PriorityPreferences consistently, note on deprecation
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 /** * What preference is being expressed? */ - enum GNUNET_MQ_PreferenceKind pk; + enum GNUNET_MQ_PriorityPreferences pk; /** * How much bandwidth does the client expect? @@ -277,15 +277,12 @@ GNUNET_TRANSPORT_application_done ( /** - * We would like to receive address suggestions for a peer. TRANSPORT will - * respond with a call to the continuation immediately containing an address or - * no address if none is available. TRANSPORT can suggest more addresses until we call - * #GNUNET_TRANSPORT_application_suggest_cancel(). + * An application would like TRANSPORT to connect to a peer. * * @param ch handle * @param peer identity of the peer we need an address for * @param pk what kind of application will the application require (can be - * #GNUNET_MQ_PREFERENCE_NONE, we will still try to connect) + * #GNUNET_MQ_PRIO_BACKGROUND, we will still try to connect) * @param bw desired bandwith, can be zero (we will still try to connect) * @return suggest handle, NULL if a request is already pending */ @@ -293,7 +290,7 @@ struct GNUNET_TRANSPORT_ApplicationSuggestHandle * GNUNET_TRANSPORT_application_suggest ( struct GNUNET_TRANSPORT_ApplicationHandle *ch, const struct GNUNET_PeerIdentity *peer, - enum GNUNET_MQ_PreferenceKind pk, + enum GNUNET_MQ_PriorityPreferences pk, struct GNUNET_BANDWIDTH_Value32NBO bw) { struct GNUNET_TRANSPORT_ApplicationSuggestHandle *s; |