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/mesh | |
parent | f7ac0dd19649e36d0369090e90e1b84800c14b3f (diff) |
Added transition code for new MESH API
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/mesh_api_new.c | 19 |
1 files changed, 19 insertions, 0 deletions
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) } +/** + * Transition API for tunnel ctx management + */ +void +GNUNET_MESH_tunnel_set_data (struct GNUNET_MESH_Tunnel *tunnel, void *data) +{ + tunnel->ctx = data; +} + +/** + * Transition API for tunnel ctx management + */ +void * +GNUNET_MESH_tunnel_get_data (struct GNUNET_MESH_Tunnel *tunnel) +{ + return tunnel->ctx; +} + + #if 0 /* keep Emacsens' auto-indent happy */ { #endif |