aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
commitc4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch)
treecac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/include/gnunet_transport_service.h
parentfbb71d527c7d6babf269a8fefce1db291b9f7068 (diff)
downloadgnunet-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.h67
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 */
77struct GNUNET_TRANSPORT_OfferHelloHandle * 77struct GNUNET_TRANSPORT_OfferHelloHandle *
78GNUNET_TRANSPORT_offer_hello(const struct GNUNET_CONFIGURATION_Handle *cfg, 78GNUNET_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 */
89void 89void
90GNUNET_TRANSPORT_offer_hello_cancel( 90GNUNET_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 */
135struct GNUNET_TRANSPORT_AddressToStringContext * 135struct GNUNET_TRANSPORT_AddressToStringContext *
136GNUNET_TRANSPORT_address_to_string( 136GNUNET_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 */
150void 150void
151GNUNET_TRANSPORT_address_to_string_cancel( 151GNUNET_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 */
214enum GNUNET_TRANSPORT_PeerState { 214enum 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 */
290const char * 291const char *
291GNUNET_TRANSPORT_ps2s(enum GNUNET_TRANSPORT_PeerState state); 292GNUNET_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 */
300int 301int
301GNUNET_TRANSPORT_is_connected(enum GNUNET_TRANSPORT_PeerState state); 302GNUNET_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 */
362struct GNUNET_TRANSPORT_PeerMonitoringContext * 363struct GNUNET_TRANSPORT_PeerMonitoringContext *
363GNUNET_TRANSPORT_monitor_peers( 364GNUNET_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 */
376void 377void
377GNUNET_TRANSPORT_monitor_peers_cancel( 378GNUNET_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 */
415struct GNUNET_TRANSPORT_Blacklist * 416struct GNUNET_TRANSPORT_Blacklist *
416GNUNET_TRANSPORT_blacklist(const struct GNUNET_CONFIGURATION_Handle *cfg, 417GNUNET_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 */
427void 428void
428GNUNET_TRANSPORT_blacklist_cancel(struct GNUNET_TRANSPORT_Blacklist *br); 429GNUNET_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 */
446enum GNUNET_TRANSPORT_SessionState { 447enum 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 */
479struct GNUNET_TRANSPORT_SessionInfo { 481struct 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 */
557struct GNUNET_TRANSPORT_PluginMonitor * 560struct GNUNET_TRANSPORT_PluginMonitor *
558GNUNET_TRANSPORT_monitor_plugins(const struct GNUNET_CONFIGURATION_Handle *cfg, 561GNUNET_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 */
570void 573void
571GNUNET_TRANSPORT_monitor_plugins_cancel( 574GNUNET_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 */
655struct GNUNET_TRANSPORT_CoreHandle * 658struct GNUNET_TRANSPORT_CoreHandle *
656GNUNET_TRANSPORT_core_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, 659GNUNET_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 */
670void 673void
671GNUNET_TRANSPORT_core_disconnect(struct GNUNET_TRANSPORT_CoreHandle *handle); 674GNUNET_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 */
681struct GNUNET_MQ_Handle * 684struct GNUNET_MQ_Handle *
682GNUNET_TRANSPORT_core_get_mq(struct GNUNET_TRANSPORT_CoreHandle *handle, 685GNUNET_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 */