aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_tunnel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_tunnel.h')
-rw-r--r--src/cadet/gnunet-service-cadet_tunnel.h41
1 files changed, 23 insertions, 18 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.h b/src/cadet/gnunet-service-cadet_tunnel.h
index e836e4b24..ca553a7d3 100644
--- a/src/cadet/gnunet-service-cadet_tunnel.h
+++ b/src/cadet/gnunet-service-cadet_tunnel.h
@@ -47,24 +47,24 @@ extern "C"
47 */ 47 */
48enum CadetTunnelCState 48enum CadetTunnelCState
49{ 49{
50 /** 50 /**
51 * Uninitialized status, should never appear in operation. 51 * Uninitialized status, should never appear in operation.
52 */ 52 */
53 CADET_TUNNEL_NEW, 53 CADET_TUNNEL_NEW,
54 54
55 /** 55 /**
56 * No path to the peer known yet. 56 * No path to the peer known yet.
57 */ 57 */
58 CADET_TUNNEL_SEARCHING, 58 CADET_TUNNEL_SEARCHING,
59 59
60 /** 60 /**
61 * Request sent, not yet answered. 61 * Request sent, not yet answered.
62 */ 62 */
63 CADET_TUNNEL_WAITING, 63 CADET_TUNNEL_WAITING,
64 64
65 /** 65 /**
66 * Peer connected and ready to accept data. 66 * Peer connected and ready to accept data.
67 */ 67 */
68 CADET_TUNNEL_READY, 68 CADET_TUNNEL_READY,
69 69
70 /** 70 /**
@@ -142,13 +142,18 @@ struct CadetTunnelQueue;
142 * @param type Type of message sent. 142 * @param type Type of message sent.
143 * @param size Size of the message. 143 * @param size Size of the message.
144 */ 144 */
145typedef void (*GCT_sent) (void *cls, 145typedef void
146 struct CadetTunnel *t, 146(*GCT_sent) (void *cls,
147 struct CadetTunnelQueue *q, 147 struct CadetTunnel *t,
148 uint16_t type, size_t size); 148 struct CadetTunnelQueue *q,
149 uint16_t type, size_t size);
150
151typedef void
152(*GCT_conn_iter) (void *cls, struct CadetConnection *c);
153
149 154
150typedef void (*GCT_conn_iter) (void *cls, struct CadetConnection *c); 155typedef void
151typedef void (*GCT_chan_iter) (void *cls, struct CadetChannel *ch); 156(*GCT_chan_iter) (void *cls, struct CadetChannel *ch);
152 157
153 158
154/******************************************************************************/ 159/******************************************************************************/