aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r--src/include/gnunet_transport_plugin.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h
index b90f3f1cf..d7ca62219 100644
--- a/src/include/gnunet_transport_plugin.h
+++ b/src/include/gnunet_transport_plugin.h
@@ -138,8 +138,7 @@ typedef struct
138 * the specific address format depends on the transport 138 * the specific address format depends on the transport
139 * @param addrlen length of the address 139 * @param addrlen length of the address
140 */ 140 */
141typedef void (*GNUNET_TRANSPORT_AddressNotification) (void *cls, 141typedef void (*GNUNET_TRANSPORT_AddressNotification) (void *cls, int add_remove,
142 int add_remove,
143 const void *addr, 142 const void *addr,
144 size_t addrlen); 143 size_t addrlen);
145 144
@@ -254,10 +253,10 @@ struct GNUNET_TRANSPORT_PluginEnvironment
254 * disconnect will ALSO be signalled using 253 * disconnect will ALSO be signalled using
255 * the ReceiveCallback. 254 * the ReceiveCallback.
256 */ 255 */
257typedef void 256typedef void (*GNUNET_TRANSPORT_TransmitContinuation) (void *cls,
258 (*GNUNET_TRANSPORT_TransmitContinuation) (void *cls, 257 const struct
259 const struct GNUNET_PeerIdentity * 258 GNUNET_PeerIdentity *
260 target, int result); 259 target, int result);
261 260
262 261
263/** 262/**
@@ -296,20 +295,22 @@ typedef void
296 * -1 on hard errors (i.e. address invalid); 0 is a legal value 295 * -1 on hard errors (i.e. address invalid); 0 is a legal value
297 * and does NOT mean that the message was not transmitted (DV) 296 * and does NOT mean that the message was not transmitted (DV)
298 */ 297 */
299typedef ssize_t 298typedef ssize_t (*GNUNET_TRANSPORT_TransmitFunction) (void *cls,
300 (*GNUNET_TRANSPORT_TransmitFunction) (void *cls, 299 const struct
301 const struct GNUNET_PeerIdentity * 300 GNUNET_PeerIdentity *
302 target, 301 target,
303 const char *msgbuf, 302 const char *msgbuf,
304 size_t msgbuf_size, 303 size_t msgbuf_size,
305 uint32_t priority, 304 uint32_t priority,
306 struct GNUNET_TIME_Relative timeout, 305 struct
307 struct Session * session, 306 GNUNET_TIME_Relative
308 const void *addr, 307 timeout,
309 size_t addrlen, 308 struct Session * session,
310 int force_address, 309 const void *addr,
311 GNUNET_TRANSPORT_TransmitContinuation 310 size_t addrlen,
312 cont, void *cont_cls); 311 int force_address,
312 GNUNET_TRANSPORT_TransmitContinuation
313 cont, void *cont_cls);
313 314
314 315
315/** 316/**
@@ -328,10 +329,10 @@ typedef ssize_t
328 * @param target peer for which the last transmission is 329 * @param target peer for which the last transmission is
329 * to be cancelled 330 * to be cancelled
330 */ 331 */
331typedef void 332typedef void (*GNUNET_TRANSPORT_DisconnectFunction) (void *cls,
332 (*GNUNET_TRANSPORT_DisconnectFunction) (void *cls, 333 const struct
333 const struct GNUNET_PeerIdentity * 334 GNUNET_PeerIdentity *
334 target); 335 target);
335 336
336 337
337/** 338/**
@@ -360,16 +361,16 @@ typedef void (*GNUNET_TRANSPORT_AddressStringCallback) (void *cls,
360 * @param asc function to call on each string 361 * @param asc function to call on each string
361 * @param asc_cls closure for asc 362 * @param asc_cls closure for asc
362 */ 363 */
363typedef void 364typedef void (*GNUNET_TRANSPORT_AddressPrettyPrinter) (void *cls,
364 (*GNUNET_TRANSPORT_AddressPrettyPrinter) (void *cls, 365 const char *type,
365 const char *type, 366 const void *addr,
366 const void *addr, 367 size_t addrlen,
367 size_t addrlen, 368 int numeric,
368 int numeric, 369 struct
369 struct GNUNET_TIME_Relative 370 GNUNET_TIME_Relative
370 timeout, 371 timeout,
371 GNUNET_TRANSPORT_AddressStringCallback 372 GNUNET_TRANSPORT_AddressStringCallback
372 asc, void *asc_cls); 373 asc, void *asc_cls);
373 374
374 375
375/** 376/**
@@ -386,9 +387,8 @@ typedef void
386 * @return GNUNET_OK if this is a plausible address for this peer 387 * @return GNUNET_OK if this is a plausible address for this peer
387 * and transport, GNUNET_SYSERR if not 388 * and transport, GNUNET_SYSERR if not
388 */ 389 */
389typedef int 390typedef int (*GNUNET_TRANSPORT_CheckAddress) (void *cls, const void *addr,
390 (*GNUNET_TRANSPORT_CheckAddress) (void *cls, 391 size_t addrlen);
391 const void *addr, size_t addrlen);
392 392
393 393
394/** 394/**