class mesh;
class node;
class channel;
+class submesh;
/// Severity of log messages generated by MeshLink.
typedef meshlink_log_level_t log_level_t;
class node: public meshlink_node_t {
};
+/// A class describing a MeshLink Sub-Mesh.
+class submesh: public meshlink_submesh_t {
+};
+
/// A class describing a MeshLink channel.
class channel: public meshlink_channel_t {
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.