diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-07-13 15:33:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-07-13 15:33:30 +0000 |
commit | ee21a783ec2bb31b26a508d12ffad5d8b3c866e9 (patch) | |
tree | 93b4b89131605a3cde1bdd599c94e0eba37ae6f7 /src/transport/plugin_transport_template.c | |
parent | 9fa742ef8a7b4299f20292107dbe7a40fc08e2bf (diff) | |
download | gnunet-ee21a783ec2bb31b26a508d12ffad5d8b3c866e9.tar.gz gnunet-ee21a783ec2bb31b26a508d12ffad5d8b3c866e9.zip |
-add dv_get_network to DV API, improve signature to use 'struct Session *' instead of 'void *'
Diffstat (limited to 'src/transport/plugin_transport_template.c')
-rw-r--r-- | src/transport/plugin_transport_template.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c index bf405dba6..007290504 100644 --- a/src/transport/plugin_transport_template.c +++ b/src/transport/plugin_transport_template.c | |||
@@ -205,6 +205,7 @@ template_plugin_disconnect (void *cls, const struct GNUNET_PeerIdentity *target) | |||
205 | // FIXME | 205 | // FIXME |
206 | } | 206 | } |
207 | 207 | ||
208 | |||
208 | /** | 209 | /** |
209 | * Function obtain the network type for a session | 210 | * Function obtain the network type for a session |
210 | * | 211 | * |
@@ -213,13 +214,14 @@ template_plugin_disconnect (void *cls, const struct GNUNET_PeerIdentity *target) | |||
213 | * @return the network type in HBO or GNUNET_SYSERR | 214 | * @return the network type in HBO or GNUNET_SYSERR |
214 | */ | 215 | */ |
215 | static enum GNUNET_ATS_Network_Type | 216 | static enum GNUNET_ATS_Network_Type |
216 | template_plugin_get_network (void *cls, void *session) | 217 | template_plugin_get_network (void *cls, |
218 | struct Session *session) | ||
217 | { | 219 | { |
218 | struct Session *s = (struct Session *) session; | 220 | GNUNET_assert (NULL != session); |
219 | GNUNET_assert (NULL != s); | 221 | return GNUNET_ATS_NET_UNSPECIFIED; /* Change to correct network type */ |
220 | return GNUNET_ATS_NET_UNSPECIFIED; /* Change to correct network type */ | ||
221 | } | 222 | } |
222 | 223 | ||
224 | |||
223 | /** | 225 | /** |
224 | * Convert the transports address to a nice, human-readable | 226 | * Convert the transports address to a nice, human-readable |
225 | * format. | 227 | * format. |