- add framework for mesh2 mutipeer tests
[oweals/gnunet.git] / src / mesh / mesh_test_lib.h
index 7ca535c23d619fd07a98adbe46e17642ded1756a..554d06541e4f0bddfe8520048de48de63bcde750 100644 (file)
 #ifndef MESH_TEST_LIB_H
 #define MESH_TEST_LIB_H
 
+#ifdef __cplusplus
+extern "C"
+{
+#if 0                           /* keep Emacsens' auto-indent happy */
+}
+#endif
+#endif
+
 #include "gnunet_testbed_service.h"
 #include "gnunet_mesh_service.h"
 
@@ -73,7 +81,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);
 
 
@@ -86,4 +94,13 @@ void
 GNUNET_MESH_TEST_cleanup (struct GNUNET_MESH_TEST_Context *ctx);
 
 
+#if 0                           /* keep Emacsens' auto-indent happy */
+{
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+
+/* ifndef MESH_TEST_LIB_H */
 #endif