]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink++.h
Modified meshlink_invite to generate invites for submesh
[meshlink] / src / meshlink++.h
index f7b0e1ace4919e5b15530085cf96daed79194ade..b9889aa1898bed14f28a6f2d58ca48df31b50d3b 100644 (file)
@@ -537,8 +537,8 @@ public:
         *  @return             This function returns a string that contains the invitation URL.
         *                      The application should call free() after it has finished using the URL.
         */
-       char *invite(const char *name, uint32_t flags = 0) {
-               return meshlink_invite_ex(handle, name, flags);
+       char *invite(submesh *submesh, const char *name, uint32_t flags = 0) {
+               return meshlink_invite_ex(handle, submesh, name, flags);
        }
 
        /// Use an invitation to join a mesh.