summaryrefslogtreecommitdiff
path: root/src/include/gnunet_ats_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_ats_plugin.h')
-rw-r--r--src/include/gnunet_ats_plugin.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/src/include/gnunet_ats_plugin.h b/src/include/gnunet_ats_plugin.h
index e2f052678..d27911a18 100644
--- a/src/include/gnunet_ats_plugin.h
+++ b/src/include/gnunet_ats_plugin.h
@@ -74,9 +74,12 @@ typedef void
74 */ 74 */
75typedef void 75typedef void
76(*GAS_solver_address_feedback_preference) (void *solver, 76(*GAS_solver_address_feedback_preference) (void *solver,
77 struct GNUNET_SERVICE_Client *application, 77 struct GNUNET_SERVICE_Client *
78 const struct GNUNET_PeerIdentity *peer, 78 application,
79 const struct GNUNET_TIME_Relative scope, 79 const struct
80 GNUNET_PeerIdentity *peer,
81 const struct GNUNET_TIME_Relative
82 scope,
80 enum GNUNET_ATS_PreferenceKind kind, 83 enum GNUNET_ATS_PreferenceKind kind,
81 double score); 84 double score);
82 85
@@ -154,7 +157,8 @@ typedef void
154 */ 157 */
155typedef void 158typedef void
156(*GAS_solver_stop_get_preferred_address) (void *solver, 159(*GAS_solver_stop_get_preferred_address) (void *solver,
157 const struct GNUNET_PeerIdentity *peer); 160 const struct
161 GNUNET_PeerIdentity *peer);
158 162
159 163
160/** 164/**
@@ -163,7 +167,8 @@ typedef void
163 * Each solver is required to set up and return an instance 167 * Each solver is required to set up and return an instance
164 * of this struct during initialization. 168 * of this struct during initialization.
165 */ 169 */
166struct GNUNET_ATS_SolverFunctions { 170struct GNUNET_ATS_SolverFunctions
171{
167 /** 172 /**
168 * Closure to pass to all solver functions in this struct. 173 * Closure to pass to all solver functions in this struct.
169 */ 174 */
@@ -246,7 +251,8 @@ struct GNUNET_ATS_SolverFunctions {
246 * #GAS_OP_SOLVE_UPDATE_NOTIFICATION_STOP 251 * #GAS_OP_SOLVE_UPDATE_NOTIFICATION_STOP
247 * 252 *
248 */ 253 */
249enum GAS_Solver_Operation { 254enum GAS_Solver_Operation
255{
250 /** 256 /**
251 * A solution iteration has been started 257 * A solution iteration has been started
252 */ 258 */
@@ -308,7 +314,8 @@ enum GAS_Solver_Operation {
308/** 314/**
309 * Status of a GAS_Solver_Operation operation 315 * Status of a GAS_Solver_Operation operation
310 */ 316 */
311enum GAS_Solver_Status { 317enum GAS_Solver_Status
318{
312 /** 319 /**
313 * Success 320 * Success
314 */ 321 */
@@ -324,7 +331,8 @@ enum GAS_Solver_Status {
324/** 331/**
325 * Status of the operation 332 * Status of the operation
326 */ 333 */
327enum GAS_Solver_Additional_Information { 334enum GAS_Solver_Additional_Information
335{
328 /** 336 /**
329 * No more specific information 337 * No more specific information
330 */ 338 */
@@ -411,7 +419,8 @@ typedef unsigned int
411 * of this type as to the initialization function 419 * of this type as to the initialization function
412 * of the ATS plugins. 420 * of the ATS plugins.
413 */ 421 */
414struct GNUNET_ATS_PluginEnvironment { 422struct GNUNET_ATS_PluginEnvironment
423{
415 /** 424 /**
416 * Configuration handle to be used by the solver 425 * Configuration handle to be used by the solver
417 */ 426 */