[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17836 - in gnunet/src: include mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17836 - in gnunet/src: include mesh |
Date: |
Fri, 28 Oct 2011 13:17:35 +0200 |
Author: bartpolot
Date: 2011-10-28 13:17:35 +0200 (Fri, 28 Oct 2011)
New Revision: 17836
Modified:
gnunet/src/include/gnunet_mesh_service_new.h
gnunet/src/mesh/mesh_api_new.c
Log:
Added transition code for new MESH API
Modified: gnunet/src/include/gnunet_mesh_service_new.h
===================================================================
--- gnunet/src/include/gnunet_mesh_service_new.h 2011-10-28 10:29:43 UTC
(rev 17835)
+++ gnunet/src/include/gnunet_mesh_service_new.h 2011-10-28 11:17:35 UTC
(rev 17836)
@@ -321,6 +321,19 @@
*th);
+/**
+ * Transition API for tunnel ctx management
+ */
+void
+GNUNET_MESH_tunnel_set_data (struct GNUNET_MESH_Tunnel *tunnel, void *data);
+
+/**
+ * Transition API for tunnel ctx management
+ */
+void *
+GNUNET_MESH_tunnel_get_data (struct GNUNET_MESH_Tunnel *tunnel);
+
+
#if 0 /* keep Emacsens' auto-indent happy */
{
#endif
Modified: gnunet/src/mesh/mesh_api_new.c
===================================================================
--- gnunet/src/mesh/mesh_api_new.c 2011-10-28 10:29:43 UTC (rev 17835)
+++ gnunet/src/mesh/mesh_api_new.c 2011-10-28 11:17:35 UTC (rev 17836)
@@ -1575,6 +1575,25 @@
}
+/**
+ * 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17836 - in gnunet/src: include mesh,
gnunet <=