aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_template.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-08 11:28:27 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-08 11:28:27 +0000
commite105a542a8ddb22184712bfe565aa734f1d0349d (patch)
tree4de9f49a5e5f90430285873f5889b01430f1dcc4 /src/transport/plugin_transport_template.c
parent0f4a6dabe46a75ceb41f962e9f60e4a164feb9ec (diff)
downloadgnunet-e105a542a8ddb22184712bfe565aa734f1d0349d.tar.gz
gnunet-e105a542a8ddb22184712bfe565aa734f1d0349d.zip
-fix template
Diffstat (limited to 'src/transport/plugin_transport_template.c')
-rw-r--r--src/transport/plugin_transport_template.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c
index 1d85814b8..7c8bc3cba 100644
--- a/src/transport/plugin_transport_template.c
+++ b/src/transport/plugin_transport_template.c
@@ -296,6 +296,21 @@ template_plugin_get_network (void *cls,
296 296
297 297
298/** 298/**
299 * Function obtain the network type for an address.
300 *
301 * @param cls closure (`struct Plugin *`)
302 * @param address the address
303 * @return the network type
304 */
305static enum GNUNET_ATS_Network_Type
306template_plugin_get_network_for_address (void *cls,
307 const struct GNUNET_HELLO_Address *address)
308{
309 return GNUNET_ATS_NET_WAN; /* FOR NOW */
310}
311
312
313/**
299 * Convert the transports address to a nice, human-readable 314 * Convert the transports address to a nice, human-readable
300 * format. 315 * format.
301 * 316 *
@@ -522,6 +537,7 @@ libgnunet_plugin_transport_template_init (void *cls)
522 api->string_to_address = &template_plugin_string_to_address; 537 api->string_to_address = &template_plugin_string_to_address;
523 api->get_session = &template_plugin_get_session; 538 api->get_session = &template_plugin_get_session;
524 api->get_network = &template_plugin_get_network; 539 api->get_network = &template_plugin_get_network;
540 api->get_network_for_address = &template_plugin_get_network_for_address;
525 api->update_session_timeout = &template_plugin_update_session_timeout; 541 api->update_session_timeout = &template_plugin_update_session_timeout;
526 api->setup_monitor = &template_plugin_setup_monitor; 542 api->setup_monitor = &template_plugin_setup_monitor;
527 LOG (GNUNET_ERROR_TYPE_INFO, "Template plugin successfully loaded\n"); 543 LOG (GNUNET_ERROR_TYPE_INFO, "Template plugin successfully loaded\n");