input: add the dbus interface and input config parser 84/286884/1 accepted/tizen/7.0/unified/20230117.141746
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 9 Jan 2023 14:18:46 +0000 (23:18 +0900)
committeryunhee seo <yuni.seo@samsung.com>
Mon, 16 Jan 2023 07:58:19 +0000 (07:58 +0000)
commitd75faf025cab7b2391d74836e5901914853dcc92
tree0ea5d3da34dacda46f0211f7e52cb3eb66bddb35
parent6bb081b478864d40afe9b9061c6c27b12f6b4edf
input: add the dbus interface and input config parser

Add input device information dbus methods
Input event on/off option can be handled by device id number.
With config file, user can set the customed input devices
and input-parser will mananging input devices from it.

[InputDeivce] format which is in input.conf
InputDeviceType -> hal_deivce_input_type
InputDeviceId -> id number which exist under the /sys/class/input/inputXX path
InputDeviceName -> device name
InputDeviceDefault -> yes/no

Input dbus methods
1. Get input devices
    path: /Org/Tizen/System/DeviceD/Input
    interface: org.tizen.system.deviced.input
    member: InputGetDevices
    parameter: "(i)", input device type to get device id list
    return: "(ai)", get int device id list on success, empty list on error.

2. Get default device
    path: /Org/Tizen/System/DeviceD/Input
    interface: org.tizen.system.deviced.input
    member: InputGetDefaultDevice
    parameter: "(i)", input device type to get default devicd id
    return: "(i)", get device id value on success, negative on error.

3. Get device name
    path: /Org/Tizen/System/DeviceD/Input
    interface: org.tizen.system.deviced.input
    member: InputGetDeviceName
    parameter: "(i)", input device id to get device name
    return: "(is)", (ret_val, ret_dev_name)
        negative ret_val means error, otherwise success.

Change-Id: I0977c29f538f432cb5ab82e610130698ce7ad5b9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
(cherry picked from commit c67debace2c0a2f2bfb53b9d71cb18d3a6f947fc)
src/input/input-dbus.c
src/input/input-device-manager.c [new file with mode: 0644]
src/input/input-device-manager.h [new file with mode: 0644]
src/input/input-parser.c [new file with mode: 0644]
src/input/input-parser.h [new file with mode: 0644]
src/input/input.c