From: Guus Sliepen Date: Thu, 29 Jul 2021 22:01:57 +0000 (+0200) Subject: Remove the declaration of meshlink_get_node_reachability(). X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=39972c223310b2e12f3d66615898871daa173f9f;p=meshlink-tiny Remove the declaration of meshlink_get_node_reachability(). --- diff --git a/src/meshlink-tiny++.h b/src/meshlink-tiny++.h index 4793ea0..b76fc56 100644 --- a/src/meshlink-tiny++.h +++ b/src/meshlink-tiny++.h @@ -241,20 +241,6 @@ public: return (node *)meshlink_get_node(handle, name); } - /// Get a node's reachability status. - /** This function returns the current reachability of a given node, and the times of the last state changes. - * If a given state change never happened, the time returned will be 0. - * - * @param node A pointer to a meshlink::node describing the node. - * @param last_reachable A pointer to a time_t variable that will be filled in with the last time the node became reachable. - * @param last_unreachable A pointer to a time_t variable that will be filled in with the last time the node became unreachable. - * - * @return This function returns true if the node is currently reachable, false otherwise. - */ - bool get_node_reachability(node *node, time_t *last_reachable = NULL, time_t *last_unreachable = NULL) { - return meshlink_get_node_reachability(handle, node, last_reachable, last_unreachable); - } - /// Get a handle for our own node. /** This function returns a handle for the local node. * diff --git a/src/meshlink-tiny.h b/src/meshlink-tiny.h index 5cb9c5e..953a0e9 100644 --- a/src/meshlink-tiny.h +++ b/src/meshlink-tiny.h @@ -677,22 +677,6 @@ struct meshlink_node **meshlink_get_all_nodes_by_last_reachable(struct meshlink_ */ dev_class_t meshlink_get_node_dev_class(struct meshlink_handle *mesh, struct meshlink_node *node) __attribute__((__warn_unused_result__)); -/// Get a node's reachability status. -/** This function returns the current reachability of a given node, and the times of the last state changes. - * If a given state change never happened, the time returned will be 0. - * - * \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. - * @param last_reachable A pointer to a time_t variable that will be filled in with the last time the node became reachable. - * Pass NULL to not have anything written. - * @param last_unreachable A pointer to a time_t variable that will be filled in with the last time the node became unreachable. - * Pass NULL to not have anything written. - * - * @return This function returns true if the node is currently reachable, false otherwise. - */ -bool meshlink_get_node_reachability(struct meshlink_handle *mesh, struct meshlink_node *node, time_t *last_reachable, time_t *last_unreachable); - /// Verify the signature generated by another node of a piece of data. /** This function verifies the signature that another node generated for a piece of data. * diff --git a/src/meshlink.sym b/src/meshlink.sym index d7051a7..44c99d0 100644 --- a/src/meshlink.sym +++ b/src/meshlink.sym @@ -26,7 +26,6 @@ meshlink_get_all_nodes_by_last_reachable meshlink_get_fingerprint meshlink_get_node meshlink_get_node_dev_class -meshlink_get_node_reachability meshlink_get_self meshlink_hint_address meshlink_hint_network_change