X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmeshlink%2B%2B.h;fp=src%2Fmeshlink%2B%2B.h;h=fd66399217596e29ef54f85e1bd83d3c425edfaa;hb=88b24fcfccc5802db199d3fac2cec659ac48ca78;hp=25fd34f3f2c1530c14ad99db328e646d8c81a2ed;hpb=b3d36651004e8124d9410e249215997a108473ec;p=meshlink diff --git a/src/meshlink++.h b/src/meshlink++.h index 25fd34f3..fd663992 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -449,6 +449,18 @@ public: return meshlink_get_node_blacklisted(handle, node); } + /// Get the node's tiny status. + /** This function returns true if the given node is a tiny node. + * Note that the tiny status of a node will only be known if the node has been reachable at least once. + * + * @param node A pointer to a meshlink::node describing the node. + * + * @return This function returns true if the node is a tiny node. + */ + bool get_node_tiny(node *node) { + return meshlink_get_node_tiny(handle, node); + } + /// Get a handle for a specific submesh. /** This function returns a handle for the submesh with the given name. *