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/gnunet-service-transport.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/transport/gnunet-service-transport.h')
-rw-r--r-- | src/transport/gnunet-service-transport.h | 64 |
1 files changed, 36 insertions, 28 deletions
diff --git a/src/transport/gnunet-service-transport.h b/src/transport/gnunet-service-transport.h index fb42f1fae..3c2ca5a08 100644 --- a/src/transport/gnunet-service-transport.h +++ b/src/transport/gnunet-service-transport.h | |||
@@ -83,12 +83,18 @@ extern struct GNUNET_NT_InterfaceScanner *GST_is; | |||
83 | */ | 83 | */ |
84 | typedef void | 84 | typedef void |
85 | (*GNUNET_TRANSPORT_NeighbourChangeCallback) (void *cls, | 85 | (*GNUNET_TRANSPORT_NeighbourChangeCallback) (void *cls, |
86 | const struct GNUNET_PeerIdentity *peer, | 86 | const struct |
87 | const struct GNUNET_HELLO_Address *address, | 87 | GNUNET_PeerIdentity *peer, |
88 | enum GNUNET_TRANSPORT_PeerState state, | 88 | const struct |
89 | struct GNUNET_TIME_Absolute state_timeout, | 89 | GNUNET_HELLO_Address *address, |
90 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, | 90 | enum GNUNET_TRANSPORT_PeerState |
91 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out); | 91 | state, |
92 | struct GNUNET_TIME_Absolute | ||
93 | state_timeout, | ||
94 | struct GNUNET_BANDWIDTH_Value32NBO | ||
95 | bandwidth_in, | ||
96 | struct GNUNET_BANDWIDTH_Value32NBO | ||
97 | bandwidth_out); | ||
92 | 98 | ||
93 | 99 | ||
94 | /** | 100 | /** |
@@ -117,8 +123,8 @@ typedef void | |||
117 | * @param transport_name transport to blacklist for this peer, NULL for all | 123 | * @param transport_name transport to blacklist for this peer, NULL for all |
118 | */ | 124 | */ |
119 | void | 125 | void |
120 | GST_blacklist_add_peer(const struct GNUNET_PeerIdentity *peer, | 126 | GST_blacklist_add_peer (const struct GNUNET_PeerIdentity *peer, |
121 | const char *transport_name); | 127 | const char *transport_name); |
122 | 128 | ||
123 | 129 | ||
124 | /** | 130 | /** |
@@ -141,12 +147,12 @@ struct GST_BlacklistCheck; | |||
141 | * was made instantly and @a cont was already called | 147 | * was made instantly and @a cont was already called |
142 | */ | 148 | */ |
143 | struct GST_BlacklistCheck * | 149 | struct GST_BlacklistCheck * |
144 | GST_blacklist_test_allowed(const struct GNUNET_PeerIdentity *peer, | 150 | GST_blacklist_test_allowed (const struct GNUNET_PeerIdentity *peer, |
145 | const char *transport_name, | 151 | const char *transport_name, |
146 | GST_BlacklistTestContinuation cont, | 152 | GST_BlacklistTestContinuation cont, |
147 | void *cont_cls, | 153 | void *cont_cls, |
148 | const struct GNUNET_HELLO_Address *address, | 154 | const struct GNUNET_HELLO_Address *address, |
149 | struct GNUNET_ATS_Session *session); | 155 | struct GNUNET_ATS_Session *session); |
150 | 156 | ||
151 | 157 | ||
152 | /** | 158 | /** |
@@ -156,8 +162,8 @@ GST_blacklist_test_allowed(const struct GNUNET_PeerIdentity *peer, | |||
156 | * @param session session used to abort matching checks | 162 | * @param session session used to abort matching checks |
157 | */ | 163 | */ |
158 | void | 164 | void |
159 | GST_blacklist_abort_matching(const struct GNUNET_HELLO_Address *address, | 165 | GST_blacklist_abort_matching (const struct GNUNET_HELLO_Address *address, |
160 | struct GNUNET_ATS_Session *session); | 166 | struct GNUNET_ATS_Session *session); |
161 | 167 | ||
162 | /** | 168 | /** |
163 | * Cancel a blacklist check. | 169 | * Cancel a blacklist check. |
@@ -165,7 +171,7 @@ GST_blacklist_abort_matching(const struct GNUNET_HELLO_Address *address, | |||
165 | * @param bc check to cancel | 171 | * @param bc check to cancel |
166 | */ | 172 | */ |
167 | void | 173 | void |
168 | GST_blacklist_test_cancel(struct GST_BlacklistCheck *bc); | 174 | GST_blacklist_test_cancel (struct GST_BlacklistCheck *bc); |
169 | 175 | ||
170 | 176 | ||
171 | /** | 177 | /** |
@@ -182,10 +188,10 @@ GST_blacklist_test_cancel(struct GST_BlacklistCheck *bc); | |||
182 | * (plugins that do not support this, can ignore the return value) | 188 | * (plugins that do not support this, can ignore the return value) |
183 | */ | 189 | */ |
184 | struct GNUNET_TIME_Relative | 190 | struct GNUNET_TIME_Relative |
185 | GST_receive_callback(void *cls, | 191 | GST_receive_callback (void *cls, |
186 | const struct GNUNET_HELLO_Address *address, | 192 | const struct GNUNET_HELLO_Address *address, |
187 | struct GNUNET_ATS_Session *session, | 193 | struct GNUNET_ATS_Session *session, |
188 | const struct GNUNET_MessageHeader *message); | 194 | const struct GNUNET_MessageHeader *message); |
189 | 195 | ||
190 | /** | 196 | /** |
191 | * Broadcast the given message to all of our clients. | 197 | * Broadcast the given message to all of our clients. |
@@ -194,8 +200,8 @@ GST_receive_callback(void *cls, | |||
194 | * @param may_drop #GNUNET_YES if the message can be dropped / is payload | 200 | * @param may_drop #GNUNET_YES if the message can be dropped / is payload |
195 | */ | 201 | */ |
196 | void | 202 | void |
197 | GST_clients_broadcast(const struct GNUNET_MessageHeader *msg, | 203 | GST_clients_broadcast (const struct GNUNET_MessageHeader *msg, |
198 | int may_drop); | 204 | int may_drop); |
199 | 205 | ||
200 | 206 | ||
201 | /** | 207 | /** |
@@ -207,10 +213,12 @@ GST_clients_broadcast(const struct GNUNET_MessageHeader *msg, | |||
207 | * @param state_timeout the time out for the state | 213 | * @param state_timeout the time out for the state |
208 | */ | 214 | */ |
209 | void | 215 | void |
210 | GST_clients_broadcast_peer_notification(const struct GNUNET_PeerIdentity *peer, | 216 | GST_clients_broadcast_peer_notification (const struct GNUNET_PeerIdentity *peer, |
211 | const struct GNUNET_HELLO_Address *address, | 217 | const struct |
212 | enum GNUNET_TRANSPORT_PeerState state, | 218 | GNUNET_HELLO_Address *address, |
213 | struct GNUNET_TIME_Absolute state_timeout); | 219 | enum GNUNET_TRANSPORT_PeerState state, |
220 | struct GNUNET_TIME_Absolute | ||
221 | state_timeout); | ||
214 | 222 | ||
215 | 223 | ||
216 | /** | 224 | /** |
@@ -220,7 +228,7 @@ GST_clients_broadcast_peer_notification(const struct GNUNET_PeerIdentity *peer, | |||
220 | * @param peer peer that disconnected | 228 | * @param peer peer that disconnected |
221 | */ | 229 | */ |
222 | void | 230 | void |
223 | GST_clients_broadcast_disconnect(const struct GNUNET_PeerIdentity *peer); | 231 | GST_clients_broadcast_disconnect (const struct GNUNET_PeerIdentity *peer); |
224 | 232 | ||
225 | 233 | ||
226 | 234 | ||