OSDN Git Service

bas: Move code from android to profiles
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 11 Nov 2015 11:08:52 +0000 (13:08 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 13 Nov 2015 12:00:28 +0000 (14:00 +0200)
This is a place holder until the code is ported to use shared API so it
can be shared by android and D-Bus daemon.

Makefile.am
android/Android.mk
android/Makefile.am
android/hog.c
profiles/battery/bas.c [moved from android/bas.c with 99% similarity]
profiles/battery/bas.h [moved from android/bas.h with 100% similarity]

index 614922e..1027613 100644 (file)
@@ -402,7 +402,7 @@ unit_test_hog_SOURCES = unit/test-hog.c \
                        $(btio_sources) \
                        android/hog.h android/hog.c \
                        android/scpp.h android/scpp.c \
-                       android/bas.h android/bas.c \
+                       profiles/battery/bas.h profiles/battery/bas.c \
                        android/dis.h android/dis.c \
                        src/log.h src/log.c \
                        attrib/att.h attrib/att.c \
index 89ca2c2..2f1f6bb 100644 (file)
@@ -41,7 +41,7 @@ LOCAL_SRC_FILES := \
        bluez/android/bluetooth.c \
        bluez/android/scpp.c \
        bluez/android/dis.c \
-       bluez/android/bas.c \
+       bluez/profiles/battery/bas.c \
        bluez/android/hog.c \
        bluez/android/hidhost.c \
        bluez/android/socket.c \
index cb32bc3..63bcb63 100644 (file)
@@ -30,7 +30,7 @@ android_bluetoothd_SOURCES = android/main.c \
                                android/hidhost.h android/hidhost.c \
                                android/scpp.h android/scpp.c \
                                android/dis.h android/dis.c \
-                               android/bas.h android/bas.c \
+                               profiles/battery/bas.h profiles/battery/bas.c \
                                android/hog.h android/hog.c \
                                android/ipc-common.h \
                                android/ipc.h android/ipc.c \
index 3af9329..93e0655 100644 (file)
@@ -55,7 +55,7 @@
 
 #include "android/scpp.h"
 #include "android/dis.h"
-#include "android/bas.h"
+#include "profiles/battery/bas.h"
 #include "android/hog.h"
 
 #define HOG_UUID               "00001812-0000-1000-8000-00805f9b34fb"
similarity index 99%
rename from android/bas.c
rename to profiles/battery/bas.c
index 7a1c4ca..de369fd 100644 (file)
@@ -43,7 +43,7 @@
 #include "attrib/att.h"
 #include "attrib/gatt.h"
 
-#include "android/bas.h"
+#include "profiles/battery/bas.h"
 
 #define ATT_NOTIFICATION_HEADER_SIZE 3
 #define ATT_READ_RESPONSE_HEADER_SIZE 1
similarity index 100%
rename from android/bas.h
rename to profiles/battery/bas.h