aboutsummaryrefslogtreecommitdiff
path: root/src/dv/plugin_transport_dv.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-13 15:33:30 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-13 15:33:30 +0000
commitee21a783ec2bb31b26a508d12ffad5d8b3c866e9 (patch)
tree93b4b89131605a3cde1bdd599c94e0eba37ae6f7 /src/dv/plugin_transport_dv.c
parent9fa742ef8a7b4299f20292107dbe7a40fc08e2bf (diff)
downloadgnunet-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/dv/plugin_transport_dv.c')
-rw-r--r--src/dv/plugin_transport_dv.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/dv/plugin_transport_dv.c b/src/dv/plugin_transport_dv.c
index f094075e8..8f22246eb 100644
--- a/src/dv/plugin_transport_dv.c
+++ b/src/dv/plugin_transport_dv.c
@@ -634,6 +634,26 @@ dv_plugin_string_to_address (void *cls,
634} 634}
635 635
636 636
637
638/**
639 * Function to obtain the network type for a session
640 * FIXME: we should probably look at the network type
641 * used by the next hop here. Or find some other way
642 * to properly allow ATS-DV resource allocation.
643 *
644 * @param cls closure ('struct Plugin*')
645 * @param session the session
646 * @return the network type
647 */
648static enum GNUNET_ATS_Network_Type
649dv_get_network (void *cls,
650 struct Session *session)
651{
652 GNUNET_assert (NULL != session);
653 return GNUNET_ATS_NET_UNSPECIFIED;
654}
655
656
637/** 657/**
638 * Entry point for the plugin. 658 * Entry point for the plugin.
639 */ 659 */
@@ -670,7 +690,8 @@ libgnunet_plugin_transport_dv_init (void *cls)
670 api->check_address = &dv_plugin_check_address; 690 api->check_address = &dv_plugin_check_address;
671 api->address_to_string = &dv_plugin_address_to_string; 691 api->address_to_string = &dv_plugin_address_to_string;
672 api->string_to_address = &dv_plugin_string_to_address; 692 api->string_to_address = &dv_plugin_string_to_address;
673 api->get_session = dv_get_session; 693 api->get_session = &dv_get_session;
694 api->get_network = &dv_get_network;
674 return api; 695 return api;
675} 696}
676 697