diff options
Diffstat (limited to 'src/transport/transport-testing2.h')
-rw-r--r-- | src/transport/transport-testing2.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/src/transport/transport-testing2.h b/src/transport/transport-testing2.h index fbc1927d9..8954e20d1 100644 --- a/src/transport/transport-testing2.h +++ b/src/transport/transport-testing2.h | |||
@@ -16,7 +16,7 @@ | |||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file transport/transport-testing2.h | 22 | * @file transport/transport-testing2.h |
@@ -59,9 +59,9 @@ 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 GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, |
63 | enum GNUNET_TRANSPORT_CommunicatorCharacteristics cc, | 63 | enum GNUNET_TRANSPORT_CommunicatorCharacteristics cc, |
64 | char *address_prefix); | 64 | char *address_prefix); |
65 | 65 | ||
66 | 66 | ||
67 | /** | 67 | /** |
@@ -76,11 +76,11 @@ typedef void | |||
76 | */ | 76 | */ |
77 | typedef void | 77 | typedef void |
78 | (*GNUNET_TRANSPORT_TESTING_AddAddressCallback)(void *cls, | 78 | (*GNUNET_TRANSPORT_TESTING_AddAddressCallback)(void *cls, |
79 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | 79 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, |
80 | const char *address, | 80 | const char *address, |
81 | struct GNUNET_TIME_Relative expiration, | 81 | struct GNUNET_TIME_Relative expiration, |
82 | uint32_t aid, | 82 | uint32_t aid, |
83 | enum GNUNET_NetworkType nt); | 83 | enum GNUNET_NetworkType nt); |
84 | 84 | ||
85 | 85 | ||
86 | /** | 86 | /** |
@@ -92,8 +92,8 @@ typedef void | |||
92 | */ | 92 | */ |
93 | typedef void | 93 | typedef void |
94 | (*GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback)(void *cls, | 94 | (*GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback)(void *cls, |
95 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | 95 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, |
96 | int will_try); | 96 | int will_try); |
97 | 97 | ||
98 | 98 | ||
99 | /** | 99 | /** |
@@ -105,8 +105,8 @@ typedef void | |||
105 | */ | 105 | */ |
106 | typedef void | 106 | typedef void |
107 | (*GNUNET_TRANSPORT_TESTING_AddQueueCallback)(void *cls, | 107 | (*GNUNET_TRANSPORT_TESTING_AddQueueCallback)(void *cls, |
108 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | 108 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, |
109 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue); | 109 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue); |
110 | 110 | ||
111 | 111 | ||
112 | /** | 112 | /** |
@@ -118,8 +118,8 @@ typedef void | |||
118 | */ | 118 | */ |
119 | typedef void | 119 | typedef void |
120 | (*GNUNET_TRANSPORT_TESTING_IncomingMessageCallback)(void *cls, | 120 | (*GNUNET_TRANSPORT_TESTING_IncomingMessageCallback)(void *cls, |
121 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | 121 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, |
122 | const struct GNUNET_MessageHeader *msg); | 122 | const struct GNUNET_MessageHeader *msg); |
123 | 123 | ||
124 | 124 | ||
125 | /** | 125 | /** |
@@ -138,16 +138,16 @@ typedef void | |||
138 | * @return Handle to the communicator duo | 138 | * @return Handle to the communicator duo |
139 | */ | 139 | */ |
140 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle * | 140 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle * |
141 | GNUNET_TRANSPORT_TESTING_transport_communicator_service_start ( | 141 | GNUNET_TRANSPORT_TESTING_transport_communicator_service_start( |
142 | const char *service_name, | 142 | const char *service_name, |
143 | const char *binary_name, | 143 | const char *binary_name, |
144 | const char *cfg_filename, | 144 | const char *cfg_filename, |
145 | GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback communicator_available_cb, | 145 | GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback communicator_available_cb, |
146 | GNUNET_TRANSPORT_TESTING_AddAddressCallback add_address_cb, | 146 | GNUNET_TRANSPORT_TESTING_AddAddressCallback add_address_cb, |
147 | GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback queue_create_reply_cb, | 147 | GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback queue_create_reply_cb, |
148 | GNUNET_TRANSPORT_TESTING_AddQueueCallback add_queue_cb, | 148 | GNUNET_TRANSPORT_TESTING_AddQueueCallback add_queue_cb, |
149 | GNUNET_TRANSPORT_TESTING_IncomingMessageCallback incoming_message_cb, | 149 | GNUNET_TRANSPORT_TESTING_IncomingMessageCallback incoming_message_cb, |
150 | void *cb_cls); | 150 | void *cb_cls); |
151 | 151 | ||
152 | 152 | ||
153 | /** | 153 | /** |
@@ -160,8 +160,8 @@ GNUNET_TRANSPORT_TESTING_transport_communicator_service_start ( | |||
160 | void | 160 | void |
161 | GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue | 161 | GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue |
162 | (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | 162 | (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, |
163 | const struct GNUNET_PeerIdentity *peer_id, | 163 | const struct GNUNET_PeerIdentity *peer_id, |
164 | const char *address); | 164 | const char *address); |
165 | 165 | ||
166 | 166 | ||
167 | /** | 167 | /** |
@@ -176,8 +176,8 @@ GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue | |||
176 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission * | 176 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission * |
177 | GNUNET_TRANSPORT_TESTING_transport_communicator_send | 177 | GNUNET_TRANSPORT_TESTING_transport_communicator_send |
178 | (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue, | 178 | (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue, |
179 | const void *payload, | 179 | const void *payload, |
180 | size_t payload_size/*, | 180 | size_t payload_size /*, |
181 | GNUNET_TRANSPORT_TESTING_SuccessStatus cb, | 181 | GNUNET_TRANSPORT_TESTING_SuccessStatus cb, |
182 | void *cb_cls*/); | 182 | void *cb_cls*/); |
183 | 183 | ||