Skip to contentSkip to conversation

doc/ccpTest: Add document support for CCP test interface

PATCH Superseded Ajay KV 2 participants 3 messages May 9, 2024

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Ajay KV

author
#0 lore raw

PATCH v3 1/2 doc/ccpTest: Add document support for CCP test interface

call control profile interface has been documented with man page added.

---
 Makefile.am               |  3 +-
 doc/org.bluez.CcpTest.5   | 82 +++++++++++++++++++++++++++++++++++++++
 doc/org.bluez.CcpTest.rst | 50 ++++++++++++++++++++++++
 3 files changed, 134 insertions(+), 1 deletion(-)
 create mode 100644 doc/org.bluez.CcpTest.5
 create mode 100644 doc/org.bluez.CcpTest.rst
Makefile.am +2 -1
index 05d02932f205..2c44fb52c78b 100644
@@ -377,7 +377,8 @@ man_MANS += doc/org.bluez.obex.Client.5 doc/org.bluez.obex.Session.5 \
 		doc/org.bluez.obex.PhonebookAccess.5 \
 		doc/org.bluez.obex.MessageAccess.5 \
 		doc/org.bluez.obex.Message.5 \
-		doc/org.bluez.obex.AgentManager.5 doc/org.bluez.obex.Agent.5
+		doc/org.bluez.obex.AgentManager.5 doc/org.bluez.obex.Agent.5 \
+		doc/org.bluez.CcpTest.5
 endif
 manual_pages += src/bluetoothd.8
 manual_pages += doc/org.bluez.Adapter.5 doc/org.bluez.Device.5 \
doc/org.bluez.CcpTest.5 new file +82 -0

82 lines not on this page · raw message

doc/org.bluez.CcpTest.rst new file +50 -0

50 lines not on this page · raw message

Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v3 2/2 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
#2 lore raw
In reply to Ajay KV

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=851799

---Test result---

Test Summary:

CheckPatch                    PASS      1.13 seconds
GitLint                       PASS      0.66 seconds
BuildEll                      PASS      24.45 seconds
BluezMake                     PASS      1666.92 seconds
MakeCheck                     PASS      13.89 seconds
MakeDistcheck                 FAIL      73.95 seconds
CheckValgrind                 PASS      245.74 seconds
CheckSmatch                   PASS      349.71 seconds
bluezmakeextell               PASS      118.98 seconds
IncrementalBuild              FAIL      0.07 seconds
ScanBuild                     FAIL      0.20 seconds

Details
##############################
Test: MakeDistcheck - FAIL
Desc: Run Bluez Make Distcheck
Output:

Package cups was not found in the pkg-config search path.
Perhaps you should add the directory containing `cups.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cups' found
make[2]: *** No rule to make target 'doc/org.bluez.CcpTest.5', needed by 'all-am'. Stop. make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:4657: all] Error 2
make: *** [Makefile:12116: distcheck] Error 1
##############################
Test: IncrementalBuild - FAIL
Desc: Incremental build with the patches in the series
Output:

error: Your local changes to the following files would be overwritten by checkout:
doc/org.bluez.CcpTest.5
Please commit your changes or stash them before you switch branches. Aborting
##############################
Test: ScanBuild - FAIL
Desc: Run Scan Build
Output:
Setup failed

---
Regards,
Linux Bluetooth