]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink++.h
Add meshlink_get_node_tiny().
[meshlink] / src / meshlink++.h
index 25fd34f3f2c1530c14ad99db328e646d8c81a2ed..fd66399217596e29ef54f85e1bd83d3c425edfaa 100644 (file)
@@ -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.
         *