aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.h')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.h b/src/mesh/gnunet-service-mesh_tunnel.h
index 76b867cbc..afa0ee169 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.h
+++ b/src/mesh/gnunet-service-mesh_tunnel.h
@@ -41,7 +41,7 @@ extern "C"
41#include "gnunet_util_lib.h" 41#include "gnunet_util_lib.h"
42 42
43#include "gnunet-service-mesh_channel.h" 43#include "gnunet-service-mesh_channel.h"
44 44#include "gnunet-service-mesh_connection.h"
45 45
46/** 46/**
47 * All the states a tunnel can be in. 47 * All the states a tunnel can be in.
@@ -142,6 +142,24 @@ GMT_destroy (struct MeshTunnel3 *t);
142void 142void
143GMT_change_state (struct MeshTunnel3* t, enum MeshTunnelState state); 143GMT_change_state (struct MeshTunnel3* t, enum MeshTunnelState state);
144 144
145/**
146 * Add a connection to a tunnel.
147 *
148 * @param t Tunnel.
149 * @param c Connection.
150 */
151void
152GMT_add_connection (struct MeshTunnel3 *t, struct MeshConnection *c);
153
154
155/**
156 * Remove a connection from a tunnel.
157 *
158 * @param t Tunnel.
159 * @param c Connection.
160 */
161void
162GMT_remove_connection (struct MeshTunnel3 *t, struct MeshConnection *c);
145 163
146/** 164/**
147 * Cache a message to be sent once tunnel is online. 165 * Cache a message to be sent once tunnel is online.
@@ -177,6 +195,17 @@ GMT_count_connections (struct MeshTunnel3 *t);
177unsigned int 195unsigned int
178GMT_count_channels (struct MeshTunnel3 *t); 196GMT_count_channels (struct MeshTunnel3 *t);
179 197
198/**
199 * Get the total buffer space for a tunnel.
200 *
201 * @param t Tunnel.
202 * @param fwd Is this for FWD traffic?
203 *
204 * @return Buffer space offered by all connections in the tunnel.
205 */
206unsigned int
207GMT_get_buffer (struct MeshTunnel3 *t, int fwd);
208
180#if 0 /* keep Emacsens' auto-indent happy */ 209#if 0 /* keep Emacsens' auto-indent happy */
181{ 210{
182#endif 211#endif