diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-10-28 11:17:35 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-10-28 11:17:35 +0000 |
commit | 20bb6e2908d9991a716d751563b9b45cf79961f6 (patch) | |
tree | 3d22585608e7fd8a70d2f4ffc1343beaf9a731f1 /src | |
parent | f7ac0dd19649e36d0369090e90e1b84800c14b3f (diff) | |
download | gnunet-20bb6e2908d9991a716d751563b9b45cf79961f6.tar.gz gnunet-20bb6e2908d9991a716d751563b9b45cf79961f6.zip |
Added transition code for new MESH API
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_mesh_service_new.h | 13 | ||||
-rw-r--r-- | src/mesh/mesh_api_new.c | 19 |
2 files changed, 32 insertions, 0 deletions
diff --git a/src/include/gnunet_mesh_service_new.h b/src/include/gnunet_mesh_service_new.h index 6dd9da66c..0497cee2f 100644 --- a/src/include/gnunet_mesh_service_new.h +++ b/src/include/gnunet_mesh_service_new.h | |||
@@ -321,6 +321,19 @@ GNUNET_MESH_notify_transmit_ready_cancel (struct GNUNET_MESH_TransmitHandle | |||
321 | *th); | 321 | *th); |
322 | 322 | ||
323 | 323 | ||
324 | /** | ||
325 | * Transition API for tunnel ctx management | ||
326 | */ | ||
327 | void | ||
328 | GNUNET_MESH_tunnel_set_data (struct GNUNET_MESH_Tunnel *tunnel, void *data); | ||
329 | |||
330 | /** | ||
331 | * Transition API for tunnel ctx management | ||
332 | */ | ||
333 | void * | ||
334 | GNUNET_MESH_tunnel_get_data (struct GNUNET_MESH_Tunnel *tunnel); | ||
335 | |||
336 | |||
324 | #if 0 /* keep Emacsens' auto-indent happy */ | 337 | #if 0 /* keep Emacsens' auto-indent happy */ |
325 | { | 338 | { |
326 | #endif | 339 | #endif |
diff --git a/src/mesh/mesh_api_new.c b/src/mesh/mesh_api_new.c index bfdd902b7..1d2586825 100644 --- a/src/mesh/mesh_api_new.c +++ b/src/mesh/mesh_api_new.c | |||
@@ -1575,6 +1575,25 @@ GNUNET_MESH_notify_transmit_ready_cancel (struct GNUNET_MESH_TransmitHandle *th) | |||
1575 | } | 1575 | } |
1576 | 1576 | ||
1577 | 1577 | ||
1578 | /** | ||
1579 | * Transition API for tunnel ctx management | ||
1580 | */ | ||
1581 | void | ||
1582 | GNUNET_MESH_tunnel_set_data (struct GNUNET_MESH_Tunnel *tunnel, void *data) | ||
1583 | { | ||
1584 | tunnel->ctx = data; | ||
1585 | } | ||
1586 | |||
1587 | /** | ||
1588 | * Transition API for tunnel ctx management | ||
1589 | */ | ||
1590 | void * | ||
1591 | GNUNET_MESH_tunnel_get_data (struct GNUNET_MESH_Tunnel *tunnel) | ||
1592 | { | ||
1593 | return tunnel->ctx; | ||
1594 | } | ||
1595 | |||
1596 | |||
1578 | #if 0 /* keep Emacsens' auto-indent happy */ | 1597 | #if 0 /* keep Emacsens' auto-indent happy */ |
1579 | { | 1598 | { |
1580 | #endif | 1599 | #endif |