aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_plugin.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-01-26 13:12:03 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-01-26 13:12:03 +0000
commitb07ea00d0f1ff7f732113a7e51840de2eb2e1938 (patch)
treeb0541bb2627babcf2d9c56c8d97164d2b816d893 /src/include/gnunet_transport_plugin.h
parentec8c11ab4c431c70dccd01d66fc1a2b90a929332 (diff)
downloadgnunet-b07ea00d0f1ff7f732113a7e51840de2eb2e1938.tar.gz
gnunet-b07ea00d0f1ff7f732113a7e51840de2eb2e1938.zip
- missing
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r--src/include/gnunet_transport_plugin.h25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h
index d95e9f4e9..9418e6b09 100644
--- a/src/include/gnunet_transport_plugin.h
+++ b/src/include/gnunet_transport_plugin.h
@@ -373,16 +373,11 @@ typedef ssize_t (*GNUNET_TRANSPORT_TransmitFunction) (void *cls,
373 * and does NOT mean that the message was not transmitted (DV) 373 * and does NOT mean that the message was not transmitted (DV)
374 */ 374 */
375typedef ssize_t (*GNUNET_TRANSPORT_TransmitFunctionWithSession) (void *cls, 375typedef ssize_t (*GNUNET_TRANSPORT_TransmitFunctionWithSession) (void *cls,
376 const struct 376 struct Session *session,
377 GNUNET_PeerIdentity * 377 const char *msgbuf, size_t msgbuf_size,
378 target, 378 unsigned int priority,
379 const char *msgbuf, 379 struct GNUNET_TIME_Relative to,
380 size_t msgbuf_size, 380 GNUNET_TRANSPORT_TransmitContinuation cont, void *cont_cls);
381 uint32_t priority,
382 struct GNUNET_TIME_Relative timeout,
383 struct Session * session,
384 GNUNET_TRANSPORT_TransmitContinuation
385 cont, void *cont_cls);
386 381
387 382
388/** 383/**
@@ -467,16 +462,14 @@ typedef int (*GNUNET_TRANSPORT_CheckAddress) (void *cls, const void *addr,
467 * This session will used to send data to this peer and the plugin will 462 * This session will used to send data to this peer and the plugin will
468 * notify us by calling the env->session_end function 463 * notify us by calling the env->session_end function
469 * 464 *
470 * @param cls closure 465 * @param cls the plugin
471 * @param target the neighbour id 466 * @param target the neighbour id
472 * @param addr pointer to the address 467 * @param addr pointer to the address
473 * @param addrlen length of addr 468 * @param addrlen length of addr
474 * @return the session if the address is valid, NULL otherwise 469 * @return the session if the address is valid, NULL otherwise
475 */ 470 */
476typedef const void * (*GNUNET_TRANSPORT_CreateSession) (void *cls, 471typedef struct Session * (*GNUNET_TRANSPORT_CreateSession) (void *cls,
477 const struct GNUNET_PeerIdentity *target, 472 const struct GNUNET_HELLO_Address *address);
478 const void *addr,
479 size_t addrlen);
480 473
481 474
482/** 475/**
@@ -558,7 +551,7 @@ struct GNUNET_TRANSPORT_PluginFunctions
558 * Function that will be called tell the plugin to create a session 551 * Function that will be called tell the plugin to create a session
559 * object 552 * object
560 */ 553 */
561 GNUNET_TRANSPORT_CreateSession create_session; 554 GNUNET_TRANSPORT_CreateSession get_session;
562}; 555};
563 556
564 557