aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_ats_application_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_ats_application_service.h')
-rw-r--r--src/include/gnunet_ats_application_service.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/include/gnunet_ats_application_service.h b/src/include/gnunet_ats_application_service.h
index af92d5639..60560790a 100644
--- a/src/include/gnunet_ats_application_service.h
+++ b/src/include/gnunet_ats_application_service.h
@@ -39,32 +39,32 @@
39 * Handle to the ATS subsystem for making suggestions about 39 * Handle to the ATS subsystem for making suggestions about
40 * connections the peer would like to have. 40 * connections the peer would like to have.
41 */ 41 */
42struct GNUNET_ATS_ConnectivityHandle; 42struct GNUNET_ATS_ApplicationHandle;
43 43
44 44
45/** 45/**
46 * Initialize the ATS connectivity suggestion client handle. 46 * Initialize the ATS application client handle.
47 * 47 *
48 * @param cfg configuration to use 48 * @param cfg configuration to use
49 * @return ats connectivity handle, NULL on error 49 * @return ats application handle, NULL on error
50 */ 50 */
51struct GNUNET_ATS_ConnectivityHandle * 51struct GNUNET_ATS_ApplicationHandle *
52GNUNET_ATS_connectivity_init (const struct GNUNET_CONFIGURATION_Handle *cfg); 52GNUNET_ATS_application_init (const struct GNUNET_CONFIGURATION_Handle *cfg);
53 53
54 54
55/** 55/**
56 * Shutdown ATS connectivity suggestion client. 56 * Shutdown ATS application client.
57 * 57 *
58 * @param ch handle to destroy 58 * @param ch handle to destroy
59 */ 59 */
60void 60void
61GNUNET_ATS_connectivity_done (struct GNUNET_ATS_ConnectivityHandle *ch); 61GNUNET_ATS_application_done (struct GNUNET_ATS_ApplicationHandle *ch);
62 62
63 63
64/** 64/**
65 * Handle for address suggestion requests. 65 * Handle for suggestion requests.
66 */ 66 */
67struct GNUNET_ATS_ConnectivitySuggestHandle; 67struct GNUNET_ATS_ApplicationSuggestHandle;
68 68
69 69
70/** 70/**
@@ -74,13 +74,13 @@ struct GNUNET_ATS_ConnectivitySuggestHandle;
74 * 74 *
75 * @param ch handle 75 * @param ch handle
76 * @param peer identity of the peer we need an address for 76 * @param peer identity of the peer we need an address for
77 * @param pk what kind of connectivity will the application require (can be 77 * @param pk what kind of application will the application require (can be
78 * #GNUNET_MQ_PREFERENCE_NONE, we will still try to connect) 78 * #GNUNET_MQ_PREFERENCE_NONE, we will still try to connect)
79 * @param bw desired bandwith, can be zero (we will still try to connect) 79 * @param bw desired bandwith, can be zero (we will still try to connect)
80 * @return suggestion handle, NULL if request is already pending 80 * @return suggestion handle, NULL if request is already pending
81 */ 81 */
82struct GNUNET_ATS_ConnectivitySuggestHandle * 82struct GNUNET_ATS_ApplicationSuggestHandle *
83GNUNET_ATS_connectivity_suggest (struct GNUNET_ATS_ConnectivityHandle *ch, 83GNUNET_ATS_application_suggest (struct GNUNET_ATS_ApplicationHandle *ch,
84 const struct GNUNET_PeerIdentity *peer, 84 const struct GNUNET_PeerIdentity *peer,
85 enum GNUNET_MQ_PreferenceKind pk, 85 enum GNUNET_MQ_PreferenceKind pk,
86 struct GNUNET_BANDWIDTH_Value32NBO bw); 86 struct GNUNET_BANDWIDTH_Value32NBO bw);
@@ -92,8 +92,9 @@ GNUNET_ATS_connectivity_suggest (struct GNUNET_ATS_ConnectivityHandle *ch,
92 * @param sh handle 92 * @param sh handle
93 */ 93 */
94void 94void
95GNUNET_ATS_connectivity_suggest_cancel (struct GNUNET_ATS_ConnectivitySuggestHandle *sh); 95GNUNET_ATS_application_suggest_cancel (struct GNUNET_ATS_ApplicationSuggestHandle *sh);
96 96
97/** @} */ /* end of group */ 97/** @} */ /* end of group */
98 98
99#endif
99/* end of file gnunet_ats_application_service.h */ 100/* end of file gnunet_ats_application_service.h */