aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/p2p/p2p.h')
-rw-r--r--src/p2p/p2p.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/p2p/p2p.h b/src/p2p/p2p.h
index ce41ca8..d929c50 100644
--- a/src/p2p/p2p.h
+++ b/src/p2p/p2p.h
@@ -1552,6 +1552,14 @@ const u8 * p2p_iterate_group_members(struct p2p_group *group, void **next);
const u8 * p2p_group_get_dev_addr(struct p2p_group *group, const u8 *addr);
/**
+ * p2p_group_is_client_connected - Check whether a specific client is connected
+ * @group: P2P group context from p2p_group_init()
+ * @addr: P2P Device Address of the client
+ * Returns: 1 if client is connected or 0 if not
+ */
+int p2p_group_is_client_connected(struct p2p_group *group, const u8 *dev_addr);
+
+/**
* p2p_get_peer_found - Get P2P peer info structure of a found peer
* @p2p: P2P module context from p2p_init()
* @addr: P2P Device Address of the peer or %NULL to indicate the first peer