summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing2.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/transport/transport-testing2.h
parentfbb71d527c7d6babf269a8fefce1db291b9f7068 (diff)
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/transport/transport-testing2.h')
-rw-r--r--src/transport/transport-testing2.h62
1 files changed, 41 insertions, 21 deletions
diff --git a/src/transport/transport-testing2.h b/src/transport/transport-testing2.h
index 8954e20d1..b136be125 100644
--- a/src/transport/transport-testing2.h
+++ b/src/transport/transport-testing2.h
@@ -59,8 +59,12 @@ struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission;
*/
typedef void
(*GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback)(void *cls,
- struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h,
- enum GNUNET_TRANSPORT_CommunicatorCharacteristics cc,
+ struct
+ GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle
+ *tc_h,
+ enum
+ GNUNET_TRANSPORT_CommunicatorCharacteristics
+ cc,
char *address_prefix);
@@ -76,9 +80,12 @@ typedef void
*/
typedef void
(*GNUNET_TRANSPORT_TESTING_AddAddressCallback)(void *cls,
- struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h,
+ struct
+ GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle
+ *tc_h,
const char *address,
- struct GNUNET_TIME_Relative expiration,
+ struct GNUNET_TIME_Relative
+ expiration,
uint32_t aid,
enum GNUNET_NetworkType nt);
@@ -92,7 +99,9 @@ typedef void
*/
typedef void
(*GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback)(void *cls,
- struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h,
+ struct
+ GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle
+ *tc_h,
int will_try);
@@ -105,8 +114,12 @@ typedef void
*/
typedef void
(*GNUNET_TRANSPORT_TESTING_AddQueueCallback)(void *cls,
- struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h,
- struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue);
+ struct
+ GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle
+ *tc_h,
+ struct
+ GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue
+ *tc_queue);
/**
@@ -118,8 +131,11 @@ typedef void
*/
typedef void
(*GNUNET_TRANSPORT_TESTING_IncomingMessageCallback)(void *cls,
- struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h,
- const struct GNUNET_MessageHeader *msg);
+ struct
+ GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle
+ *tc_h,
+ const struct
+ GNUNET_MessageHeader *msg);
/**
@@ -138,11 +154,12 @@ typedef void
* @return Handle to the communicator duo
*/
struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *
-GNUNET_TRANSPORT_TESTING_transport_communicator_service_start(
+GNUNET_TRANSPORT_TESTING_transport_communicator_service_start (
const char *service_name,
const char *binary_name,
const char *cfg_filename,
- GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback communicator_available_cb,
+ GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback
+ communicator_available_cb,
GNUNET_TRANSPORT_TESTING_AddAddressCallback add_address_cb,
GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback queue_create_reply_cb,
GNUNET_TRANSPORT_TESTING_AddQueueCallback add_queue_cb,
@@ -158,10 +175,13 @@ GNUNET_TRANSPORT_TESTING_transport_communicator_service_start(
* @param address For which address
*/
void
-GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue
- (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h,
- const struct GNUNET_PeerIdentity *peer_id,
- const char *address);
+GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue (struct
+ GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle
+ *tc_h,
+ const struct
+ GNUNET_PeerIdentity
+ *peer_id,
+ const char *address);
/**
@@ -174,10 +194,10 @@ GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue
* @return Handle to the transmission
*/
struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission *
-GNUNET_TRANSPORT_TESTING_transport_communicator_send
- (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue,
- const void *payload,
- size_t payload_size /*,
+GNUNET_TRANSPORT_TESTING_transport_communicator_send (struct
+ GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue
+ *tc_queue,
+ const void *payload,
+ size_t payload_size /*,
GNUNET_TRANSPORT_TESTING_SuccessStatus cb,
- void *cb_cls*/);
-
+ void *cb_cls*/ );