diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-10-24 02:04:48 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-10-24 02:04:48 +0000 |
commit | 8d774a0d462c9de472d58594663c1dd8a850164b (patch) | |
tree | 658cfbb326364a623831110edbb9f800443d1638 /src/mesh/gnunet-service-mesh_connection.h | |
parent | 297126b8347dd8d164f26accdf723d805a4c31bc (diff) | |
download | gnunet-8d774a0d462c9de472d58594663c1dd8a850164b.tar.gz gnunet-8d774a0d462c9de472d58594663c1dd8a850164b.zip |
- fix leaks
- refactor to simplify APIs
Diffstat (limited to 'src/mesh/gnunet-service-mesh_connection.h')
-rw-r--r-- | src/mesh/gnunet-service-mesh_connection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.h b/src/mesh/gnunet-service-mesh_connection.h index 3f75bcdab..fbff84335 100644 --- a/src/mesh/gnunet-service-mesh_connection.h +++ b/src/mesh/gnunet-service-mesh_connection.h | |||
@@ -223,6 +223,8 @@ GMC_shutdown (void); | |||
223 | * @param t Tunnel this connection belongs to (or NULL); | 223 | * @param t Tunnel this connection belongs to (or NULL); |
224 | * @param p Path this connection has to use. | 224 | * @param p Path this connection has to use. |
225 | * @param own_pos Own position in the @c p path. | 225 | * @param own_pos Own position in the @c p path. |
226 | * | ||
227 | * @return Newly created connection, NULL in case of error (own id not in path). | ||
226 | */ | 228 | */ |
227 | struct MeshConnection * | 229 | struct MeshConnection * |
228 | GMC_new (const struct GNUNET_HashCode *cid, | 230 | GMC_new (const struct GNUNET_HashCode *cid, |
@@ -398,13 +400,11 @@ GMC_is_sendable (struct MeshConnection *c, int fwd); | |||
398 | * @param message Message to send. Function makes a copy of it. | 400 | * @param message Message to send. Function makes a copy of it. |
399 | * If message is not hop-by-hop, decrements TTL of copy. | 401 | * If message is not hop-by-hop, decrements TTL of copy. |
400 | * @param c Connection on which this message is transmitted. | 402 | * @param c Connection on which this message is transmitted. |
401 | * @param ch Channel on which this message is transmitted, or NULL. | ||
402 | * @param fwd Is this a fwd message? | 403 | * @param fwd Is this a fwd message? |
403 | */ | 404 | */ |
404 | void | 405 | void |
405 | GMC_send_prebuilt_message (const struct GNUNET_MessageHeader *message, | 406 | GMC_send_prebuilt_message (const struct GNUNET_MessageHeader *message, |
406 | struct MeshConnection *c, | 407 | struct MeshConnection *c, |
407 | struct MeshChannel *ch, | ||
408 | int fwd); | 408 | int fwd); |
409 | 409 | ||
410 | /** | 410 | /** |