diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-02 12:40:32 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-02 12:40:32 +0000 |
commit | fd08f728df7a07c0c8dc5433e16e6dcc3e512dd7 (patch) | |
tree | f4e2270b869c666c8527ce87fe3ddf0c035d5f75 /src/include/gnunet_transport_plugin.h | |
parent | ae290b55826801db979c82f512a240bd3bf4d5c1 (diff) | |
download | gnunet-fd08f728df7a07c0c8dc5433e16e6dcc3e512dd7.tar.gz gnunet-fd08f728df7a07c0c8dc5433e16e6dcc3e512dd7.zip |
fixed doxygen documentation
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r-- | src/include/gnunet_transport_plugin.h | 64 |
1 files changed, 27 insertions, 37 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h index 1579980ea..c42c360d9 100644 --- a/src/include/gnunet_transport_plugin.h +++ b/src/include/gnunet_transport_plugin.h | |||
@@ -76,8 +76,8 @@ struct SessionHeader | |||
76 | * @param session which session is being destoyed | 76 | * @param session which session is being destoyed |
77 | */ | 77 | */ |
78 | typedef void (*GNUNET_TRANSPORT_SessionEnd) (void *cls, | 78 | typedef void (*GNUNET_TRANSPORT_SessionEnd) (void *cls, |
79 | const struct GNUNET_PeerIdentity * | 79 | const struct GNUNET_PeerIdentity *peer, |
80 | peer, struct Session * session); | 80 | struct Session * session); |
81 | 81 | ||
82 | 82 | ||
83 | /** | 83 | /** |
@@ -182,7 +182,8 @@ typedef void | |||
182 | * @param addrlen length of the address | 182 | * @param addrlen length of the address |
183 | * @param dest_plugin plugin to use this address with | 183 | * @param dest_plugin plugin to use this address with |
184 | */ | 184 | */ |
185 | typedef void (*GNUNET_TRANSPORT_AddressNotification) (void *cls, int add_remove, | 185 | typedef void (*GNUNET_TRANSPORT_AddressNotification) (void *cls, |
186 | int add_remove, | ||
186 | const void *addr, | 187 | const void *addr, |
187 | size_t addrlen, | 188 | size_t addrlen, |
188 | const char *dest_plugin); | 189 | const char *dest_plugin); |
@@ -203,14 +204,9 @@ typedef void (*GNUNET_TRANSPORT_AddressNotification) (void *cls, int add_remove, | |||
203 | * @return how long to wait until reading more from this peer | 204 | * @return how long to wait until reading more from this peer |
204 | * (to enforce inbound quotas) | 205 | * (to enforce inbound quotas) |
205 | */ | 206 | */ |
206 | typedef struct GNUNET_TIME_Relative (*GNUNET_TRANSPORT_TrafficReport) (void | 207 | typedef struct GNUNET_TIME_Relative (*GNUNET_TRANSPORT_TrafficReport) (void *cls, |
207 | *cls, | 208 | const struct GNUNET_PeerIdentity* peer, |
208 | const | 209 | size_t amount_recved); |
209 | struct | ||
210 | GNUNET_PeerIdentity | ||
211 | * peer, | ||
212 | size_t | ||
213 | amount_recved); | ||
214 | 210 | ||
215 | 211 | ||
216 | /** | 212 | /** |
@@ -325,12 +321,10 @@ struct GNUNET_TRANSPORT_PluginEnvironment | |||
325 | * 0 if result == GNUNET_SYSERR | 321 | * 0 if result == GNUNET_SYSERR |
326 | */ | 322 | */ |
327 | typedef void (*GNUNET_TRANSPORT_TransmitContinuation) (void *cls, | 323 | typedef void (*GNUNET_TRANSPORT_TransmitContinuation) (void *cls, |
328 | const struct | 324 | const struct GNUNET_PeerIdentity *target, |
329 | GNUNET_PeerIdentity * | 325 | int result, |
330 | target, | 326 | size_t size_payload, |
331 | int result, | 327 | size_t size_on_wire); |
332 | size_t size_payload, | ||
333 | size_t size_on_wire); | ||
334 | 328 | ||
335 | /** | 329 | /** |
336 | * The new send function with just the session and no address | 330 | * The new send function with just the session and no address |
@@ -348,7 +342,7 @@ typedef void (*GNUNET_TRANSPORT_TransmitContinuation) (void *cls, | |||
348 | * @param msgbuf_size number of bytes in 'msgbuf' | 342 | * @param msgbuf_size number of bytes in 'msgbuf' |
349 | * @param priority how important is the message (most plugins will | 343 | * @param priority how important is the message (most plugins will |
350 | * ignore message priority and just FIFO) | 344 | * ignore message priority and just FIFO) |
351 | * @param timeout how long to wait at most for the transmission (does not | 345 | * @param to how long to wait at most for the transmission (does not |
352 | * require plugins to discard the message after the timeout, | 346 | * require plugins to discard the message after the timeout, |
353 | * just advisory for the desired delay; most plugins will ignore | 347 | * just advisory for the desired delay; most plugins will ignore |
354 | * this as well) | 348 | * this as well) |
@@ -363,7 +357,8 @@ typedef void (*GNUNET_TRANSPORT_TransmitContinuation) (void *cls, | |||
363 | */ | 357 | */ |
364 | typedef ssize_t (*GNUNET_TRANSPORT_TransmitFunction) (void *cls, | 358 | typedef ssize_t (*GNUNET_TRANSPORT_TransmitFunction) (void *cls, |
365 | struct Session *session, | 359 | struct Session *session, |
366 | const char *msgbuf, size_t msgbuf_size, | 360 | const char *msgbuf, |
361 | size_t msgbuf_size, | ||
367 | unsigned int priority, | 362 | unsigned int priority, |
368 | struct GNUNET_TIME_Relative to, | 363 | struct GNUNET_TIME_Relative to, |
369 | GNUNET_TRANSPORT_TransmitContinuation cont, | 364 | GNUNET_TRANSPORT_TransmitContinuation cont, |
@@ -387,9 +382,7 @@ typedef ssize_t (*GNUNET_TRANSPORT_TransmitFunction) (void *cls, | |||
387 | * to be cancelled | 382 | * to be cancelled |
388 | */ | 383 | */ |
389 | typedef void (*GNUNET_TRANSPORT_DisconnectFunction) (void *cls, | 384 | typedef void (*GNUNET_TRANSPORT_DisconnectFunction) (void *cls, |
390 | const struct | 385 | const struct GNUNET_PeerIdentity *target); |
391 | GNUNET_PeerIdentity * | ||
392 | target); | ||
393 | 386 | ||
394 | 387 | ||
395 | /** | 388 | /** |
@@ -397,7 +390,7 @@ typedef void (*GNUNET_TRANSPORT_DisconnectFunction) (void *cls, | |||
397 | * each human-readable address obtained. | 390 | * each human-readable address obtained. |
398 | * | 391 | * |
399 | * @param cls closure | 392 | * @param cls closure |
400 | * @param hostname one of the names for the host, NULL | 393 | * @param address one of the names for the host, NULL |
401 | * on the last call to the callback | 394 | * on the last call to the callback |
402 | */ | 395 | */ |
403 | typedef void (*GNUNET_TRANSPORT_AddressStringCallback) (void *cls, | 396 | typedef void (*GNUNET_TRANSPORT_AddressStringCallback) (void *cls, |
@@ -409,7 +402,7 @@ typedef void (*GNUNET_TRANSPORT_AddressStringCallback) (void *cls, | |||
409 | * format. | 402 | * format. |
410 | * | 403 | * |
411 | * @param cls closure | 404 | * @param cls closure |
412 | * @param name name of the transport that generated the address | 405 | * @param type name of the transport that generated the address |
413 | * @param addr one of the addresses of the host, NULL for the last address | 406 | * @param addr one of the addresses of the host, NULL for the last address |
414 | * the specific address format depends on the transport | 407 | * the specific address format depends on the transport |
415 | * @param addrlen length of the address | 408 | * @param addrlen length of the address |
@@ -419,15 +412,13 @@ typedef void (*GNUNET_TRANSPORT_AddressStringCallback) (void *cls, | |||
419 | * @param asc_cls closure for asc | 412 | * @param asc_cls closure for asc |
420 | */ | 413 | */ |
421 | typedef void (*GNUNET_TRANSPORT_AddressPrettyPrinter) (void *cls, | 414 | typedef void (*GNUNET_TRANSPORT_AddressPrettyPrinter) (void *cls, |
422 | const char *type, | 415 | const char *type, |
423 | const void *addr, | 416 | const void *addr, |
424 | size_t addrlen, | 417 | size_t addrlen, |
425 | int numeric, | 418 | int numeric, |
426 | struct | 419 | struct GNUNET_TIME_Relative timeout, |
427 | GNUNET_TIME_Relative | 420 | GNUNET_TRANSPORT_AddressStringCallback asc, |
428 | timeout, | 421 | void *asc_cls); |
429 | GNUNET_TRANSPORT_AddressStringCallback | ||
430 | asc, void *asc_cls); | ||
431 | 422 | ||
432 | 423 | ||
433 | /** | 424 | /** |
@@ -444,7 +435,8 @@ typedef void (*GNUNET_TRANSPORT_AddressPrettyPrinter) (void *cls, | |||
444 | * @return GNUNET_OK if this is a plausible address for this peer | 435 | * @return GNUNET_OK if this is a plausible address for this peer |
445 | * and transport, GNUNET_SYSERR if not | 436 | * and transport, GNUNET_SYSERR if not |
446 | */ | 437 | */ |
447 | typedef int (*GNUNET_TRANSPORT_CheckAddress) (void *cls, const void *addr, | 438 | typedef int (*GNUNET_TRANSPORT_CheckAddress) (void *cls, |
439 | const void *addr, | ||
448 | size_t addrlen); | 440 | size_t addrlen); |
449 | 441 | ||
450 | /** | 442 | /** |
@@ -453,9 +445,7 @@ typedef int (*GNUNET_TRANSPORT_CheckAddress) (void *cls, const void *addr, | |||
453 | * notify us by calling the env->session_end function | 445 | * notify us by calling the env->session_end function |
454 | * | 446 | * |
455 | * @param cls the plugin | 447 | * @param cls the plugin |
456 | * @param target the neighbour id | 448 | * @param address the hello address |
457 | * @param addr pointer to the address | ||
458 | * @param addrlen length of addr | ||
459 | * @return the session if the address is valid, NULL otherwise | 449 | * @return the session if the address is valid, NULL otherwise |
460 | */ | 450 | */ |
461 | typedef struct Session * (*GNUNET_TRANSPORT_CreateSession) (void *cls, | 451 | typedef struct Session * (*GNUNET_TRANSPORT_CreateSession) (void *cls, |