Skip to contentSkip to conversation

mcap: Rename mcap-lib to mcap

PATCH In review Ravi kumar Veeramally 2 participants 3 messages Oct 2, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mcap: Rename mcap-lib to mcap

---
 Makefile.plugins                       | 2 +-
 android/Android.mk                     | 4 ++--
 android/Makefile.am                    | 4 ++--
 android/health.c                       | 2 +-
 android/mcaptest.c                     | 2 +-
 profiles/health/hdp.c                  | 2 +-
 profiles/health/hdp_util.c             | 2 +-
 profiles/health/{mcap-lib.c => mcap.c} | 2 +-
 profiles/health/{mcap-lib.h => mcap.h} | 0
 9 files changed, 10 insertions(+), 10 deletions(-)
 rename profiles/health/{mcap-lib.c => mcap.c} (99%)
 rename profiles/health/{mcap-lib.h => mcap.h} (100%)
Makefile.plugins +1 -1
index 7fd0e50..0448b91 100644
@@ -64,7 +64,7 @@ builtin_sources += profiles/input/hog.c profiles/input/uhid_copy.h \
 
 if EXPERIMENTAL
 builtin_modules += health
-builtin_sources += profiles/health/mcap-lib.h profiles/health/mcap-lib.c \
+builtin_sources += profiles/health/mcap.h profiles/health/mcap.c \
 			profiles/health/hdp_main.c profiles/health/hdp_types.h \
 			profiles/health/hdp_manager.h \
 			profiles/health/hdp_manager.c \
android/Android.mk +2 -2
index 3ace786..eb67690 100644
@@ -56,7 +56,7 @@ LOCAL_SRC_FILES := \
 	bluez/android/handsfree-client.c \
 	bluez/android/gatt.c \
 	bluez/android/health.c \
-	bluez/profiles/health/mcap-lib.c \
+	bluez/profiles/health/mcap.c \
 	bluez/src/log.c \
 	bluez/src/shared/mgmt.c \
 	bluez/src/shared/util.c \
@@ -211,7 +211,7 @@ LOCAL_SRC_FILES := \
 	bluez/btio/btio.c \
 	bluez/lib/bluetooth.c \
 	bluez/lib/hci.c \
-	bluez/profiles/health/mcap-lib.c \
+	bluez/profiles/health/mcap.c \
 	bluez/android/mcaptest.c \
 
 LOCAL_C_INCLUDES := \
android/Makefile.am +2 -2
index 4953531..75802dd 100644
@@ -45,7 +45,7 @@ android_bluetoothd_SOURCES = android/main.c \
 				android/handsfree-client.c android/handsfree-client.h \
 				android/gatt.h android/gatt.c \
 				android/health.h android/health.c \
-				profiles/health/mcap-lib.h profiles/health/mcap-lib.c \
+				profiles/health/mcap.h profiles/health/mcap.c \
 				attrib/att.c attrib/att.h \
 				attrib/gatt.c attrib/gatt.h \
 				attrib/gattrib.c attrib/gattrib.h \
@@ -95,7 +95,7 @@ noinst_PROGRAMS += android/mcaptest
 android_mcaptest_SOURCES = android/mcaptest.c \
 				src/log.h src/log.c \
 				btio/btio.h btio/btio.c \
-				profiles/health/mcap-lib.h profiles/health/mcap-lib.c
+				profiles/health/mcap.h profiles/health/mcap.c
 android_mcaptest_CFLAGS = $(AM_CFLAGS)
 android_mcaptest_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
 
android/health.c +1 -1
index 5d161e0..75811aa 100644
@@ -43,7 +43,7 @@
 #include "src/shared/queue.h"
 #include "src/uuid-helper.h"
 #include "src/sdp-client.h"
-#include "profiles/health/mcap-lib.h"
+#include "profiles/health/mcap.h"
 
 #include "hal-msg.h"
 #include "ipc-common.h"
android/mcaptest.c +1 -1
index 638220b..5ef030c 100644
@@ -38,7 +38,7 @@
 
 #include "btio/btio.h"
 #include "lib/l2cap.h"
