Skip to contentSkip to conversation

bluetoothctl: Add submenu for Call control profile testing

PATCH In review Ajay KV 2 participants 2 messages May 7, 2024

Subsystems (2)
lore
Share & tools
lore

Ajay KV

author
#0 lore raw

PATCH v3 1/1 bluetoothctl: Add submenu for Call control profile testing

This adds submenu in bluetoothctl for CCP Testing with options like answer and reject the active call. This feature is tested with windows machine as CCP server which uses Teams application to make calls

---
 Makefile.tools    |   4 +-
 client/ccp_test.c | 212 ++++++++++++++++++++++++++++++++++++++++++++++
 client/ccp_test.h |  12 +++
 client/main.c     |   3 +
 4 files changed, 230 insertions(+), 1 deletion(-)
 create mode 100644 client/ccp_test.c
 create mode 100644 client/ccp_test.h
Makefile.tools +3 -1
index 679c914bf8cd..a5587427f549 100644
@@ -13,7 +13,9 @@ client_bluetoothctl_SOURCES = client/main.c \
 					client/gatt.h client/gatt.c \
 					client/admin.h client/admin.c \
 					client/player.h client/player.c \
-					client/mgmt.h client/mgmt.c
+					client/mgmt.h client/mgmt.c \
+					client/ccp_test.c \
+					client/ccp_test.h
 client_bluetoothctl_LDADD = lib/libbluetooth-internal.la \
 			gdbus/libgdbus-internal.la src/libshared-glib.la \
 			$(GLIB_LIBS) $(DBUS_LIBS) -lreadline
client/ccp_test.c new file +212 -0

212 lines not on this page · raw message

client/ccp_test.h new file +12 -0
new file mode 100644
index 000000000000..fc2ab2042bb8
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ *
+ *  BlueZ - Bluetooth protocol stack for Linux
+ *
+ *  Copyright (C) 2024 Intel Corporation. All rights reserved.
+ *
+ *
+ */
+
+void ccptest_add_submenu(void);
+void ccptest_remove_submenu(void);
client/main.c +3 -0
index c8b0f7f1c2d8..e3836d5ed3f9 100644
@@ -34,6 +34,7 @@
 #include "admin.h"
 #include "player.h"
 #include "mgmt.h"
+#include "ccp_test.h"
 
 /* String display constants */
 #define COLORED_NEW	COLOR_GREEN "NEW" COLOR_OFF
@@ -3199,6 +3200,7 @@ int main(int argc, char *argv[])
 
 	admin_add_submenu();
 	player_add_submenu();
+	ccptest_add_submenu();
 	mgmt_add_submenu();
 
 	client = g_dbus_client_new(dbus_conn, "org.bluez", "/org/bluez");
@@ -3216,6 +3218,7 @@ int main(int argc, char *argv[])
 
 	admin_remove_submenu();
 	player_remove_submenu();
+	ccptest_remove_submenu();
 	mgmt_remove_submenu();
 
 	g_dbus_client_unref(client);
Signature · 1 line
2.34.1
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=851094

---Test result---

Test Summary:

CheckPatch                    PASS      1.30 seconds
GitLint                       PASS      0.19 seconds
BuildEll                      PASS      24.89 seconds
BluezMake                     PASS      1705.55 seconds
MakeCheck                     PASS      13.07 seconds
MakeDistcheck                 PASS      178.77 seconds
CheckValgrind                 PASS      249.36 seconds
CheckSmatch                   PASS      353.04 seconds
bluezmakeextell               PASS      120.03 seconds
IncrementalBuild              PASS      1477.28 seconds
ScanBuild                     PASS      1024.32 seconds

---
Regards,
Linux Bluetooth