aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport.h
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-08 12:33:09 +0000
committerng0 <ng0@n0.is>2019-09-08 12:33:09 +0000
commitd41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb (patch)
tree9efd18ea7d425652085ed0bd5e8e45604bc5f6b9 /src/transport/gnunet-service-transport.h
parenta0fce305c565c0937d917a92712f15e9c5736260 (diff)
downloadgnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz
gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip
uncrustify as demanded.
Diffstat (limited to 'src/transport/gnunet-service-transport.h')
-rw-r--r--src/transport/gnunet-service-transport.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/transport/gnunet-service-transport.h b/src/transport/gnunet-service-transport.h
index 467469064..fb42f1fae 100644
--- a/src/transport/gnunet-service-transport.h
+++ b/src/transport/gnunet-service-transport.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
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/gnunet-service-transport.h 22 * @file transport/gnunet-service-transport.h
@@ -83,12 +83,12 @@ extern struct GNUNET_NT_InterfaceScanner *GST_is;
83 */ 83 */
84typedef void 84typedef void
85(*GNUNET_TRANSPORT_NeighbourChangeCallback) (void *cls, 85(*GNUNET_TRANSPORT_NeighbourChangeCallback) (void *cls,
86 const struct GNUNET_PeerIdentity *peer, 86 const struct GNUNET_PeerIdentity *peer,
87 const struct GNUNET_HELLO_Address *address, 87 const struct GNUNET_HELLO_Address *address,
88 enum GNUNET_TRANSPORT_PeerState state, 88 enum GNUNET_TRANSPORT_PeerState state,
89 struct GNUNET_TIME_Absolute state_timeout, 89 struct GNUNET_TIME_Absolute state_timeout,
90 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, 90 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
91 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out); 91 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out);
92 92
93 93
94/** 94/**
@@ -105,8 +105,8 @@ typedef void
105typedef void 105typedef void
106(*GST_BlacklistTestContinuation) (void *cls, 106(*GST_BlacklistTestContinuation) (void *cls,
107 const struct GNUNET_PeerIdentity *peer, 107 const struct GNUNET_PeerIdentity *peer,
108 const struct GNUNET_HELLO_Address *address, 108 const struct GNUNET_HELLO_Address *address,
109 struct GNUNET_ATS_Session *session, 109 struct GNUNET_ATS_Session *session,
110 int result); 110 int result);
111 111
112 112
@@ -117,8 +117,8 @@ typedef void
117 * @param transport_name transport to blacklist for this peer, NULL for all 117 * @param transport_name transport to blacklist for this peer, NULL for all
118 */ 118 */
119void 119void
120GST_blacklist_add_peer (const struct GNUNET_PeerIdentity *peer, 120GST_blacklist_add_peer(const struct GNUNET_PeerIdentity *peer,
121 const char *transport_name); 121 const char *transport_name);
122 122
123 123
124/** 124/**
@@ -141,12 +141,12 @@ struct GST_BlacklistCheck;
141 * was made instantly and @a cont was already called 141 * was made instantly and @a cont was already called
142 */ 142 */
143struct GST_BlacklistCheck * 143struct GST_BlacklistCheck *
144GST_blacklist_test_allowed (const struct GNUNET_PeerIdentity *peer, 144GST_blacklist_test_allowed(const struct GNUNET_PeerIdentity *peer,
145 const char *transport_name, 145 const char *transport_name,
146 GST_BlacklistTestContinuation cont, 146 GST_BlacklistTestContinuation cont,
147 void *cont_cls, 147 void *cont_cls,
148 const struct GNUNET_HELLO_Address *address, 148 const struct GNUNET_HELLO_Address *address,
149 struct GNUNET_ATS_Session *session); 149 struct GNUNET_ATS_Session *session);
150 150
151 151
152/** 152/**
@@ -156,8 +156,8 @@ GST_blacklist_test_allowed (const struct GNUNET_PeerIdentity *peer,
156 * @param session session used to abort matching checks 156 * @param session session used to abort matching checks
157 */ 157 */
158void 158void
159GST_blacklist_abort_matching (const struct GNUNET_HELLO_Address *address, 159GST_blacklist_abort_matching(const struct GNUNET_HELLO_Address *address,
160 struct GNUNET_ATS_Session *session); 160 struct GNUNET_ATS_Session *session);
161 161
162/** 162/**
163 * Cancel a blacklist check. 163 * Cancel a blacklist check.
@@ -165,7 +165,7 @@ GST_blacklist_abort_matching (const struct GNUNET_HELLO_Address *address,
165 * @param bc check to cancel 165 * @param bc check to cancel
166 */ 166 */
167void 167void
168GST_blacklist_test_cancel (struct GST_BlacklistCheck *bc); 168GST_blacklist_test_cancel(struct GST_BlacklistCheck *bc);
169 169
170 170
171/** 171/**
@@ -182,10 +182,10 @@ GST_blacklist_test_cancel (struct GST_BlacklistCheck *bc);
182 * (plugins that do not support this, can ignore the return value) 182 * (plugins that do not support this, can ignore the return value)
183 */ 183 */
184struct GNUNET_TIME_Relative 184struct GNUNET_TIME_Relative
185GST_receive_callback (void *cls, 185GST_receive_callback(void *cls,
186 const struct GNUNET_HELLO_Address *address, 186 const struct GNUNET_HELLO_Address *address,
187 struct GNUNET_ATS_Session *session, 187 struct GNUNET_ATS_Session *session,
188 const struct GNUNET_MessageHeader *message); 188 const struct GNUNET_MessageHeader *message);
189 189
190/** 190/**
191 * Broadcast the given message to all of our clients. 191 * Broadcast the given message to all of our clients.
@@ -194,8 +194,8 @@ GST_receive_callback (void *cls,
194 * @param may_drop #GNUNET_YES if the message can be dropped / is payload 194 * @param may_drop #GNUNET_YES if the message can be dropped / is payload
195 */ 195 */
196void 196void
197GST_clients_broadcast (const struct GNUNET_MessageHeader *msg, 197GST_clients_broadcast(const struct GNUNET_MessageHeader *msg,
198 int may_drop); 198 int may_drop);
199 199
200 200
201/** 201/**
@@ -207,10 +207,10 @@ GST_clients_broadcast (const struct GNUNET_MessageHeader *msg,
207 * @param state_timeout the time out for the state 207 * @param state_timeout the time out for the state
208 */ 208 */
209void 209void
210GST_clients_broadcast_peer_notification (const struct GNUNET_PeerIdentity *peer, 210GST_clients_broadcast_peer_notification(const struct GNUNET_PeerIdentity *peer,
211 const struct GNUNET_HELLO_Address *address, 211 const struct GNUNET_HELLO_Address *address,
212 enum GNUNET_TRANSPORT_PeerState state, 212 enum GNUNET_TRANSPORT_PeerState state,
213 struct GNUNET_TIME_Absolute state_timeout); 213 struct GNUNET_TIME_Absolute state_timeout);
214 214
215 215
216/** 216/**
@@ -220,7 +220,7 @@ GST_clients_broadcast_peer_notification (const struct GNUNET_PeerIdentity *peer,
220 * @param peer peer that disconnected 220 * @param peer peer that disconnected
221 */ 221 */
222void 222void
223GST_clients_broadcast_disconnect (const struct GNUNET_PeerIdentity *peer); 223GST_clients_broadcast_disconnect(const struct GNUNET_PeerIdentity *peer);
224 224
225 225
226 226