input: add getter/setter for controlling input device event 49/285549/1
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 13 Dec 2022 06:50:51 +0000 (15:50 +0900)
committeryunhee seo <yuni.seo@samsung.com>
Wed, 14 Dec 2022 10:57:01 +0000 (10:57 +0000)
commit8e20038d67873402dd177e8d5f626dc5d7271d2a
treee43b96937ab345430fecfe00a2e9c613d310a020
parent857108e36e5f72271c55ed102cd65d53a7be73c3
input: add getter/setter for controlling input device event

Add a getter and setter function of input device event status

Input device event can be enabled/disabled by kernel inhibited node
which exist under the /sys/class/input/input(id) path.

These are function prototype to be added.
int hal_backend_device_common_input_set_event_state(int input_device_id, int on);
-> As follow above path, "(id)" will be replaced to input_device_id.
   and this function will set the on parameter value to inhibited node(path)
int hal_backend_device_common_input_get_event_state(int input_device_id, int* on);
-> As follow above path, this function will read the inhibited node value
   through the input_device_id.

Change-Id: I742edbbaec64cb7aeb2428aca7c50b0e7872accc
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
(cherry picked from commit 2b1bd811c34ffc5bdef9baeabc48b778e55dfcfe)
CMakeLists.txt
include/hal-backend-device-common-file.h [new file with mode: 0644]
include/hal-backend-device-common-input.h [new file with mode: 0644]
packaging/hal-backend-device-common.spec
src/hal-backend-device-common-file.c [new file with mode: 0644]
src/input/input.c [new file with mode: 0644]