diff options
-rw-r--r-- | src/mesh/Makefile.am | 2 | ||||
-rw-r--r-- | src/mesh/mesh_test_lib.c | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/mesh/Makefile.am b/src/mesh/Makefile.am index fa6bb59a22..65a813e2b5 100644 --- a/src/mesh/Makefile.am +++ b/src/mesh/Makefile.am @@ -249,6 +249,8 @@ test_mesh_2dtorus_SOURCES = \ test_mesh_2dtorus.c test_mesh_2dtorus_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ + $(top_builddir)/src/mesh/libgnunetmesh.la \ + $(top_builddir)/src/testbed/libgnunettestbed.la \ $(top_builddir)/src/mesh/libgnunetmeshtest.a test_mesh_2dtorus_DEPENDENCIES = \ libgnunetmeshtest.a diff --git a/src/mesh/mesh_test_lib.c b/src/mesh/mesh_test_lib.c index 7aabc4f771..aa669ca038 100644 --- a/src/mesh/mesh_test_lib.c +++ b/src/mesh/mesh_test_lib.c @@ -24,6 +24,7 @@ */ #include "platform.h" #include "mesh_test_lib.h" +#include "gnunet_mesh_service.h" /** * Test context for a MESH Test. @@ -63,17 +64,17 @@ struct GNUNET_MESH_TEST_Context /** * Handler for incoming tunnels. */ - GNUNET_MESH_InboundTunnelNotificationHandler new_tunnel; + GNUNET_MESH_InboundTunnelNotificationHandler *new_tunnel; /** * Cleaner for destroyed incoming tunnels. */ - GNUNET_MESH_TunnelEndHandler cleaner; + GNUNET_MESH_TunnelEndHandler *cleaner; /** * Message handlers. */ - GNUNET_MESH_MessageHandler* handlers; + struct GNUNET_MESH_MessageHandler* handlers; /** * Application types. @@ -266,7 +267,7 @@ GNUNET_MESH_TEST_run (const char *testname, void *tmain_cls, GNUNET_MESH_InboundTunnelNotificationHandler new_tunnel, GNUNET_MESH_TunnelEndHandler cleaner, - GNUNET_MESH_MessageHandler* handlers, + struct GNUNET_MESH_MessageHandler* handlers, const GNUNET_MESH_ApplicationType* stypes) { struct GNUNET_MESH_TEST_Context *ctx; |