]> git.meshlink.io Git - meshlink-tiny/blobdiff - test/utils.h
Reduce memory usage of meshlink_join().
[meshlink-tiny] / test / utils.h
index 11facfc3c025b248772db1ae7e273ce04c0b2278..d893ee4ca11983eb9bb55f130cde5673f62467f0 100644 (file)
@@ -5,7 +5,7 @@
 #include <time.h>
 #include <pthread.h>
 
-#include "../src/meshlink.h"
+#include "../src/meshlink-tiny.h"
 
 // Simple synchronisation between threads
 struct sync_flag {
@@ -26,12 +26,15 @@ extern void open_meshlink_pair_ephemeral(meshlink_handle_t **a, meshlink_handle_
 
 /// Start a pair of meshlink instances and wait for them to connect together.
 extern void start_meshlink_pair(meshlink_handle_t *a, meshlink_handle_t *b);
+extern void start_full_tiny_pair(meshlink_handle_t *a, meshlink_handle_t *b);
 
 /// Stop a pair of meshlink instances.
 extern void stop_meshlink_pair(meshlink_handle_t *a, meshlink_handle_t *b);
+extern void stop_full_tiny_pair(meshlink_handle_t *a, meshlink_handle_t *b);
 
 /// Stop and cleanup a pair of meshlink instances.
 extern void close_meshlink_pair(meshlink_handle_t *a, meshlink_handle_t *b);
+extern void close_full_tiny_pair(meshlink_handle_t *a, meshlink_handle_t *b);
 
 /// Link two meshlink instances.
 extern void link_meshlink_pair(meshlink_handle_t *a, meshlink_handle_t *b);