* [BlueZ PATCH] Move HOG UUID definition to lib/uuid.h
@ 2020-06-10 16:22 Manish Mandlik
[not found] ` <CAGPPCLAofU3_6ZfVk5Yi4L=64ZNgPkvqun1UShpCw=rFAnWDng@mail.gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Manish Mandlik @ 2020-06-10 16:22 UTC (permalink / raw)
To: marcel, luiz.dentz
Cc: linux-bluetooth, chromeos-bluetooth-upstreaming,
Abhishek Pandit-Subedi, Alain Michaud, Manish Mandlik
HOG UUID is defined at multiple places in the code. Move that
definition to lib/uuid.h where all other UUIDs are defined.
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Reviewed-by: Alain Michaud <alainm@chromium.org>
---
android/hidhost.c | 2 --
lib/uuid.h | 1 +
profiles/input/hog-lib.c | 1 -
profiles/input/hog.c | 2 --
4 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/android/hidhost.c b/android/hidhost.c
index fe0ea2f61..7bc484f11 100644
--- a/android/hidhost.c
+++ b/android/hidhost.c
@@ -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;
diff --git a/lib/uuid.h b/lib/uuid.h
index ebdcf729c..c7e6269f1 100644
--- a/lib/uuid.h
+++ b/lib/uuid.h
@@ -88,6 +88,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"
#define DUN_GW_UUID "00001103-0000-1000-8000-00805f9b34fb"
diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c
index a544e062c..e96c969b7 100644
--- a/profiles/input/hog-lib.c
+++ b/profiles/input/hog-lib.c
@@ -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
diff --git a/profiles/input/hog.c b/profiles/input/hog.c
index 327a1d1c3..9335b7e8b 100644
--- a/profiles/input/hog.c
+++ b/profiles/input/hog.c
@@ -60,8 +60,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;
--
2.27.0.278.ge193c7cf3a9-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [BlueZ PATCH] Move HOG UUID definition to lib/uuid.h
[not found] ` <CAGPPCLAofU3_6ZfVk5Yi4L=64ZNgPkvqun1UShpCw=rFAnWDng@mail.gmail.com>
@ 2020-06-16 17:27 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2020-06-16 17:27 UTC (permalink / raw)
To: Manish Mandlik
Cc: Marcel Holtmann, linux-bluetooth, ChromeOS Bluetooth Upstreaming,
Abhishek Pandit-Subedi, Alain Michaud
Hi Manish,
On Mon, Jun 15, 2020 at 11:40 PM Manish Mandlik <mmandlik@google.com> wrote:
>
> Friendly reminder to review this patch.
>
> Thanks,
> Manish.
>
>
> On Wed, Jun 10, 2020 at 9:22 AM Manish Mandlik <mmandlik@google.com> wrote:
>>
>> HOG UUID is defined at multiple places in the code. Move that
>> definition to lib/uuid.h where all other UUIDs are defined.
>>
>> Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
>> Reviewed-by: Alain Michaud <alainm@chromium.org>
>> ---
>>
>> android/hidhost.c | 2 --
>> lib/uuid.h | 1 +
>> profiles/input/hog-lib.c | 1 -
>> profiles/input/hog.c | 2 --
>> 4 files changed, 1 insertion(+), 5 deletions(-)
>>
>> diff --git a/android/hidhost.c b/android/hidhost.c
>> index fe0ea2f61..7bc484f11 100644
>> --- a/android/hidhost.c
>> +++ b/android/hidhost.c
>> @@ -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;
>> diff --git a/lib/uuid.h b/lib/uuid.h
>> index ebdcf729c..c7e6269f1 100644
>> --- a/lib/uuid.h
>> +++ b/lib/uuid.h
>> @@ -88,6 +88,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"
>>
>> #define DUN_GW_UUID "00001103-0000-1000-8000-00805f9b34fb"
>>
>> diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c
>> index a544e062c..e96c969b7 100644
>> --- a/profiles/input/hog-lib.c
>> +++ b/profiles/input/hog-lib.c
>> @@ -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
>> diff --git a/profiles/input/hog.c b/profiles/input/hog.c
>> index 327a1d1c3..9335b7e8b 100644
>> --- a/profiles/input/hog.c
>> +++ b/profiles/input/hog.c
>> @@ -60,8 +60,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;
>> --
>> 2.27.0.278.ge193c7cf3a9-goog
>>
Applied, thanks.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-16 17:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-10 16:22 [BlueZ PATCH] Move HOG UUID definition to lib/uuid.h Manish Mandlik
[not found] ` <CAGPPCLAofU3_6ZfVk5Yi4L=64ZNgPkvqun1UShpCw=rFAnWDng@mail.gmail.com>
2020-06-16 17:27 ` Luiz Augusto von Dentz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).