OSDN Git Service

hog: Move code from android to profiles
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 11 Nov 2015 11:39:51 +0000 (13:39 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 13 Nov 2015 12:00:29 +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/hidhost.c
profiles/input/hog-lib.c [moved from android/hog.c with 99% similarity]
profiles/input/hog-lib.h [moved from android/hog.h with 100% similarity]
unit/test-hog.c

index 3a29412..444f6d5 100644 (file)
@@ -400,7 +400,7 @@ unit_tests += unit/test-hog
 
 unit_test_hog_SOURCES = unit/test-hog.c \
                        $(btio_sources) \
-                       android/hog.h android/hog.c \
+                       profiles/input/hog-lib.h profiles/input/hog-lib.c \
                        profiles/scanparam/scpp.h profiles/scanparam/scpp.c \
                        profiles/battery/bas.h profiles/battery/bas.c \
                        profiles/deviceinfo/dis.h profiles/deviceinfo/dis.c \
index 1399178..694a94e 100644 (file)
@@ -42,7 +42,7 @@ LOCAL_SRC_FILES := \
        bluez/profiles/scanparam/scpp.c \
        bluez/profiles/deviceinfo/dis.c \
        bluez/profiles/battery/bas.c \
-       bluez/android/hog.c \
+       bluez/profiles/input/hog-lib.c \
        bluez/android/hidhost.c \
        bluez/android/socket.c \
        bluez/android/ipc.c \
index 7d66929..154f8db 100644 (file)
@@ -33,7 +33,8 @@ android_bluetoothd_SOURCES = android/main.c \
                                profiles/deviceinfo/dis.h \
                                profiles/deviceinfo/dis.c \
                                profiles/battery/bas.h profiles/battery/bas.c \
-                               android/hog.h android/hog.c \
+                               profiles/input/hog-lib.h \
+                               profiles/input/hog-lib.c \
                                android/ipc-common.h \
                                android/ipc.h android/ipc.c \
                                android/avdtp.h android/avdtp.c \
index a2b820f..591ca95 100644 (file)
 #include "src/sdp-client.h"
 #include "src/uuid-helper.h"
 #include "src/log.h"
+#include "profiles/input/hog-lib.h"
 
 #include "hal-msg.h"
 #include "ipc-common.h"
 #include "ipc.h"
 #include "bluetooth.h"
 #include "gatt.h"
-#include "hog.h"
 #include "hidhost.h"
 #include "utils.h"
 
similarity index 99%
rename from android/hog.c
rename to profiles/input/hog-lib.c
index ab1e008..a45e59f 100644 (file)
@@ -56,7 +56,7 @@
 #include "profiles/scanparam/scpp.h"
 #include "profiles/deviceinfo/dis.h"
 #include "profiles/battery/bas.h"
-#include "android/hog.h"
+#include "profiles/input/hog-lib.h"
 
 #define HOG_UUID               "00001812-0000-1000-8000-00805f9b34fb"
 
similarity index 100%
rename from android/hog.h
rename to profiles/input/hog-lib.h
index 24731d7..9f026e5 100644 (file)
@@ -37,7 +37,7 @@
 
 #include "attrib/gattrib.h"
 
-#include "android/hog.h"
+#include "profiles/input/hog-lib.h"
 
 struct test_pdu {
        bool valid;