aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-07 14:15:38 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-07 14:15:38 +0000
commite5bd8fb4aa72717b8707a4652f14c0735acb52c4 (patch)
tree08398e22b9408cc24b6b9e6cb360fe04b9eeae05 /src/include/gnunet_transport_plugin.h
parent572bab1ace57fb9d7acbd218d6940cb1e9a0797b (diff)
downloadgnunet-e5bd8fb4aa72717b8707a4652f14c0735acb52c4.tar.gz
gnunet-e5bd8fb4aa72717b8707a4652f14c0735acb52c4.zip
determine network scope for ATS even if we do not yet have a session and only have an address
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r--src/include/gnunet_transport_plugin.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h
index 0b0be1fb9..0dc159cb4 100644
--- a/src/include/gnunet_transport_plugin.h
+++ b/src/include/gnunet_transport_plugin.h
@@ -499,6 +499,7 @@ typedef void
499 struct Session *session, 499 struct Session *session,
500 struct GNUNET_TIME_Relative delay); 500 struct GNUNET_TIME_Relative delay);
501 501
502
502/** 503/**
503 * Function called for a quick conversion of the binary address to 504 * Function called for a quick conversion of the binary address to
504 * a numeric address. Note that the caller must not free the 505 * a numeric address. Note that the caller must not free the
@@ -549,6 +550,18 @@ typedef enum GNUNET_ATS_Network_Type
549 550
550 551
551/** 552/**
553 * Function to obtain the network type for an address.
554 *
555 * @param cls closure (`struct Plugin *`)
556 * @param address the address
557 * @return the network type
558 */
559typedef enum GNUNET_ATS_Network_Type
560(*GNUNET_TRANSPORT_GetNetworkTypeForAddress) (void *cls,
561 const struct GNUNET_HELLO_Address *address);
562
563
564/**
552 * Function called by the plugin with information about the 565 * Function called by the plugin with information about the
553 * current sessions managed by the plugin (for monitoring). 566 * current sessions managed by the plugin (for monitoring).
554 * 567 *
@@ -680,6 +693,11 @@ struct GNUNET_TRANSPORT_PluginFunctions
680 GNUNET_TRANSPORT_GetNetworkType get_network; 693 GNUNET_TRANSPORT_GetNetworkType get_network;
681 694
682 /** 695 /**
696 * Function to obtain the network type for an address
697 */
698 GNUNET_TRANSPORT_GetNetworkTypeForAddress get_network_for_address;
699
700 /**
683 * Function to monitor the sessions managed by the plugin. 701 * Function to monitor the sessions managed by the plugin.
684 */ 702 */
685 GNUNET_TRANSPORT_SessionMonitorSetup setup_monitor; 703 GNUNET_TRANSPORT_SessionMonitorSetup setup_monitor;