aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_template.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-01-16 20:44:56 +0000
committerChristian Grothoff <christian@grothoff.org>2010-01-16 20:44:56 +0000
commitdfb4dfbde04e233b5ab0c489aa3aacacd8a696ba (patch)
treeb4dba023560e47650355e28993961646aae85f26 /src/transport/plugin_transport_template.c
parentd6f386ca51514316d7fd06b26a02fb3833379983 (diff)
downloadgnunet-dfb4dfbde04e233b5ab0c489aa3aacacd8a696ba.tar.gz
gnunet-dfb4dfbde04e233b5ab0c489aa3aacacd8a696ba.zip
further simplify transport API
Diffstat (limited to 'src/transport/plugin_transport_template.c')
-rw-r--r--src/transport/plugin_transport_template.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c
index 1d949f345..69c27b923 100644
--- a/src/transport/plugin_transport_template.c
+++ b/src/transport/plugin_transport_template.c
@@ -163,8 +163,6 @@ template_plugin_validate (void *cls,
163 * a message using the plugin. 163 * a message using the plugin.
164 * 164 *
165 * @param cls closure 165 * @param cls closure
166 * @param service_context value passed to the transport-service
167 * to identify the neighbour
168 * @param target who should receive this message 166 * @param target who should receive this message
169 * @param priority how important is the message 167 * @param priority how important is the message
170 * @param msg the message to transmit 168 * @param msg the message to transmit
@@ -177,7 +175,6 @@ template_plugin_validate (void *cls,
177 */ 175 */
178static void 176static void
179template_plugin_send (void *cls, 177template_plugin_send (void *cls,
180 struct ReadyList *service_context,
181 const struct GNUNET_PeerIdentity *target, 178 const struct GNUNET_PeerIdentity *target,
182 unsigned int priority, 179 unsigned int priority,
183 const struct GNUNET_MessageHeader *msg, 180 const struct GNUNET_MessageHeader *msg,
@@ -196,17 +193,11 @@ template_plugin_send (void *cls,
196 * (and their continuationc). 193 * (and their continuationc).
197 * 194 *
198 * @param cls closure 195 * @param cls closure
199 * @param service_context must correspond to the service context 196 * @param target peer from which to disconnect
200 * of the corresponding Transmit call; the plugin should
201 * not cancel a send call made with a different service
202 * context pointer! Never NULL.
203 * @param target peer for which the last transmission is
204 * to be cancelled
205 */ 197 */
206static void 198static void
207template_plugin_cancel (void *cls, 199template_plugin_disconnect (void *cls,
208 struct ReadyList *service_context, 200 const struct GNUNET_PeerIdentity *target)
209 const struct GNUNET_PeerIdentity *target)
210{ 201{
211 // struct Plugin *plugin = cls; 202 // struct Plugin *plugin = cls;
212 // FIXME 203 // FIXME
@@ -301,7 +292,7 @@ gnunet_plugin_transport_template_init (void *cls)
301 api->cls = plugin; 292 api->cls = plugin;
302 api->validate = &template_plugin_validate; 293 api->validate = &template_plugin_validate;
303 api->send = &template_plugin_send; 294 api->send = &template_plugin_send;
304 api->cancel = &template_plugin_cancel; 295 api->disconnect = &template_plugin_disconnect;
305 api->address_pretty_printer = &template_plugin_address_pretty_printer; 296 api->address_pretty_printer = &template_plugin_address_pretty_printer;
306 api->set_receive_quota = &template_plugin_set_receive_quota; 297 api->set_receive_quota = &template_plugin_set_receive_quota;
307 api->address_suggested = &template_plugin_address_suggested; 298 api->address_suggested = &template_plugin_address_suggested;