diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-03-10 09:52:45 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-03-10 09:52:45 +0000 |
commit | 89e4dd984b75138960cf43544f9637c2eef5981c (patch) | |
tree | 5ca166ef837020af4ff6f4c6c4f483860a21d9d6 /src/mesh/gnunet-service-mesh_connection.h | |
parent | 71470338de5201291b8ea217f98e519b760a74a4 (diff) | |
download | gnunet-89e4dd984b75138960cf43544f9637c2eef5981c.tar.gz gnunet-89e4dd984b75138960cf43544f9637c2eef5981c.zip |
- use MeshHash in connection code
Diffstat (limited to 'src/mesh/gnunet-service-mesh_connection.h')
-rw-r--r-- | src/mesh/gnunet-service-mesh_connection.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.h b/src/mesh/gnunet-service-mesh_connection.h index ec11cb8ab..f79117f2d 100644 --- a/src/mesh/gnunet-service-mesh_connection.h +++ b/src/mesh/gnunet-service-mesh_connection.h | |||
@@ -266,7 +266,7 @@ GMC_shutdown (void); | |||
266 | * @return Newly created connection, NULL in case of error (own id not in path). | 266 | * @return Newly created connection, NULL in case of error (own id not in path). |
267 | */ | 267 | */ |
268 | struct MeshConnection * | 268 | struct MeshConnection * |
269 | GMC_new (const struct GNUNET_HashCode *cid, | 269 | GMC_new (const struct GNUNET_MeshHash *cid, |
270 | struct MeshTunnel3 *t, | 270 | struct MeshTunnel3 *t, |
271 | struct MeshPeerPath *p, | 271 | struct MeshPeerPath *p, |
272 | unsigned int own_pos); | 272 | unsigned int own_pos); |
@@ -292,6 +292,18 @@ GMC_destroy (struct MeshConnection *c); | |||
292 | const struct GNUNET_MeshHash * | 292 | const struct GNUNET_MeshHash * |
293 | GMC_get_id (const struct MeshConnection *c); | 293 | GMC_get_id (const struct MeshConnection *c); |
294 | 294 | ||
295 | |||
296 | /** | ||
297 | * Get a hash for the connection ID. | ||
298 | * | ||
299 | * @param c Connection to get the hash. | ||
300 | * | ||
301 | * @return Hash expanded from the ID of the connection. | ||
302 | */ | ||
303 | const struct GNUNET_HashCode * | ||
304 | GMC_get_h (const struct MeshConnection *c); | ||
305 | |||
306 | |||
295 | /** | 307 | /** |
296 | * Get the connection path. | 308 | * Get the connection path. |
297 | * | 309 | * |