aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_ats_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-08 15:34:37 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-08 15:34:37 +0000
commitc306f456b0cfdfb55fb28290ff61f7783233cfc3 (patch)
tree0b2dea88ea83b3ccd2603073d3e7b710f3d584d8 /src/include/gnunet_ats_plugin.h
parentf99ade0a9aaa8024affcf01aa871f93bd03ef9e1 (diff)
downloadgnunet-c306f456b0cfdfb55fb28290ff61f7783233cfc3.tar.gz
gnunet-c306f456b0cfdfb55fb28290ff61f7783233cfc3.zip
expose connectivity desire of clients to ATS plugins
Diffstat (limited to 'src/include/gnunet_ats_plugin.h')
-rw-r--r--src/include/gnunet_ats_plugin.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/gnunet_ats_plugin.h b/src/include/gnunet_ats_plugin.h
index 5fdc33f71..ec564bb82 100644
--- a/src/include/gnunet_ats_plugin.h
+++ b/src/include/gnunet_ats_plugin.h
@@ -402,6 +402,20 @@ typedef const double *
402 402
403 403
404/** 404/**
405 * Callback to call from solver to obtain application connectivity
406 * preferences for a peer.
407 *
408 * @param cls the cls
409 * @param id the peer id
410 * @return 0 if connectivity is not desired, non-null if address
411 * suggestions are requested
412 */
413typedef unsigned int
414(*GAS_get_connectivity) (void *cls,
415 const struct GNUNET_PeerIdentity *id);
416
417
418/**
405 * The ATS plugin will pass a pointer to a struct 419 * The ATS plugin will pass a pointer to a struct
406 * of this type as to the initialization function 420 * of this type as to the initialization function
407 * of the ATS plugins. 421 * of the ATS plugins.
@@ -439,6 +453,11 @@ struct GNUNET_ATS_PluginEnvironment
439 GAS_get_preferences get_preferences; 453 GAS_get_preferences get_preferences;
440 454
441 /** 455 /**
456 * ATS addresses function to obtain preference values
457 */
458 GAS_get_connectivity get_connectivity;
459
460 /**
442 * Callback for solver to call with status information, 461 * Callback for solver to call with status information,
443 * can be NULL 462 * can be NULL
444 */ 463 */