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_http_server.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_http_server.c')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 10ba80a19..968ee23fa 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c | |||
@@ -3021,6 +3021,7 @@ const char *http_plugin_address_to_string (void *cls, | |||
3021 | 3021 | ||
3022 | } | 3022 | } |
3023 | 3023 | ||
3024 | |||
3024 | /** | 3025 | /** |
3025 | * Function obtain the network type for a session | 3026 | * Function obtain the network type for a session |
3026 | * | 3027 | * |
@@ -3029,13 +3030,14 @@ const char *http_plugin_address_to_string (void *cls, | |||
3029 | * @return the network type in HBO or GNUNET_SYSERR | 3030 | * @return the network type in HBO or GNUNET_SYSERR |
3030 | */ | 3031 | */ |
3031 | static enum GNUNET_ATS_Network_Type | 3032 | static enum GNUNET_ATS_Network_Type |
3032 | http_server_get_network (void *cls, void *session) | 3033 | http_server_get_network (void *cls, |
3034 | struct Session *session) | ||
3033 | { | 3035 | { |
3034 | struct Session *s = (struct Session *) session; | 3036 | GNUNET_assert (NULL != session); |
3035 | GNUNET_assert (NULL != s); | 3037 | return ntohl (session->ats_address_network_type); |
3036 | return ntohl(s->ats_address_network_type); | ||
3037 | } | 3038 | } |
3038 | 3039 | ||
3040 | |||
3039 | /** | 3041 | /** |
3040 | * Entry point for the plugin. | 3042 | * Entry point for the plugin. |
3041 | * | 3043 | * |