aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-17 22:20:18 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-17 22:20:18 +0000
commit81b92caa24a83620032438df9c5ee3ea51663a02 (patch)
tree2b2df659c94e1ead5bbdb5082e50018c39e68796 /src/include/gnunet_transport_plugin.h
parent4756cb0779daf3e4c33b6e876dce956de7ee6dd8 (diff)
downloadgnunet-81b92caa24a83620032438df9c5ee3ea51663a02.tar.gz
gnunet-81b92caa24a83620032438df9c5ee3ea51663a02.zip
simplify ATS API and plugin API by returning the network type, instead of an ATS_Information struct
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r--src/include/gnunet_transport_plugin.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h
index 17333551c..90d6ed2c6 100644
--- a/src/include/gnunet_transport_plugin.h
+++ b/src/include/gnunet_transport_plugin.h
@@ -120,15 +120,15 @@ typedef struct GNUNET_TIME_Relative
120 120
121 121
122/** 122/**
123 * Function that will be called to figure if an address is an loopback, 123 * Function that will be called to figure if an address is an
124 * LAN, WAN etc. address 124 * loopback, LAN, WAN etc. address
125 * 125 *
126 * @param cls closure 126 * @param cls closure
127 * @param addr binary address 127 * @param addr binary address
128 * @param addrlen length of the @a addr 128 * @param addrlen length of the @a addr
129 * @return ATS Information containing the network type 129 * @return type of the network the address belongs to
130 */ 130 */
131typedef struct GNUNET_ATS_Information 131typedef enum GNUNET_ATS_Network_Type
132(*GNUNET_TRANSPORT_AddressToType) (void *cls, 132(*GNUNET_TRANSPORT_AddressToType) (void *cls,
133 const struct sockaddr *addr, 133 const struct sockaddr *addr,
134 size_t addrlen); 134 size_t addrlen);