From e94c5914935ca0842ca762d343cb167c68b8a79a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 5 May 2019 14:02:24 +0200 Subject: use new PriorityPreferences consistently, note on deprecation --- src/transport/transport_api2_application.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/transport/transport_api2_application.c') 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; -- cgit v1.2.3