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/transport/transport-testing2.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/transport/transport-testing2.h')
-rw-r--r-- | src/transport/transport-testing2.h | 62 |
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; | |||
59 | */ | 59 | */ |
60 | typedef void | 60 | typedef void |
61 | (*GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback)(void *cls, | 61 | (*GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback)(void *cls, |
62 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | 62 | struct |
63 | enum GNUNET_TRANSPORT_CommunicatorCharacteristics cc, | 63 | GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle |
64 | *tc_h, | ||
65 | enum | ||
66 | GNUNET_TRANSPORT_CommunicatorCharacteristics | ||
67 | cc, | ||
64 | char *address_prefix); | 68 | char *address_prefix); |
65 | 69 | ||
66 | 70 | ||
@@ -76,9 +80,12 @@ typedef void | |||
76 | */ | 80 | */ |
77 | typedef void | 81 | typedef void |
78 | (*GNUNET_TRANSPORT_TESTING_AddAddressCallback)(void *cls, | 82 | (*GNUNET_TRANSPORT_TESTING_AddAddressCallback)(void *cls, |
79 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | 83 | struct |
84 | GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle | ||
85 | *tc_h, | ||
80 | const char *address, | 86 | const char *address, |
81 | struct GNUNET_TIME_Relative expiration, | 87 | struct GNUNET_TIME_Relative |
88 | expiration, | ||
82 | uint32_t aid, | 89 | uint32_t aid, |
83 | enum GNUNET_NetworkType nt); | 90 | enum GNUNET_NetworkType nt); |
84 | 91 | ||
@@ -92,7 +99,9 @@ typedef void | |||
92 | */ | 99 | */ |
93 | typedef void | 100 | typedef void |
94 | (*GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback)(void *cls, | 101 | (*GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback)(void *cls, |
95 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | 102 | struct |
103 | GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle | ||
104 | *tc_h, | ||
96 | int will_try); | 105 | int will_try); |
97 | 106 | ||
98 | 107 | ||
@@ -105,8 +114,12 @@ typedef void | |||
105 | */ | 114 | */ |
106 | typedef void | 115 | typedef void |
107 | (*GNUNET_TRANSPORT_TESTING_AddQueueCallback)(void *cls, | 116 | (*GNUNET_TRANSPORT_TESTING_AddQueueCallback)(void *cls, |
108 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | 117 | struct |
109 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue); | 118 | GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle |
119 | *tc_h, | ||
120 | struct | ||
121 | GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue | ||
122 | *tc_queue); | ||
110 | 123 | ||
111 | 124 | ||
112 | /** | 125 | /** |
@@ -118,8 +131,11 @@ typedef void | |||
118 | */ | 131 | */ |
119 | typedef void | 132 | typedef void |
120 | (*GNUNET_TRANSPORT_TESTING_IncomingMessageCallback)(void *cls, | 133 | (*GNUNET_TRANSPORT_TESTING_IncomingMessageCallback)(void *cls, |
121 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | 134 | struct |
122 | const struct GNUNET_MessageHeader *msg); | 135 | GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle |
136 | *tc_h, | ||
137 | const struct | ||
138 | GNUNET_MessageHeader *msg); | ||
123 | 139 | ||
124 | 140 | ||
125 | /** | 141 | /** |
@@ -138,11 +154,12 @@ typedef void | |||
138 | * @return Handle to the communicator duo | 154 | * @return Handle to the communicator duo |
139 | */ | 155 | */ |
140 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle * | 156 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle * |
141 | GNUNET_TRANSPORT_TESTING_transport_communicator_service_start( | 157 | GNUNET_TRANSPORT_TESTING_transport_communicator_service_start ( |
142 | const char *service_name, | 158 | const char *service_name, |
143 | const char *binary_name, | 159 | const char *binary_name, |
144 | const char *cfg_filename, | 160 | const char *cfg_filename, |
145 | GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback communicator_available_cb, | 161 | GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback |
162 | communicator_available_cb, | ||
146 | GNUNET_TRANSPORT_TESTING_AddAddressCallback add_address_cb, | 163 | GNUNET_TRANSPORT_TESTING_AddAddressCallback add_address_cb, |
147 | GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback queue_create_reply_cb, | 164 | GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback queue_create_reply_cb, |
148 | GNUNET_TRANSPORT_TESTING_AddQueueCallback add_queue_cb, | 165 | GNUNET_TRANSPORT_TESTING_AddQueueCallback add_queue_cb, |
@@ -158,10 +175,13 @@ GNUNET_TRANSPORT_TESTING_transport_communicator_service_start( | |||
158 | * @param address For which address | 175 | * @param address For which address |
159 | */ | 176 | */ |
160 | void | 177 | void |
161 | GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue | 178 | GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue (struct |
162 | (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | 179 | GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle |
163 | const struct GNUNET_PeerIdentity *peer_id, | 180 | *tc_h, |
164 | const char *address); | 181 | const struct |
182 | GNUNET_PeerIdentity | ||
183 | *peer_id, | ||
184 | const char *address); | ||
165 | 185 | ||
166 | 186 | ||
167 | /** | 187 | /** |
@@ -174,10 +194,10 @@ GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue | |||
174 | * @return Handle to the transmission | 194 | * @return Handle to the transmission |
175 | */ | 195 | */ |
176 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission * | 196 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission * |
177 | GNUNET_TRANSPORT_TESTING_transport_communicator_send | 197 | GNUNET_TRANSPORT_TESTING_transport_communicator_send (struct |
178 | (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue, | 198 | GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue |
179 | const void *payload, | 199 | *tc_queue, |
180 | size_t payload_size /*, | 200 | const void *payload, |
201 | size_t payload_size /*, | ||
181 | GNUNET_TRANSPORT_TESTING_SuccessStatus cb, | 202 | GNUNET_TRANSPORT_TESTING_SuccessStatus cb, |
182 | void *cb_cls*/); | 203 | void *cb_cls*/ ); |
183 | |||