diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_channel.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_channel.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.h b/src/cadet/gnunet-service-cadet_channel.h index f5a89a423..a472669c5 100644 --- a/src/cadet/gnunet-service-cadet_channel.h +++ b/src/cadet/gnunet-service-cadet_channel.h | |||
@@ -59,7 +59,7 @@ struct CadetChannel; | |||
59 | * @param ch Channel to destroy. | 59 | * @param ch Channel to destroy. |
60 | */ | 60 | */ |
61 | void | 61 | void |
62 | GMCH_destroy (struct CadetChannel *ch); | 62 | GCCH_destroy (struct CadetChannel *ch); |
63 | 63 | ||
64 | 64 | ||
65 | /** | 65 | /** |
@@ -70,7 +70,7 @@ GMCH_destroy (struct CadetChannel *ch); | |||
70 | * @return ID used to identify the channel with the remote peer. | 70 | * @return ID used to identify the channel with the remote peer. |
71 | */ | 71 | */ |
72 | CADET_ChannelNumber | 72 | CADET_ChannelNumber |
73 | GMCH_get_id (const struct CadetChannel *ch); | 73 | GCCH_get_id (const struct CadetChannel *ch); |
74 | 74 | ||
75 | /** | 75 | /** |
76 | * Get the channel tunnel. | 76 | * Get the channel tunnel. |
@@ -80,7 +80,7 @@ GMCH_get_id (const struct CadetChannel *ch); | |||
80 | * @return tunnel of the channel. | 80 | * @return tunnel of the channel. |
81 | */ | 81 | */ |
82 | struct CadetTunnel3 * | 82 | struct CadetTunnel3 * |
83 | GMCH_get_tunnel (const struct CadetChannel *ch); | 83 | GCCH_get_tunnel (const struct CadetChannel *ch); |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * Get free buffer space towards the client on a specific channel. | 86 | * Get free buffer space towards the client on a specific channel. |
@@ -91,7 +91,7 @@ GMCH_get_tunnel (const struct CadetChannel *ch); | |||
91 | * @return Free buffer space [0 - 64] | 91 | * @return Free buffer space [0 - 64] |
92 | */ | 92 | */ |
93 | unsigned int | 93 | unsigned int |
94 | GMCH_get_buffer (struct CadetChannel *ch, int fwd); | 94 | GCCH_get_buffer (struct CadetChannel *ch, int fwd); |
95 | 95 | ||
96 | 96 | ||
97 | /** | 97 | /** |
@@ -103,7 +103,7 @@ GMCH_get_buffer (struct CadetChannel *ch, int fwd); | |||
103 | * @return #GNUNET_YES if client is allowed to send us data. | 103 | * @return #GNUNET_YES if client is allowed to send us data. |
104 | */ | 104 | */ |
105 | int | 105 | int |
106 | GMCH_get_allowed (struct CadetChannel *ch, int fwd); | 106 | GCCH_get_allowed (struct CadetChannel *ch, int fwd); |
107 | 107 | ||
108 | 108 | ||
109 | /** | 109 | /** |
@@ -115,7 +115,7 @@ GMCH_get_allowed (struct CadetChannel *ch, int fwd); | |||
115 | * @return #GNUNET_YES in case it is. | 115 | * @return #GNUNET_YES in case it is. |
116 | */ | 116 | */ |
117 | int | 117 | int |
118 | GMCH_is_origin (struct CadetChannel *ch, int fwd); | 118 | GCCH_is_origin (struct CadetChannel *ch, int fwd); |
119 | 119 | ||
120 | /** | 120 | /** |
121 | * Is the destination client for this channel on this peer? | 121 | * Is the destination client for this channel on this peer? |
@@ -126,7 +126,7 @@ GMCH_is_origin (struct CadetChannel *ch, int fwd); | |||
126 | * @return #GNUNET_YES in case it is. | 126 | * @return #GNUNET_YES in case it is. |
127 | */ | 127 | */ |
128 | int | 128 | int |
129 | GMCH_is_terminal (struct CadetChannel *ch, int fwd); | 129 | GCCH_is_terminal (struct CadetChannel *ch, int fwd); |
130 | 130 | ||
131 | /** | 131 | /** |
132 | * Send an end-to-end ACK message for the most recent in-sequence payload. | 132 | * Send an end-to-end ACK message for the most recent in-sequence payload. |
@@ -137,7 +137,7 @@ GMCH_is_terminal (struct CadetChannel *ch, int fwd); | |||
137 | * @param fwd Is for FWD traffic? (ACK dest->owner) | 137 | * @param fwd Is for FWD traffic? (ACK dest->owner) |
138 | */ | 138 | */ |
139 | void | 139 | void |
140 | GMCH_send_data_ack (struct CadetChannel *ch, int fwd); | 140 | GCCH_send_data_ack (struct CadetChannel *ch, int fwd); |
141 | 141 | ||
142 | /** | 142 | /** |
143 | * Notify the destination client that a new incoming channel was created. | 143 | * Notify the destination client that a new incoming channel was created. |
@@ -145,7 +145,7 @@ GMCH_send_data_ack (struct CadetChannel *ch, int fwd); | |||
145 | * @param ch Channel that was created. | 145 | * @param ch Channel that was created. |
146 | */ | 146 | */ |
147 | void | 147 | void |
148 | GMCH_send_create (struct CadetChannel *ch); | 148 | GCCH_send_create (struct CadetChannel *ch); |
149 | 149 | ||
150 | /** | 150 | /** |
151 | * Allow a client to send us more data, in case it was choked. | 151 | * Allow a client to send us more data, in case it was choked. |
@@ -154,7 +154,7 @@ GMCH_send_create (struct CadetChannel *ch); | |||
154 | * @param fwd Is this about FWD traffic? (Root client). | 154 | * @param fwd Is this about FWD traffic? (Root client). |
155 | */ | 155 | */ |
156 | void | 156 | void |
157 | GMCH_allow_client (struct CadetChannel *ch, int fwd); | 157 | GCCH_allow_client (struct CadetChannel *ch, int fwd); |
158 | 158 | ||
159 | /** | 159 | /** |
160 | * Log channel info. | 160 | * Log channel info. |
@@ -162,7 +162,7 @@ GMCH_allow_client (struct CadetChannel *ch, int fwd); | |||
162 | * @param ch Channel. | 162 | * @param ch Channel. |
163 | */ | 163 | */ |
164 | void | 164 | void |
165 | GMCH_debug (struct CadetChannel *ch); | 165 | GCCH_debug (struct CadetChannel *ch); |
166 | 166 | ||
167 | /** | 167 | /** |
168 | * Handle an ACK given by a client. | 168 | * Handle an ACK given by a client. |
@@ -173,7 +173,7 @@ GMCH_debug (struct CadetChannel *ch); | |||
173 | * @param fwd Is this a "FWD ACK"? (FWD ACKs are sent by root and go BCK) | 173 | * @param fwd Is this a "FWD ACK"? (FWD ACKs are sent by root and go BCK) |
174 | */ | 174 | */ |
175 | void | 175 | void |
176 | GMCH_handle_local_ack (struct CadetChannel *ch, int fwd); | 176 | GCCH_handle_local_ack (struct CadetChannel *ch, int fwd); |
177 | 177 | ||
178 | /** | 178 | /** |
179 | * Handle data given by a client. | 179 | * Handle data given by a client. |
@@ -190,7 +190,7 @@ GMCH_handle_local_ack (struct CadetChannel *ch, int fwd); | |||
190 | * @return GNUNET_OK if everything goes well, GNUNET_SYSERR in case of en error. | 190 | * @return GNUNET_OK if everything goes well, GNUNET_SYSERR in case of en error. |
191 | */ | 191 | */ |
192 | int | 192 | int |
193 | GMCH_handle_local_data (struct CadetChannel *ch, | 193 | GCCH_handle_local_data (struct CadetChannel *ch, |
194 | struct CadetClient *c, | 194 | struct CadetClient *c, |
195 | struct GNUNET_MessageHeader *message, | 195 | struct GNUNET_MessageHeader *message, |
196 | int fwd); | 196 | int fwd); |
@@ -205,7 +205,7 @@ GMCH_handle_local_data (struct CadetChannel *ch, | |||
205 | * @param is_root Is the request coming from root? | 205 | * @param is_root Is the request coming from root? |
206 | */ | 206 | */ |
207 | void | 207 | void |
208 | GMCH_handle_local_destroy (struct CadetChannel *ch, | 208 | GCCH_handle_local_destroy (struct CadetChannel *ch, |
209 | struct CadetClient *c, | 209 | struct CadetClient *c, |
210 | int is_root); | 210 | int is_root); |
211 | 211 | ||
@@ -220,7 +220,7 @@ GMCH_handle_local_destroy (struct CadetChannel *ch, | |||
220 | * @return GNUNET_OK if everything went fine, GNUNET_SYSERR otherwise. | 220 | * @return GNUNET_OK if everything went fine, GNUNET_SYSERR otherwise. |
221 | */ | 221 | */ |
222 | int | 222 | int |
223 | GMCH_handle_local_create (struct CadetClient *c, | 223 | GCCH_handle_local_create (struct CadetClient *c, |
224 | struct GNUNET_CADET_ChannelMessage *msg); | 224 | struct GNUNET_CADET_ChannelMessage *msg); |
225 | 225 | ||
226 | /** | 226 | /** |
@@ -234,7 +234,7 @@ GMCH_handle_local_create (struct CadetClient *c, | |||
234 | * #GNUNET_SYSERR if message on a one-ended channel (remote) | 234 | * #GNUNET_SYSERR if message on a one-ended channel (remote) |
235 | */ | 235 | */ |
236 | void | 236 | void |
237 | GMCH_handle_data (struct CadetChannel *ch, | 237 | GCCH_handle_data (struct CadetChannel *ch, |
238 | const struct GNUNET_CADET_Data *msg, | 238 | const struct GNUNET_CADET_Data *msg, |
239 | int fwd); | 239 | int fwd); |
240 | 240 | ||
@@ -249,7 +249,7 @@ GMCH_handle_data (struct CadetChannel *ch, | |||
249 | * #GNUNET_SYSERR if message on a one-ended channel (remote) | 249 | * #GNUNET_SYSERR if message on a one-ended channel (remote) |
250 | */ | 250 | */ |
251 | void | 251 | void |
252 | GMCH_handle_data_ack (struct CadetChannel *ch, | 252 | GCCH_handle_data_ack (struct CadetChannel *ch, |
253 | const struct GNUNET_CADET_DataACK *msg, | 253 | const struct GNUNET_CADET_DataACK *msg, |
254 | int fwd); | 254 | int fwd); |
255 | 255 | ||
@@ -262,7 +262,7 @@ GMCH_handle_data_ack (struct CadetChannel *ch, | |||
262 | * @param msg Channel crate message. | 262 | * @param msg Channel crate message. |
263 | */ | 263 | */ |
264 | struct CadetChannel * | 264 | struct CadetChannel * |
265 | GMCH_handle_create (struct CadetTunnel3 *t, | 265 | GCCH_handle_create (struct CadetTunnel3 *t, |
266 | const struct GNUNET_CADET_ChannelCreate *msg); | 266 | const struct GNUNET_CADET_ChannelCreate *msg); |
267 | 267 | ||
268 | /** | 268 | /** |
@@ -273,7 +273,7 @@ GMCH_handle_create (struct CadetTunnel3 *t, | |||
273 | * @param ch Channel. | 273 | * @param ch Channel. |
274 | */ | 274 | */ |
275 | void | 275 | void |
276 | GMCH_handle_nack (struct CadetChannel *ch); | 276 | GCCH_handle_nack (struct CadetChannel *ch); |
277 | 277 | ||
278 | /** | 278 | /** |
279 | * Handler for channel ack messages. | 279 | * Handler for channel ack messages. |
@@ -286,7 +286,7 @@ GMCH_handle_nack (struct CadetChannel *ch); | |||
286 | * #GNUNET_SYSERR if message on a one-ended channel (remote) | 286 | * #GNUNET_SYSERR if message on a one-ended channel (remote) |
287 | */ | 287 | */ |
288 | void | 288 | void |
289 | GMCH_handle_ack (struct CadetChannel *ch, | 289 | GCCH_handle_ack (struct CadetChannel *ch, |
290 | const struct GNUNET_CADET_ChannelManage *msg, | 290 | const struct GNUNET_CADET_ChannelManage *msg, |
291 | int fwd); | 291 | int fwd); |
292 | 292 | ||
@@ -301,7 +301,7 @@ GMCH_handle_ack (struct CadetChannel *ch, | |||
301 | * #GNUNET_SYSERR if message on a one-ended channel (remote) | 301 | * #GNUNET_SYSERR if message on a one-ended channel (remote) |
302 | */ | 302 | */ |
303 | void | 303 | void |
304 | GMCH_handle_destroy (struct CadetChannel *ch, | 304 | GCCH_handle_destroy (struct CadetChannel *ch, |
305 | const struct GNUNET_CADET_ChannelManage *msg, | 305 | const struct GNUNET_CADET_ChannelManage *msg, |
306 | int fwd); | 306 | int fwd); |
307 | 307 | ||
@@ -322,7 +322,7 @@ GMCH_handle_destroy (struct CadetChannel *ch, | |||
322 | * @param existing_copy This is a retransmission, don't save a copy. | 322 | * @param existing_copy This is a retransmission, don't save a copy. |
323 | */ | 323 | */ |
324 | void | 324 | void |
325 | GMCH_send_prebuilt_message (const struct GNUNET_MessageHeader *message, | 325 | GCCH_send_prebuilt_message (const struct GNUNET_MessageHeader *message, |
326 | struct CadetChannel *ch, int fwd, | 326 | struct CadetChannel *ch, int fwd, |
327 | void *existing_copy); | 327 | void *existing_copy); |
328 | 328 | ||
@@ -334,7 +334,7 @@ GMCH_send_prebuilt_message (const struct GNUNET_MessageHeader *message, | |||
334 | * @return Static string with the channel IDs. | 334 | * @return Static string with the channel IDs. |
335 | */ | 335 | */ |
336 | const char * | 336 | const char * |
337 | GMCH_2s (const struct CadetChannel *ch); | 337 | GCCH_2s (const struct CadetChannel *ch); |
338 | 338 | ||
339 | 339 | ||
340 | #if 0 /* keep Emacsens' auto-indent happy */ | 340 | #if 0 /* keep Emacsens' auto-indent happy */ |