Enable HoG (HID over GATT) plugin 77/287777/3 accepted/tizen/7.0/unified/20230214.172148 accepted/tizen/7.0/unified/20230215.030712
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Mon, 6 Feb 2023 04:01:53 +0000 (13:01 +0900)
committerJonghwa Lee <jonghwa3.lee@samsung.com>
Tue, 7 Feb 2023 02:04:20 +0000 (11:04 +0900)
It enables the HoG plugin to support BLE joypad.
To enable the feature only, it adds additional configuration
option, '--enable-hog', and enables it in BREDR+LE as default.
The feature was checked with Xbox wireless controller.

Change-Id: Ia10efbe99565644ba9ed3aacdbad68e7fafae7b2
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Makefile.plugins
configure.ac
packaging/bluez.spec

index 5728bfa..3a331bd 100755 (executable)
@@ -84,7 +84,7 @@ builtin_sources += profiles/input/manager.c \
                        profiles/input/device.h profiles/input/device.c \
                        profiles/input/hidp_defs.h
 
-if TIZEN_UNUSED_PLUGIN
+if TIZEN_HOG_PLUGIN
 builtin_modules += hog
 builtin_sources += profiles/input/hog.c profiles/input/uhid_copy.h \
                        profiles/input/hog-lib.c profiles/input/hog-lib.h \
index 76af42a..a230528 100755 (executable)
@@ -328,6 +328,10 @@ AC_ARG_ENABLE(hid, AC_HELP_STRING([--disable-hid],
                        [disable HID Plugin]), [enable_hid=${enableval}])
 AM_CONDITIONAL(TIZEN_HID_PLUGIN, test "${enable_hid}" != "no")
 
+AC_ARG_ENABLE(hog, AC_HELP_STRING([--enable-hog],
+                       [enable HOG Plugin]), [enable_hog=${enableval}])
+AM_CONDITIONAL(TIZEN_HOG_PLUGIN, test "${enable_hid}" = "yes")
+
 AC_ARG_ENABLE(health, AC_HELP_STRING([--enable-health],
                [enable HEALTH profiles]), [enable_health=${enableval}])
 AM_CONDITIONAL(TIZEN_HEALTH_PLUGIN, test "${enable_health}" = "yes")
index d23bbb0..65d735e 100755 (executable)
@@ -234,6 +234,7 @@ export CFLAGS+=" -DARCH64"
                        --enable-obex \
                        --enable-library \
                        --enable-gatt \
+                       --enable-hog \
                        --enable-testing \
                        --enable-experimental \
                        --enable-autopyypair=no \
@@ -371,6 +372,7 @@ export CFLAGS+=" -DARCH64"
                        --enable-experimental \
                        --enable-autopair=no \
                        --enable-hid=yes \
+                       --enable-hog \
                        --enable-bredr=yes \
                        --enable-tizenunusedplugin=no \
                        --disable-crypto-tests \