gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r27414 - gnunet/src/mesh
Date: Tue, 11 Jun 2013 15:45:43 +0200

Author: bartpolot
Date: 2013-06-11 15:45:43 +0200 (Tue, 11 Jun 2013)
New Revision: 27414

Modified:
   gnunet/src/mesh/mesh2_test_lib.c
   gnunet/src/mesh/mesh2_test_lib.h
Log:
- Adapt new testing lib to mesh2


Modified: gnunet/src/mesh/mesh2_test_lib.c
===================================================================
--- gnunet/src/mesh/mesh2_test_lib.c    2013-06-11 13:22:50 UTC (rev 27413)
+++ gnunet/src/mesh/mesh2_test_lib.c    2013-06-11 13:45:43 UTC (rev 27414)
@@ -24,7 +24,7 @@
  */
 #include "platform.h"
 #include "gnunet_util_lib.h"
-#include "mesh_test_lib.h"
+#include "mesh2_test_lib.h"
 #include "gnunet_mesh2_service.h"
 
 /**
@@ -78,9 +78,9 @@
   struct GNUNET_MESH_MessageHandler* handlers;
 
   /**
-   * Application types.
+   * Application ports.
    */
-  const GNUNET_MESH_ApplicationType* stypes;
+  const uint32_t *ports;
 
 };
 
@@ -125,7 +125,7 @@
                            ctx->new_tunnel,
                            ctx->cleaner,
                            ctx->handlers,
-                           ctx->stypes);
+                           ctx->ports);
   return h;
 }
 
@@ -190,11 +190,6 @@
 }
 
 
-/**
- * Clean up the testbed.
- *
- * @param ctx handle for the testbed
- */
 void
 GNUNET_MESH_TEST_cleanup (struct GNUNET_MESH_TEST_Context *ctx)
 {
@@ -255,21 +250,6 @@
 }
 
 
-/**
- * Run a test using the given name, configuration file and number of
- * peers.
- * All mesh callbacks will receive the peer number as the closure.
- *
- * @param testname Name of the test (for logging).
- * @param cfgname Name of the configuration file.
- * @param num_peers Number of peers to start.
- * @param tmain Main function to run once the testbed is ready.
- * @param tmain_cls Closure for 'tmain'.
- * @param new_tunnel Handler for incoming tunnels.
- * @param cleaner Cleaner for destroyed incoming tunnels.
- * @param handlers Message handlers.
- * @param stypes Application types.
- */
 void 
 GNUNET_MESH_TEST_run (const char *testname,
                       const char *cfgname,
@@ -279,7 +259,7 @@
                       GNUNET_MESH_InboundTunnelNotificationHandler new_tunnel,
                       GNUNET_MESH_TunnelEndHandler cleaner,
                       struct GNUNET_MESH_MessageHandler* handlers,
-                      const GNUNET_MESH_ApplicationType* stypes)
+                      const uint32_t *ports)
 {
   struct GNUNET_MESH_TEST_Context *ctx;
 
@@ -292,7 +272,7 @@
   ctx->new_tunnel = new_tunnel;
   ctx->cleaner = cleaner;
   ctx->handlers = handlers;
-  ctx->stypes = stypes;
+  ctx->ports = ports;
   GNUNET_TESTBED_test_run (testname,
                            cfgname,
                            num_peers,

Modified: gnunet/src/mesh/mesh2_test_lib.h
===================================================================
--- gnunet/src/mesh/mesh2_test_lib.h    2013-06-11 13:22:50 UTC (rev 27413)
+++ gnunet/src/mesh/mesh2_test_lib.h    2013-06-11 13:45:43 UTC (rev 27414)
@@ -71,7 +71,7 @@
  * @param new_tunnel Handler for incoming tunnels.
  * @param cleaner Cleaner for destroyed incoming tunnels.
  * @param handlers Message handlers.
- * @param stypes Application types.
+ * @param ports Ports the peers offer.
  */
 void 
 GNUNET_MESH_TEST_run (const char *testname,
@@ -82,7 +82,7 @@
                       GNUNET_MESH_InboundTunnelNotificationHandler new_tunnel,
                       GNUNET_MESH_TunnelEndHandler cleaner,
                       struct GNUNET_MESH_MessageHandler* handlers,
-                      const GNUNET_MESH_ApplicationType* stypes);
+                      const uint32_t* ports);
 
 
 /**




reply via email to

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