gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r15166 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r15166 - gnunet/src/mesh
Date: Thu, 5 May 2011 21:03:44 +0200

Author: bartpolot
Date: 2011-05-05 21:03:44 +0200 (Thu, 05 May 2011)
New Revision: 15166

Modified:
   gnunet/src/mesh/mesh_api_new.c
Log:
Prepared for new API client implementation


Modified: gnunet/src/mesh/mesh_api_new.c
===================================================================
--- gnunet/src/mesh/mesh_api_new.c      2011-05-05 19:03:00 UTC (rev 15165)
+++ gnunet/src/mesh/mesh_api_new.c      2011-05-05 19:03:44 UTC (rev 15166)
@@ -41,9 +41,11 @@
  * Opaque handle to the service.
  */
 struct GNUNET_MESH_Handle {
+    GNUNET_CLIENT_Connection            *mesh;
     struct GNUNET_MESH_Tunnel           *head;
     struct GNUNET_MESH_Tunnel           *tail;
     GNUNET_MESH_TunnelEndHandler        cleaner;
+    void                                *cls;
 };
 
 /**
@@ -79,10 +81,22 @@
                      GNUNET_MESH_TunnelEndHandler cleaner,
                      const struct GNUNET_MESH_MessageHandler *handlers, 
                      const GNUNET_MESH_ApplicationType *stypes) {
-    GNUNET_MESH_Handle *h;
+    GNUNET_MESH_Handle                  *h;
+    struct GNUNET_MESH_MessageHandler   *aux;
+    int                                 i;
+    uint16_t                            *types;
+
     h = GNUNET_malloc(sizeof(GNUNET_MESH_Handle));
 
     h->cleaner = cleaner;
+    h->mesh = GNUNET_CLIENT_connect("mesh", cfg);
+    h->cls = cls;
+
+    aux = handlers;
+    for(i = 0; handlers[i].type; i++) {
+        
+    }
+    
     return h;
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]