X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;h=8f4a9b003427f0c1e13f8c232ec38b60887fb21f;hp=ac72f3cc96f46a0438a24d567fa25688257a8ade;hb=1d7554c7b8c632adf86492be9dc7afecb49bca5d;hpb=99ab0b58b4a20473670b442981eeed417dde1582 diff --git a/src/meshlink++.h b/src/meshlink++.h index ac72f3cc..8f4a9b00 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -327,6 +327,18 @@ public: return (node *)meshlink_get_node(handle, name); } + /// Get a handle for a specific submesh. + /** This function returns a handle for the submesh with the given name. + * + * @param name The name of the submesh for which a handle is requested. + * + * @return A pointer to a meshlink::submesh which represents the requested submesh, + * or NULL if the requested submesh does not exist. + */ + submesh *get_submesh(const char *name) { + return (submesh *)meshlink_get_submesh(handle, name); + } + /// Get a handle for our own node. /** This function returns a handle for the local node. *