aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet-new.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new.h')
-rw-r--r--src/cadet/gnunet-service-cadet-new.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet-new.h b/src/cadet/gnunet-service-cadet-new.h
index 9f4667e23..4a76c578b 100644
--- a/src/cadet/gnunet-service-cadet-new.h
+++ b/src/cadet/gnunet-service-cadet-new.h
@@ -30,6 +30,7 @@
30 30
31#include "gnunet_util_lib.h" 31#include "gnunet_util_lib.h"
32#define NEW_CADET 1 32#define NEW_CADET 1
33#include "cadet_protocol.h"
33 34
34/** 35/**
35 * A client to the CADET service. Each client gets a unique handle. 36 * A client to the CADET service. Each client gets a unique handle.
@@ -167,6 +168,11 @@ struct CadetRoute;
167struct CadetChannel; 168struct CadetChannel;
168 169
169/** 170/**
171 * Handle to our configuration.
172 */
173extern const struct GNUNET_CONFIGURATION_Handle *cfg;
174
175/**
170 * Handle to the statistics service. 176 * Handle to the statistics service.
171 */ 177 */
172extern struct GNUNET_STATISTICS_Handle *stats; 178extern struct GNUNET_STATISTICS_Handle *stats;
@@ -219,6 +225,10 @@ extern unsigned long long ratchet_messages;
219 */ 225 */
220extern struct GNUNET_TIME_Relative ratchet_time; 226extern struct GNUNET_TIME_Relative ratchet_time;
221 227
228/**
229 * Signal that shutdown is happening: prevent recovery measures.
230 */
231extern int shutting_down;
222 232
223 233
224/** 234/**
@@ -233,6 +243,19 @@ GSC_send_to_client (struct CadetClient *c,
233 243
234 244
235/** 245/**
246 * A channel was destroyed by the other peer. Tell our client.
247 *
248 * @param c client that lost a channel
249 * @param ccn channel identification number for the client
250 * @param ch the channel object
251 */
252void
253GSC_handle_remote_channel_destroy (struct CadetClient *c,
254 struct GNUNET_CADET_ClientChannelNumber ccn,
255 struct CadetChannel *ch);
256
257
258/**
236 * Bind incoming channel to this client, and notify client 259 * Bind incoming channel to this client, and notify client
237 * about incoming connection. 260 * about incoming connection.
238 * 261 *