linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/2] shared/hfp: Add function to get multiparty call status
@ 2025-12-24 14:45 Frédéric Danis
  2025-12-24 14:45 ` [PATCH BlueZ 2/2] audio/hfp-hf: Update multiparty status on call creation Frédéric Danis
  2025-12-24 15:36 ` [BlueZ,1/2] shared/hfp: Add function to get multiparty call status bluez.test.bot
  0 siblings, 2 replies; 3+ messages in thread
From: Frédéric Danis @ 2025-12-24 14:45 UTC (permalink / raw)
  To: linux-bluetooth

---
 src/shared/hfp.c | 20 ++++++++++++++++++++
 src/shared/hfp.h |  1 +
 2 files changed, 21 insertions(+)

diff --git a/src/shared/hfp.c b/src/shared/hfp.c
index e4f5161b6..59e09f80e 100644
--- a/src/shared/hfp.c
+++ b/src/shared/hfp.c
@@ -2874,6 +2874,26 @@ const char *hfp_hf_call_get_number(struct hfp_hf *hfp, uint id)
 	return call->line_id;
 }
 
+bool hfp_hf_call_get_multiparty(struct hfp_hf *hfp, uint id, bool *mpty)
+{
+	struct hf_call *call;
+
+	if (!hfp)
+		return false;
+
+	DBG(hfp, "");
+
+	call = queue_find(hfp->calls, call_id_match, UINT_TO_PTR(id));
+	if (!call) {
+		DBG(hfp, "hf: no call with id: %u", id);
+		return false;
+	}
+
+	*mpty = call->mpty;
+
+	return true;
+}
+
 bool hfp_hf_dial(struct hfp_hf *hfp, const char *number,
 				hfp_response_func_t resp_cb,
 				void *user_data)
diff --git a/src/shared/hfp.h b/src/shared/hfp.h
index 045e1f7ab..201777605 100644
--- a/src/shared/hfp.h
+++ b/src/shared/hfp.h
@@ -247,6 +247,7 @@ bool hfp_hf_session_register(struct hfp_hf *hfp,
 bool hfp_hf_session(struct hfp_hf *hfp);
 
 const char *hfp_hf_call_get_number(struct hfp_hf *hfp, uint id);
+bool hfp_hf_call_get_multiparty(struct hfp_hf *hfp, uint id, bool *mpty);
 
 bool hfp_hf_dial(struct hfp_hf *hfp, const char *number,
 				hfp_response_func_t resp_cb,
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-12-24 15:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-24 14:45 [PATCH BlueZ 1/2] shared/hfp: Add function to get multiparty call status Frédéric Danis
2025-12-24 14:45 ` [PATCH BlueZ 2/2] audio/hfp-hf: Update multiparty status on call creation Frédéric Danis
2025-12-24 15:36 ` [BlueZ,1/2] shared/hfp: Add function to get multiparty call status bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).