aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_wlan.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-07-09 15:28:51 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-07-09 15:28:51 +0000
commitc8a965baf8d65b79d03570c05bcc962fae8239c6 (patch)
tree6ca5ae877215ceb0482436030cecb2452f72803c /src/transport/plugin_transport_wlan.c
parentdc330efac154fab36391d376265ffe07460b9cfd (diff)
downloadgnunet-c8a965baf8d65b79d03570c05bcc962fae8239c6.tar.gz
gnunet-c8a965baf8d65b79d03570c05bcc962fae8239c6.zip
added function
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r--src/transport/plugin_transport_wlan.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index b50ed986c..1c480dee5 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -1022,6 +1022,19 @@ create_macendpoint (struct Plugin *plugin,
1022 return pos; 1022 return pos;
1023} 1023}
1024 1024
1025/**
1026 * Function obtain the network type for a session
1027 *
1028 * @param cls closure ('struct Plugin*')
1029 * @param session the session
1030 * @return the network type in HBO or GNUNET_SYSERR
1031 */
1032int wlan_get_network (void *cls,
1033 void *session)
1034{
1035 GNUNET_assert (NULL != session);
1036 return GNUNET_ATS_NET_WLAN;
1037}
1025 1038
1026/** 1039/**
1027 * Creates a new outbound session the transport service will use to send data to the 1040 * Creates a new outbound session the transport service will use to send data to the
@@ -1876,6 +1889,7 @@ libgnunet_plugin_transport_wlan_init (void *cls)
1876 api->check_address = &wlan_plugin_address_suggested; 1889 api->check_address = &wlan_plugin_address_suggested;
1877 api->address_to_string = &wlan_plugin_address_to_string; 1890 api->address_to_string = &wlan_plugin_address_to_string;
1878 api->string_to_address = &wlan_string_to_address; 1891 api->string_to_address = &wlan_string_to_address;
1892 api->get_network = &wlan_get_network;
1879 return api; 1893 return api;
1880} 1894}
1881 1895