diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
commit | c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch) | |
tree | cac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/include/gnunet_transport_service.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/include/gnunet_transport_service.h')
-rw-r--r-- | src/include/gnunet_transport_service.h | 67 |
1 files changed, 35 insertions, 32 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h index 735e216e8..d190eff92 100644 --- a/src/include/gnunet_transport_service.h +++ b/src/include/gnunet_transport_service.h | |||
@@ -75,10 +75,10 @@ struct GNUNET_TRANSPORT_OfferHelloHandle; | |||
75 | * | 75 | * |
76 | */ | 76 | */ |
77 | struct GNUNET_TRANSPORT_OfferHelloHandle * | 77 | struct GNUNET_TRANSPORT_OfferHelloHandle * |
78 | GNUNET_TRANSPORT_offer_hello(const struct GNUNET_CONFIGURATION_Handle *cfg, | 78 | GNUNET_TRANSPORT_offer_hello (const struct GNUNET_CONFIGURATION_Handle *cfg, |
79 | const struct GNUNET_MessageHeader *hello, | 79 | const struct GNUNET_MessageHeader *hello, |
80 | GNUNET_SCHEDULER_TaskCallback cont, | 80 | GNUNET_SCHEDULER_TaskCallback cont, |
81 | void *cont_cls); | 81 | void *cont_cls); |
82 | 82 | ||
83 | 83 | ||
84 | /** | 84 | /** |
@@ -87,7 +87,7 @@ GNUNET_TRANSPORT_offer_hello(const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
87 | * @param ohh the `struct GNUNET_TRANSPORT_OfferHelloHandle` to cancel | 87 | * @param ohh the `struct GNUNET_TRANSPORT_OfferHelloHandle` to cancel |
88 | */ | 88 | */ |
89 | void | 89 | void |
90 | GNUNET_TRANSPORT_offer_hello_cancel( | 90 | GNUNET_TRANSPORT_offer_hello_cancel ( |
91 | struct GNUNET_TRANSPORT_OfferHelloHandle *ohh); | 91 | struct GNUNET_TRANSPORT_OfferHelloHandle *ohh); |
92 | 92 | ||
93 | 93 | ||
@@ -133,7 +133,7 @@ typedef void (*GNUNET_TRANSPORT_AddressToStringCallback) (void *cls, | |||
133 | * @return handle to cancel the operation, NULL on error | 133 | * @return handle to cancel the operation, NULL on error |
134 | */ | 134 | */ |
135 | struct GNUNET_TRANSPORT_AddressToStringContext * | 135 | struct GNUNET_TRANSPORT_AddressToStringContext * |
136 | GNUNET_TRANSPORT_address_to_string( | 136 | GNUNET_TRANSPORT_address_to_string ( |
137 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 137 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
138 | const struct GNUNET_HELLO_Address *address, | 138 | const struct GNUNET_HELLO_Address *address, |
139 | int numeric, | 139 | int numeric, |
@@ -148,7 +148,7 @@ GNUNET_TRANSPORT_address_to_string( | |||
148 | * @param alc the context handle | 148 | * @param alc the context handle |
149 | */ | 149 | */ |
150 | void | 150 | void |
151 | GNUNET_TRANSPORT_address_to_string_cancel( | 151 | GNUNET_TRANSPORT_address_to_string_cancel ( |
152 | struct GNUNET_TRANSPORT_AddressToStringContext *alc); | 152 | struct GNUNET_TRANSPORT_AddressToStringContext *alc); |
153 | 153 | ||
154 | 154 | ||
@@ -211,7 +211,8 @@ GNUNET_TRANSPORT_address_to_string_cancel( | |||
211 | * to 0). | 211 | * to 0). |
212 | * | 212 | * |
213 | */ | 213 | */ |
214 | enum GNUNET_TRANSPORT_PeerState { | 214 | enum GNUNET_TRANSPORT_PeerState |
215 | { | ||
215 | /** | 216 | /** |
216 | * Fresh peer or completely disconnected | 217 | * Fresh peer or completely disconnected |
217 | */ | 218 | */ |
@@ -288,7 +289,7 @@ enum GNUNET_TRANSPORT_PeerState { | |||
288 | * @param state the state | 289 | * @param state the state |
289 | */ | 290 | */ |
290 | const char * | 291 | const char * |
291 | GNUNET_TRANSPORT_ps2s(enum GNUNET_TRANSPORT_PeerState state); | 292 | GNUNET_TRANSPORT_ps2s (enum GNUNET_TRANSPORT_PeerState state); |
292 | 293 | ||
293 | 294 | ||
294 | /** | 295 | /** |
@@ -298,7 +299,7 @@ GNUNET_TRANSPORT_ps2s(enum GNUNET_TRANSPORT_PeerState state); | |||
298 | * @return #GNUNET_YES or #GNUNET_NO | 299 | * @return #GNUNET_YES or #GNUNET_NO |
299 | */ | 300 | */ |
300 | int | 301 | int |
301 | GNUNET_TRANSPORT_is_connected(enum GNUNET_TRANSPORT_PeerState state); | 302 | GNUNET_TRANSPORT_is_connected (enum GNUNET_TRANSPORT_PeerState state); |
302 | 303 | ||
303 | 304 | ||
304 | /** | 305 | /** |
@@ -360,7 +361,7 @@ typedef void (*GNUNET_TRANSPORT_PeerIterateCallback) ( | |||
360 | * @param peer_callback_cls closure for @a peer_callback | 361 | * @param peer_callback_cls closure for @a peer_callback |
361 | */ | 362 | */ |
362 | struct GNUNET_TRANSPORT_PeerMonitoringContext * | 363 | struct GNUNET_TRANSPORT_PeerMonitoringContext * |
363 | GNUNET_TRANSPORT_monitor_peers( | 364 | GNUNET_TRANSPORT_monitor_peers ( |
364 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 365 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
365 | const struct GNUNET_PeerIdentity *peer, | 366 | const struct GNUNET_PeerIdentity *peer, |
366 | int one_shot, | 367 | int one_shot, |
@@ -374,7 +375,7 @@ GNUNET_TRANSPORT_monitor_peers( | |||
374 | * @param pic handle for the request to cancel | 375 | * @param pic handle for the request to cancel |
375 | */ | 376 | */ |
376 | void | 377 | void |
377 | GNUNET_TRANSPORT_monitor_peers_cancel( | 378 | GNUNET_TRANSPORT_monitor_peers_cancel ( |
378 | struct GNUNET_TRANSPORT_PeerMonitoringContext *pic); | 379 | struct GNUNET_TRANSPORT_PeerMonitoringContext *pic); |
379 | 380 | ||
380 | 381 | ||
@@ -413,9 +414,9 @@ typedef int (*GNUNET_TRANSPORT_BlacklistCallback) ( | |||
413 | * @return NULL on error, otherwise handle for cancellation | 414 | * @return NULL on error, otherwise handle for cancellation |
414 | */ | 415 | */ |
415 | struct GNUNET_TRANSPORT_Blacklist * | 416 | struct GNUNET_TRANSPORT_Blacklist * |
416 | GNUNET_TRANSPORT_blacklist(const struct GNUNET_CONFIGURATION_Handle *cfg, | 417 | GNUNET_TRANSPORT_blacklist (const struct GNUNET_CONFIGURATION_Handle *cfg, |
417 | GNUNET_TRANSPORT_BlacklistCallback cb, | 418 | GNUNET_TRANSPORT_BlacklistCallback cb, |
418 | void *cb_cls); | 419 | void *cb_cls); |
419 | 420 | ||
420 | 421 | ||
421 | /** | 422 | /** |
@@ -425,7 +426,7 @@ GNUNET_TRANSPORT_blacklist(const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
425 | * @param br handle of the request that is to be cancelled | 426 | * @param br handle of the request that is to be cancelled |
426 | */ | 427 | */ |
427 | void | 428 | void |
428 | GNUNET_TRANSPORT_blacklist_cancel(struct GNUNET_TRANSPORT_Blacklist *br); | 429 | GNUNET_TRANSPORT_blacklist_cancel (struct GNUNET_TRANSPORT_Blacklist *br); |
429 | 430 | ||
430 | 431 | ||
431 | /** | 432 | /** |
@@ -443,7 +444,8 @@ struct GNUNET_TRANSPORT_PluginSession; | |||
443 | /** | 444 | /** |
444 | * Possible states of a session in a plugin. | 445 | * Possible states of a session in a plugin. |
445 | */ | 446 | */ |
446 | enum GNUNET_TRANSPORT_SessionState { | 447 | enum GNUNET_TRANSPORT_SessionState |
448 | { | ||
447 | /** | 449 | /** |
448 | * The session was created (first call for each session object). | 450 | * The session was created (first call for each session object). |
449 | */ | 451 | */ |
@@ -476,7 +478,8 @@ enum GNUNET_TRANSPORT_SessionState { | |||
476 | /** | 478 | /** |
477 | * Information about a plugin's session. | 479 | * Information about a plugin's session. |
478 | */ | 480 | */ |
479 | struct GNUNET_TRANSPORT_SessionInfo { | 481 | struct GNUNET_TRANSPORT_SessionInfo |
482 | { | ||
480 | /** | 483 | /** |
481 | * New state of the session. | 484 | * New state of the session. |
482 | */ | 485 | */ |
@@ -555,9 +558,9 @@ typedef void (*GNUNET_TRANSPORT_SessionMonitorCallback) ( | |||
555 | * @return NULL on error, otherwise handle for cancellation | 558 | * @return NULL on error, otherwise handle for cancellation |
556 | */ | 559 | */ |
557 | struct GNUNET_TRANSPORT_PluginMonitor * | 560 | struct GNUNET_TRANSPORT_PluginMonitor * |
558 | GNUNET_TRANSPORT_monitor_plugins(const struct GNUNET_CONFIGURATION_Handle *cfg, | 561 | GNUNET_TRANSPORT_monitor_plugins (const struct GNUNET_CONFIGURATION_Handle *cfg, |
559 | GNUNET_TRANSPORT_SessionMonitorCallback cb, | 562 | GNUNET_TRANSPORT_SessionMonitorCallback cb, |
560 | void *cb_cls); | 563 | void *cb_cls); |
561 | 564 | ||
562 | 565 | ||
563 | /** | 566 | /** |
@@ -568,7 +571,7 @@ GNUNET_TRANSPORT_monitor_plugins(const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
568 | * @param pm handle of the request that is to be cancelled | 571 | * @param pm handle of the request that is to be cancelled |
569 | */ | 572 | */ |
570 | void | 573 | void |
571 | GNUNET_TRANSPORT_monitor_plugins_cancel( | 574 | GNUNET_TRANSPORT_monitor_plugins_cancel ( |
572 | struct GNUNET_TRANSPORT_PluginMonitor *pm); | 575 | struct GNUNET_TRANSPORT_PluginMonitor *pm); |
573 | 576 | ||
574 | 577 | ||
@@ -653,13 +656,13 @@ typedef void (*GNUNET_TRANSPORT_NotifyExcessBandwidth) ( | |||
653 | * @return NULL on error | 656 | * @return NULL on error |
654 | */ | 657 | */ |
655 | struct GNUNET_TRANSPORT_CoreHandle * | 658 | struct GNUNET_TRANSPORT_CoreHandle * |
656 | GNUNET_TRANSPORT_core_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, | 659 | GNUNET_TRANSPORT_core_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, |
657 | const struct GNUNET_PeerIdentity *self, | 660 | const struct GNUNET_PeerIdentity *self, |
658 | const struct GNUNET_MQ_MessageHandler *handlers, | 661 | const struct GNUNET_MQ_MessageHandler *handlers, |
659 | void *cls, | 662 | void *cls, |
660 | GNUNET_TRANSPORT_NotifyConnect nc, | 663 | GNUNET_TRANSPORT_NotifyConnect nc, |
661 | GNUNET_TRANSPORT_NotifyDisconnect nd, | 664 | GNUNET_TRANSPORT_NotifyDisconnect nd, |
662 | GNUNET_TRANSPORT_NotifyExcessBandwidth neb); | 665 | GNUNET_TRANSPORT_NotifyExcessBandwidth neb); |
663 | 666 | ||
664 | 667 | ||
665 | /** | 668 | /** |
@@ -668,7 +671,7 @@ GNUNET_TRANSPORT_core_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
668 | * @param handle handle returned from connect | 671 | * @param handle handle returned from connect |
669 | */ | 672 | */ |
670 | void | 673 | void |
671 | GNUNET_TRANSPORT_core_disconnect(struct GNUNET_TRANSPORT_CoreHandle *handle); | 674 | GNUNET_TRANSPORT_core_disconnect (struct GNUNET_TRANSPORT_CoreHandle *handle); |
672 | 675 | ||
673 | 676 | ||
674 | /** | 677 | /** |
@@ -679,8 +682,8 @@ GNUNET_TRANSPORT_core_disconnect(struct GNUNET_TRANSPORT_CoreHandle *handle); | |||
679 | * @return NULL if disconnected, otherwise message queue for @a peer | 682 | * @return NULL if disconnected, otherwise message queue for @a peer |
680 | */ | 683 | */ |
681 | struct GNUNET_MQ_Handle * | 684 | struct GNUNET_MQ_Handle * |
682 | GNUNET_TRANSPORT_core_get_mq(struct GNUNET_TRANSPORT_CoreHandle *handle, | 685 | GNUNET_TRANSPORT_core_get_mq (struct GNUNET_TRANSPORT_CoreHandle *handle, |
683 | const struct GNUNET_PeerIdentity *peer); | 686 | const struct GNUNET_PeerIdentity *peer); |
684 | 687 | ||
685 | 688 | ||
686 | #if 0 /* keep Emacsens' auto-indent happy */ | 689 | #if 0 /* keep Emacsens' auto-indent happy */ |