diff options
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r-- | src/transport/transport-testing.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h index ed9238ecb..8e5d55dcd 100644 --- a/src/transport/transport-testing.h +++ b/src/transport/transport-testing.h | |||
@@ -65,10 +65,10 @@ struct GNUNET_TRANSPORT_TESTING_handle; | |||
65 | */ | 65 | */ |
66 | struct PeerContext | 66 | struct PeerContext |
67 | { | 67 | { |
68 | struct PeerContext * next; | 68 | struct PeerContext *next; |
69 | struct PeerContext * prev; | 69 | struct PeerContext *prev; |
70 | 70 | ||
71 | struct GNUNET_TRANSPORT_TESTING_handle * tth; | 71 | struct GNUNET_TRANSPORT_TESTING_handle *tth; |
72 | 72 | ||
73 | struct GNUNET_CONFIGURATION_Handle *cfg; | 73 | struct GNUNET_CONFIGURATION_Handle *cfg; |
74 | 74 | ||
@@ -100,8 +100,8 @@ struct PeerContext | |||
100 | 100 | ||
101 | struct ConnectingContext | 101 | struct ConnectingContext |
102 | { | 102 | { |
103 | struct ConnectingContext * next; | 103 | struct ConnectingContext *next; |
104 | struct ConnectingContext * prev; | 104 | struct ConnectingContext *prev; |
105 | struct PeerContext *p1; | 105 | struct PeerContext *p1; |
106 | struct PeerContext *p2; | 106 | struct PeerContext *p2; |
107 | GNUNET_SCHEDULER_TaskIdentifier tct; | 107 | GNUNET_SCHEDULER_TaskIdentifier tct; |
@@ -115,11 +115,11 @@ struct ConnectingContext | |||
115 | 115 | ||
116 | struct GNUNET_TRANSPORT_TESTING_handle | 116 | struct GNUNET_TRANSPORT_TESTING_handle |
117 | { | 117 | { |
118 | struct ConnectingContext * cc_head; | 118 | struct ConnectingContext *cc_head; |
119 | struct ConnectingContext * cc_tail; | 119 | struct ConnectingContext *cc_tail; |
120 | 120 | ||
121 | struct PeerContext * p_head; | 121 | struct PeerContext *p_head; |
122 | struct PeerContext * p_tail; | 122 | struct PeerContext *p_tail; |
123 | }; | 123 | }; |
124 | 124 | ||
125 | 125 | ||
@@ -134,9 +134,8 @@ struct GNUNET_TRANSPORT_TESTING_handle | |||
134 | * @return the peer context | 134 | * @return the peer context |
135 | */ | 135 | */ |
136 | struct PeerContext * | 136 | struct PeerContext * |
137 | GNUNET_TRANSPORT_TESTING_start_peer (struct GNUNET_TRANSPORT_TESTING_handle * tth, | 137 | GNUNET_TRANSPORT_TESTING_start_peer (struct GNUNET_TRANSPORT_TESTING_handle |
138 | const char *cfgname, | 138 | *tth, const char *cfgname, int peer_id, |
139 | int peer_id, | ||
140 | GNUNET_TRANSPORT_ReceiveCallback rec, | 139 | GNUNET_TRANSPORT_ReceiveCallback rec, |
141 | GNUNET_TRANSPORT_NotifyConnect nc, | 140 | GNUNET_TRANSPORT_NotifyConnect nc, |
142 | GNUNET_TRANSPORT_NotifyDisconnect nd, | 141 | GNUNET_TRANSPORT_NotifyDisconnect nd, |
@@ -150,7 +149,7 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct GNUNET_TRANSPORT_TESTING_handle * tt | |||
150 | */ | 149 | */ |
151 | 150 | ||
152 | void | 151 | void |
153 | GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_handle * tth, | 152 | GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth, |
154 | struct PeerContext *pc); | 153 | struct PeerContext *pc); |
155 | 154 | ||
156 | 155 | ||
@@ -165,8 +164,8 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_handle * tth | |||
165 | * @return a connect request handle | 164 | * @return a connect request handle |
166 | */ | 165 | */ |
167 | GNUNET_TRANSPORT_TESTING_ConnectRequest | 166 | GNUNET_TRANSPORT_TESTING_ConnectRequest |
168 | GNUNET_TRANSPORT_TESTING_connect_peers (struct GNUNET_TRANSPORT_TESTING_handle * tth, | 167 | GNUNET_TRANSPORT_TESTING_connect_peers (struct GNUNET_TRANSPORT_TESTING_handle |
169 | struct PeerContext *p1, | 168 | *tth, struct PeerContext *p1, |
170 | struct PeerContext *p2, | 169 | struct PeerContext *p2, |
171 | GNUNET_TRANSPORT_TESTING_connect_cb cb, | 170 | GNUNET_TRANSPORT_TESTING_connect_cb cb, |
172 | void *cls); | 171 | void *cls); |
@@ -177,15 +176,16 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct GNUNET_TRANSPORT_TESTING_handle * | |||
177 | * @param cc a connect request handle | 176 | * @param cc a connect request handle |
178 | */ | 177 | */ |
179 | void | 178 | void |
180 | GNUNET_TRANSPORT_TESTING_connect_peers_cancel (struct GNUNET_TRANSPORT_TESTING_handle *, | 179 | GNUNET_TRANSPORT_TESTING_connect_peers_cancel (struct |
181 | void *cc); | 180 | GNUNET_TRANSPORT_TESTING_handle |
181 | *, void *cc); | ||
182 | 182 | ||
183 | /** | 183 | /** |
184 | * Clean up the transport testing | 184 | * Clean up the transport testing |
185 | * @param tth transport testing handle | 185 | * @param tth transport testing handle |
186 | */ | 186 | */ |
187 | void | 187 | void |
188 | GNUNET_TRANSPORT_TESTING_done (struct GNUNET_TRANSPORT_TESTING_handle * tth); | 188 | GNUNET_TRANSPORT_TESTING_done (struct GNUNET_TRANSPORT_TESTING_handle *tth); |
189 | 189 | ||
190 | /** | 190 | /** |
191 | * Initialize the transport testing | 191 | * Initialize the transport testing |