-#include "profiles/health/mcap-lib.h"
+#include "profiles/health/mcap.h"
 
 enum {
 	MODE_NONE,
profiles/health/hdp.c +1 -1
index d2e634a..c1ce1b8 100644
@@ -45,7 +45,7 @@
 #include "hdp_types.h"
 #include "hdp_util.h"
 #include "hdp.h"
-#include "mcap-lib.h"
+#include "mcap.h"
 
 #define ECHO_TIMEOUT	1 /* second */
 #define HDP_ECHO_LEN	15
profiles/health/hdp_util.c +1 -1
index c524054..af50b01 100644
@@ -48,7 +48,7 @@
 #include "src/log.h"
 #include "src/dbus-common.h"
 
-#include "mcap-lib.h"
+#include "mcap.h"
 #include "hdp_types.h"
 #include "hdp.h"
 #include "hdp_util.h"
profiles/health/mcap.c renamed from profiles/health/mcap-lib.c +1 -1
similarity index 99%
rename from profiles/health/mcap-lib.c
rename to profiles/health/mcap.c
index 1706d9f..a20a7ad 100644
@@ -38,7 +38,7 @@
 #include "btio/btio.h"
 #include "src/log.h"
 
-#include "mcap-lib.h"
+#include "mcap.h"
 
 #define MCAP_BTCLOCK_HALF (MCAP_BTCLOCK_FIELD / 2)
 #define CLK CLOCK_MONOTONIC
profiles/health/mcap.h renamed from profiles/health/mcap-lib.h +0 -0
similarity index 100%
rename from profiles/health/mcap-lib.h
rename to profiles/health/mcap.h
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 mcaptest: Move it from android to tools

---
 .gitignore                    | 2 +-
 Makefile.tools                | 8 +++++++-
 android/Android.mk            | 2 +-
 android/Makefile.am           | 9 ---------
 {android => tools}/mcaptest.c | 0
 5 files changed, 9 insertions(+), 12 deletions(-)
 rename {android => tools}/mcaptest.c (100%)
.gitignore +1 -1
index e22274f..65d77a5 100644
@@ -75,6 +75,7 @@ tools/3dsp
 tools/obexctl
 tools/gatt-service
 tools/btgatt-client
+tools/mcaptest
 test/sap_client.pyc
 test/bluezutils.pyc
 unit/test-ringbuf
@@ -127,7 +128,6 @@ doc/btmon.1
 android/system-emulator
 android/bluetoothd
 android/avdtptest
-android/mcaptest
 android/haltest
 android/android-tester
 android/ipc-tester
Makefile.tools +7 -1
index d901284..42cccc6 100644
@@ -119,7 +119,7 @@ if TOOLS
 bin_PROGRAMS += tools/hciattach tools/hciconfig tools/hcitool tools/hcidump \
 			tools/rfcomm tools/rctest tools/l2test tools/l2ping \
 			tools/sdptool tools/ciptool tools/bccmd \
-			tools/bluemoon tools/mpris-proxy
+			tools/bluemoon tools/mpris-proxy tools/mcaptest
 
 tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
 						tools/hciattach_st.c \
@@ -189,6 +189,12 @@ tools_bluemoon_LDADD = src/libshared-mainloop.la
 tools_mpris_proxy_SOURCES = tools/mpris-proxy.c
 tools_mpris_proxy_LDADD = gdbus/libgdbus-internal.la @GLIB_LIBS@ @DBUS_LIBS@
 
+tools_mcaptest_SOURCES = tools/mcaptest.c \
+				btio/btio.h btio/btio.c \
+				src/log.c src/log.h \
+				profiles/health/mcap.h profiles/health/mcap.c
+tools_mcaptest_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
+
 dist_man_MANS += tools/hciattach.1 tools/hciconfig.1 \
 			tools/hcitool.1 tools/hcidump.1 \
 			tools/rfcomm.1 tools/rctest.1 tools/l2ping.1 \
android/Android.mk +1 -1
index eb67690..3daa260 100644
@@ -212,7 +212,7 @@ LOCAL_SRC_FILES := \
 	bluez/lib/bluetooth.c \
 	bluez/lib/hci.c \
 	bluez/profiles/health/mcap.c \
-	bluez/android/mcaptest.c \
+	bluez/tools/mcaptest.c \
 
 LOCAL_C_INCLUDES := \
 	$(call include-path-for, glib) \
android/Makefile.am +0 -9
index 75802dd..7ae2c76 100644
@@ -90,15 +90,6 @@ android_bluetooth_default_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/android
 android_bluetooth_default_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version \
 					-no-undefined
 
-noinst_PROGRAMS += android/mcaptest
-
-android_mcaptest_SOURCES = android/mcaptest.c \
-				src/log.h src/log.c \
-				btio/btio.h btio/btio.c \
-				profiles/health/mcap.h profiles/health/mcap.c
-android_mcaptest_CFLAGS = $(AM_CFLAGS)
-android_mcaptest_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
-
 noinst_PROGRAMS += android/avdtptest
 
 android_avdtptest_SOURCES = android/avdtptest.c \
tools/mcaptest.c renamed from android/mcaptest.c +0 -0
similarity index 100%
rename from android/mcaptest.c
rename to tools/mcaptest.c
Signature · 1 line
1.9.1
#2 lore raw
In reply to Ravi kumar Veeramally

Hi Ravi,

Quoted 5 lines · Ravi kumar Veeramally
---
 Makefile.plugins                       | 2 +-
 android/Android.mk                     | 4 ++--
 android/Makefile.am                    | 4 ++--
 android/health.c                       | 2 +-
Quoted 8 lines
 android/mcaptest.c                     | 2 +-
 profiles/health/hdp.c                  | 2 +-
 profiles/health/hdp_util.c             | 2 +-
 profiles/health/{mcap-lib.c => mcap.c} | 2 +-
 profiles/health/{mcap-lib.h => mcap.h} | 0
 9 files changed, 10 insertions(+), 10 deletions(-)
 rename profiles/health/{mcap-lib.c => mcap.c} (99%)
 rename profiles/health/{mcap-lib.h => mcap.h} (100%)

Both of these patches have been applied. Thanks.

Johan