lib: Move HOG UUID definition
authorManish Mandlik <mmandlik@google.com>
Wed, 10 Jun 2020 16:22:04 +0000 (09:22 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
HOG UUID is defined at multiple places in the code. Move that
definition to lib/uuid.h where all other UUIDs are defined.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
android/hidhost.c
lib/uuid.h
profiles/input/hog-lib.c
profiles/input/hog.c

index fe0ea2f..7bc484f 100755 (executable)
@@ -87,8 +87,6 @@
 /* HID Virtual Cable Unplug */
 #define HID_VIRTUAL_CABLE_UNPLUG       0x05
 
-#define HOG_UUID               "00001812-0000-1000-8000-00805f9b34fb"
-
 static bdaddr_t adapter_addr;
 
 static GIOChannel *ctrl_io = NULL;
index 5545b2f..7c8dabf 100755 (executable)
@@ -91,6 +91,7 @@ extern "C" {
 #define HDP_SINK_UUID          "00001402-0000-1000-8000-00805f9b34fb"
 
 #define HID_UUID               "00001124-0000-1000-8000-00805f9b34fb"
+#define HOG_UUID               "00001812-0000-1000-8000-00805f9b34fb"
 #ifdef TIZEN_BT_HID_DEVICE_ENABLE
 #define HID_DEVICE_UUID                "00001124-0000-1000-8000-00805f9b43bf"
 #endif
index a544e06..e96c969 100755 (executable)
@@ -61,7 +61,6 @@
 #include "profiles/battery/bas.h"
 #include "profiles/input/hog-lib.h"
 
-#define HOG_UUID               "00001812-0000-1000-8000-00805f9b34fb"
 #define HOG_UUID16             0x1812
 
 #define HOG_INFO_UUID          0x2A4A
index d496f22..a87df32 100755 (executable)
@@ -63,8 +63,6 @@
 #include "attrib/gatt.h"
 #include "hog-lib.h"
 
-#define HOG_UUID               "00001812-0000-1000-8000-00805f9b34fb"
-
 struct hog_device {
        struct btd_device       *device;
        struct bt_hog           *hog;