]> git.meshlink.io Git - meshlink/blobdiff - test/import-export.c
Add meshlink_add_invitation_address(), deprecate meshlink_add_address().
[meshlink] / test / import-export.c
index 392f1dac18753eebfea70db506c591a48801e464..5d37146fd09502d8711f70a592033124462c8879 100644 (file)
@@ -43,8 +43,8 @@ int main() {
 
        // Import and export both side's data
 
-       assert(meshlink_add_address(mesh1, "localhost"));
-       assert(meshlink_add_address(mesh2, "localhost"));
+       assert(meshlink_set_canonical_address(mesh1, meshlink_get_self(mesh1), "localhost", NULL));
+       assert(meshlink_set_canonical_address(mesh2, meshlink_get_self(mesh2), "localhost", NULL));
 
        char *data = meshlink_export(mesh1);
        assert(data);