X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fmeshlink.h;fp=src%2Fmeshlink.h;h=9a887168acd7a56c5c624f88f11e6243201d4d6c;hp=a6c5b4b9401a2233808b34914f8d692aa59bb71c;hb=88b24fcfccc5802db199d3fac2cec659ac48ca78;hpb=b3d36651004e8124d9410e249215997a108473ec diff --git a/src/meshlink.h b/src/meshlink.h index a6c5b4b9..9a887168 100644 --- a/src/meshlink.h +++ b/src/meshlink.h @@ -835,6 +835,18 @@ struct meshlink_node **meshlink_get_all_nodes_by_blacklisted(struct meshlink_han */ dev_class_t meshlink_get_node_dev_class(struct meshlink_handle *mesh, struct meshlink_node *node) __attribute__((__warn_unused_result__)); +/// 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. + * + * \memberof meshlink_node + * @param mesh A handle which represents an instance of MeshLink. + * @param node A pointer to a struct meshlink_node describing the node. + * + * @return This function returns true if the node is a tiny node. + */ +bool meshlink_get_node_tiny(struct meshlink_handle *mesh, struct meshlink_node *node) __attribute__((__warn_unused_result__)); + /// Get the node's blacklist status. /** This function returns the given node is blacklisted. *