diff options
author | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
commit | d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb (patch) | |
tree | 9efd18ea7d425652085ed0bd5e8e45604bc5f6b9 /src/cadet/gnunet-service-cadet_channel.h | |
parent | a0fce305c565c0937d917a92712f15e9c5736260 (diff) | |
download | gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip |
uncrustify as demanded.
Diffstat (limited to 'src/cadet/gnunet-service-cadet_channel.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_channel.h | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.h b/src/cadet/gnunet-service-cadet_channel.h index 2eb28262d..a64d4058e 100644 --- a/src/cadet/gnunet-service-cadet_channel.h +++ b/src/cadet/gnunet-service-cadet_channel.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 cadet/gnunet-service-cadet_channel.h | 22 | * @file cadet/gnunet-service-cadet_channel.h |
@@ -44,7 +44,7 @@ struct CadetChannel; | |||
44 | 44 | ||
45 | 45 | ||
46 | /** | 46 | /** |
47 | * Hash the @a port and @a initiator and @a listener to | 47 | * Hash the @a port and @a initiator and @a listener to |
48 | * calculate the "challenge" @a h_port we send to the other | 48 | * calculate the "challenge" @a h_port we send to the other |
49 | * peer on #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN. | 49 | * peer on #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN. |
50 | * | 50 | * |
@@ -53,9 +53,9 @@ struct CadetChannel; | |||
53 | * @param listener peer that is listining on @a port | 53 | * @param listener peer that is listining on @a port |
54 | */ | 54 | */ |
55 | void | 55 | void |
56 | GCCH_hash_port (struct GNUNET_HashCode *h_port, | 56 | GCCH_hash_port(struct GNUNET_HashCode *h_port, |
57 | const struct GNUNET_HashCode *port, | 57 | const struct GNUNET_HashCode *port, |
58 | const struct GNUNET_PeerIdentity *listener); | 58 | const struct GNUNET_PeerIdentity *listener); |
59 | 59 | ||
60 | 60 | ||
61 | /** | 61 | /** |
@@ -66,7 +66,7 @@ GCCH_hash_port (struct GNUNET_HashCode *h_port, | |||
66 | * @return Static string with the channel IDs. | 66 | * @return Static string with the channel IDs. |
67 | */ | 67 | */ |
68 | const char * | 68 | const char * |
69 | GCCH_2s (const struct CadetChannel *ch); | 69 | GCCH_2s(const struct CadetChannel *ch); |
70 | 70 | ||
71 | 71 | ||
72 | /** | 72 | /** |
@@ -76,8 +76,8 @@ GCCH_2s (const struct CadetChannel *ch); | |||
76 | * @param level Debug level to use. | 76 | * @param level Debug level to use. |
77 | */ | 77 | */ |
78 | void | 78 | void |
79 | GCCH_debug (struct CadetChannel *ch, | 79 | GCCH_debug(struct CadetChannel *ch, |
80 | enum GNUNET_ErrorType level); | 80 | enum GNUNET_ErrorType level); |
81 | 81 | ||
82 | 82 | ||
83 | /** | 83 | /** |
@@ -88,7 +88,7 @@ GCCH_debug (struct CadetChannel *ch, | |||
88 | * @return ID used to identify the channel with the remote peer. | 88 | * @return ID used to identify the channel with the remote peer. |
89 | */ | 89 | */ |
90 | struct GNUNET_CADET_ChannelTunnelNumber | 90 | struct GNUNET_CADET_ChannelTunnelNumber |
91 | GCCH_get_id (const struct CadetChannel *ch); | 91 | GCCH_get_id(const struct CadetChannel *ch); |
92 | 92 | ||
93 | 93 | ||
94 | /** | 94 | /** |
@@ -102,11 +102,11 @@ GCCH_get_id (const struct CadetChannel *ch); | |||
102 | * @return handle to the new channel | 102 | * @return handle to the new channel |
103 | */ | 103 | */ |
104 | struct CadetChannel * | 104 | struct CadetChannel * |
105 | GCCH_channel_local_new (struct CadetClient *owner, | 105 | GCCH_channel_local_new(struct CadetClient *owner, |
106 | struct GNUNET_CADET_ClientChannelNumber owner_id, | 106 | struct GNUNET_CADET_ClientChannelNumber owner_id, |
107 | struct CadetPeer *destination, | 107 | struct CadetPeer *destination, |
108 | const struct GNUNET_HashCode *port, | 108 | const struct GNUNET_HashCode *port, |
109 | uint32_t options); | 109 | uint32_t options); |
110 | 110 | ||
111 | 111 | ||
112 | /** | 112 | /** |
@@ -119,9 +119,9 @@ GCCH_channel_local_new (struct CadetClient *owner, | |||
119 | * @param port port number @a c is listening on | 119 | * @param port port number @a c is listening on |
120 | */ | 120 | */ |
121 | void | 121 | void |
122 | GCCH_bind (struct CadetChannel *ch, | 122 | GCCH_bind(struct CadetChannel *ch, |
123 | struct CadetClient *c, | 123 | struct CadetClient *c, |
124 | const struct GNUNET_HashCode *port); | 124 | const struct GNUNET_HashCode *port); |
125 | 125 | ||
126 | 126 | ||
127 | /** | 127 | /** |
@@ -133,9 +133,9 @@ GCCH_bind (struct CadetChannel *ch, | |||
133 | * @param ccn client number of the client @a c | 133 | * @param ccn client number of the client @a c |
134 | */ | 134 | */ |
135 | void | 135 | void |
136 | GCCH_channel_local_destroy (struct CadetChannel *ch, | 136 | GCCH_channel_local_destroy(struct CadetChannel *ch, |
137 | struct CadetClient *c, | 137 | struct CadetClient *c, |
138 | struct GNUNET_CADET_ClientChannelNumber ccn); | 138 | struct GNUNET_CADET_ClientChannelNumber ccn); |
139 | 139 | ||
140 | 140 | ||
141 | /** | 141 | /** |
@@ -149,7 +149,7 @@ GCCH_channel_local_destroy (struct CadetChannel *ch, | |||
149 | * @param ch the channel for which the tunnel is now ready | 149 | * @param ch the channel for which the tunnel is now ready |
150 | */ | 150 | */ |
151 | void | 151 | void |
152 | GCCH_tunnel_up (struct CadetChannel *ch); | 152 | GCCH_tunnel_up(struct CadetChannel *ch); |
153 | 153 | ||
154 | 154 | ||
155 | /** | 155 | /** |
@@ -163,10 +163,10 @@ GCCH_tunnel_up (struct CadetChannel *ch); | |||
163 | * @return handle to the new channel | 163 | * @return handle to the new channel |
164 | */ | 164 | */ |
165 | struct CadetChannel * | 165 | struct CadetChannel * |
166 | GCCH_channel_incoming_new (struct CadetTunnel *t, | 166 | GCCH_channel_incoming_new(struct CadetTunnel *t, |
167 | struct GNUNET_CADET_ChannelTunnelNumber chid, | 167 | struct GNUNET_CADET_ChannelTunnelNumber chid, |
168 | const struct GNUNET_HashCode *h_port, | 168 | const struct GNUNET_HashCode *h_port, |
169 | uint32_t options); | 169 | uint32_t options); |
170 | 170 | ||
171 | 171 | ||
172 | /** | 172 | /** |
@@ -178,8 +178,8 @@ GCCH_channel_incoming_new (struct CadetTunnel *t, | |||
178 | * @param cti identifier of the connection that delivered the message | 178 | * @param cti identifier of the connection that delivered the message |
179 | */ | 179 | */ |
180 | void | 180 | void |
181 | GCCH_handle_duplicate_open (struct CadetChannel *ch, | 181 | GCCH_handle_duplicate_open(struct CadetChannel *ch, |
182 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *cti); | 182 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *cti); |
183 | 183 | ||
184 | 184 | ||
185 | 185 | ||
@@ -191,9 +191,9 @@ GCCH_handle_duplicate_open (struct CadetChannel *ch, | |||
191 | * @param msg message that was received | 191 | * @param msg message that was received |
192 | */ | 192 | */ |
193 | void | 193 | void |
194 | GCCH_handle_channel_plaintext_data (struct CadetChannel *ch, | 194 | GCCH_handle_channel_plaintext_data(struct CadetChannel *ch, |
195 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *cti, | 195 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *cti, |
196 | const struct GNUNET_CADET_ChannelAppDataMessage *msg); | 196 | const struct GNUNET_CADET_ChannelAppDataMessage *msg); |
197 | 197 | ||
198 | 198 | ||
199 | /** | 199 | /** |
@@ -205,9 +205,9 @@ GCCH_handle_channel_plaintext_data (struct CadetChannel *ch, | |||
205 | * @param ack details about what was received | 205 | * @param ack details about what was received |
206 | */ | 206 | */ |
207 | void | 207 | void |
208 | GCCH_handle_channel_plaintext_data_ack (struct CadetChannel *ch, | 208 | GCCH_handle_channel_plaintext_data_ack(struct CadetChannel *ch, |
209 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *cti, | 209 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *cti, |
210 | const struct GNUNET_CADET_ChannelDataAckMessage *ack); | 210 | const struct GNUNET_CADET_ChannelDataAckMessage *ack); |
211 | 211 | ||
212 | 212 | ||
213 | /** | 213 | /** |
@@ -220,9 +220,9 @@ GCCH_handle_channel_plaintext_data_ack (struct CadetChannel *ch, | |||
220 | * @param port port number (needed to verify receiver knows the port) | 220 | * @param port port number (needed to verify receiver knows the port) |
221 | */ | 221 | */ |
222 | void | 222 | void |
223 | GCCH_handle_channel_open_ack (struct CadetChannel *ch, | 223 | GCCH_handle_channel_open_ack(struct CadetChannel *ch, |
224 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *cti, | 224 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *cti, |
225 | const struct GNUNET_HashCode *port); | 225 | const struct GNUNET_HashCode *port); |
226 | 226 | ||
227 | 227 | ||
228 | /** | 228 | /** |
@@ -242,8 +242,8 @@ GCCH_handle_channel_open_ack (struct CadetChannel *ch, | |||
242 | * NULL during shutdown | 242 | * NULL during shutdown |
243 | */ | 243 | */ |
244 | void | 244 | void |
245 | GCCH_handle_remote_destroy (struct CadetChannel *ch, | 245 | GCCH_handle_remote_destroy(struct CadetChannel *ch, |
246 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *cti); | 246 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *cti); |
247 | 247 | ||
248 | 248 | ||
249 | /** | 249 | /** |
@@ -261,10 +261,10 @@ GCCH_handle_remote_destroy (struct CadetChannel *ch, | |||
261 | * #GNUNET_SYSERR in case of an error. | 261 | * #GNUNET_SYSERR in case of an error. |
262 | */ | 262 | */ |
263 | int | 263 | int |
264 | GCCH_handle_local_data (struct CadetChannel *ch, | 264 | GCCH_handle_local_data(struct CadetChannel *ch, |
265 | struct GNUNET_CADET_ClientChannelNumber sender_ccn, | 265 | struct GNUNET_CADET_ClientChannelNumber sender_ccn, |
266 | const char *buf, | 266 | const char *buf, |
267 | size_t buf_len); | 267 | size_t buf_len); |
268 | 268 | ||
269 | 269 | ||
270 | /** | 270 | /** |
@@ -274,7 +274,7 @@ GCCH_handle_local_data (struct CadetChannel *ch, | |||
274 | * @param client_ccn ccn of the client sending the ack | 274 | * @param client_ccn ccn of the client sending the ack |
275 | */ | 275 | */ |
276 | void | 276 | void |
277 | GCCH_handle_local_ack (struct CadetChannel *ch, | 277 | GCCH_handle_local_ack(struct CadetChannel *ch, |
278 | struct GNUNET_CADET_ClientChannelNumber client_ccn); | 278 | struct GNUNET_CADET_ClientChannelNumber client_ccn); |
279 | 279 | ||
280 | #endif | 280 | #endif |