]> git.meshlink.io Git - meshlink/blobdiff - test/utils.h
Test UDP channels.
[meshlink] / test / utils.h
index 27bb38c3fe9e20a8abae834c1d802d941daee2a2..dfada2c70b6e5dab562676690fe3ee18c1aabcc5 100644 (file)
@@ -11,6 +11,7 @@ struct sync_flag {
 };
 
 extern void set_sync_flag(struct sync_flag *s, bool value);
+extern bool check_sync_flag(struct sync_flag *s);
 extern bool wait_sync_flag(struct sync_flag *s, int seconds);
 
 /// Create a pair of meshlink instances that are already joined together.
@@ -25,6 +26,9 @@ extern void stop_meshlink_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, const char *prefix);
 
+/// Link two meshlink instances.
+extern void link_meshlink_pair(meshlink_handle_t *a, meshlink_handle_t *b);
+
 #define assert_after(cond, timeout)\
        do {\
                for(int i = 0; i++ <= timeout;) {\