aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-08-22 10:06:18 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-08-22 10:06:18 +0000
commit6b2284a0d6ff73258622687c6ecd75d054f156f1 (patch)
treeab682fb56eb417673735be78939d95e2f325f59a /src/transport/plugin_transport_http_client.c
parent9c57c788237e66e4f40cf9919b583bb8ecf30523 (diff)
downloadgnunet-6b2284a0d6ff73258622687c6ecd75d054f156f1.tar.gz
gnunet-6b2284a0d6ff73258622687c6ecd75d054f156f1.zip
changes
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r--src/transport/plugin_transport_http_client.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index f4790b0f6..c2dda5efc 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -55,7 +55,7 @@
55/** 55/**
56 * Encapsulation of all of the state of the plugin. 56 * Encapsulation of all of the state of the plugin.
57 */ 57 */
58struct Plugin; 58struct HTTP_Client_Plugin;
59 59
60 60
61/** 61/**
@@ -77,7 +77,7 @@ struct Session
77 /** 77 /**
78 * Pointer to the global plugin struct. 78 * Pointer to the global plugin struct.
79 */ 79 */
80 struct Plugin *plugin; 80 struct HTTP_Client_Plugin *plugin;
81 81
82 /** 82 /**
83 * The client (used to identify this connection) 83 * The client (used to identify this connection)
@@ -118,7 +118,7 @@ struct Session
118/** 118/**
119 * Encapsulation of all of the state of the plugin. 119 * Encapsulation of all of the state of the plugin.
120 */ 120 */
121struct Plugin 121struct HTTP_Client_Plugin
122{ 122{
123 /** 123 /**
124 * Our environment. 124 * Our environment.
@@ -168,7 +168,7 @@ http_client_plugin_send (void *cls,
168 struct GNUNET_TIME_Relative to, 168 struct GNUNET_TIME_Relative to,
169 GNUNET_TRANSPORT_TransmitContinuation cont, void *cont_cls) 169 GNUNET_TRANSPORT_TransmitContinuation cont, void *cont_cls)
170{ 170{
171 struct Plugin *plugin = cls; 171 struct HTTP_Client_Plugin *plugin = cls;
172 int bytes_sent = 0; 172 int bytes_sent = 0;
173 173
174 GNUNET_assert (plugin != NULL); 174 GNUNET_assert (plugin != NULL);
@@ -275,9 +275,9 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
275{ 275{
276 struct GNUNET_TRANSPORT_PluginEnvironment *env = cls; 276 struct GNUNET_TRANSPORT_PluginEnvironment *env = cls;
277 struct GNUNET_TRANSPORT_PluginFunctions *api; 277 struct GNUNET_TRANSPORT_PluginFunctions *api;
278 struct Plugin *plugin; 278 struct HTTP_Client_Plugin *plugin;
279 279
280 plugin = GNUNET_malloc (sizeof (struct Plugin)); 280 plugin = GNUNET_malloc (sizeof (struct HTTP_Client_Plugin));
281 plugin->env = env; 281 plugin->env = env;
282 api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions)); 282 api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions));
283 api->cls = plugin; 283 api->cls = plugin;
@@ -297,7 +297,7 @@ void *
297LIBGNUNET_PLUGIN_TRANSPORT_DONE (void *cls) 297LIBGNUNET_PLUGIN_TRANSPORT_DONE (void *cls)
298{ 298{
299 struct GNUNET_TRANSPORT_PluginFunctions *api = cls; 299 struct GNUNET_TRANSPORT_PluginFunctions *api = cls;
300 struct Plugin *plugin = api->cls; 300 struct HTTP_Client_Plugin *plugin = api->cls;
301 301
302 GNUNET_free (plugin); 302 GNUNET_free (plugin);
303 GNUNET_free (api); 303 GNUNET_free (api);