input: add input device information functions 24/286924/1 accepted/tizen/7.0/unified/20230118.093748
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 9 Jan 2023 10:16:52 +0000 (19:16 +0900)
committeryunhee seo <yuni.seo@samsung.com>
Tue, 17 Jan 2023 02:17:54 +0000 (02:17 +0000)
commit89238f67e157d1a68deccbb5104aba3b1ace5427
tree1be53f19466d31e429ee8d42ca82cf25c60a5465
parent53d6e98c831df5a0bed5a7ea421a901e2bc665d0
input: add input device information functions

Add input functions to get device information.
Input event on/off option can be handled by device id number.
Input device id numbers can be get by below functions.
Also, input device name can be obtained by device id number.

These are function prototype to be added.
int device_input_get_devices(device_input_type_e input_type, int** input_ids, int* num_input_ids)
-> With device_input_type_e, input device id list can be obtained by this function.
input_ids will be filled with input device ids.
num_input_ids will be set with number of input device ids.

int device_input_put_devices(int** input_ids)
-> If input id list(input_ids) is no longer in use, it can be free by this function.

int device_input_get_default_device(device_input_type_e input_type, int *input_dev_id)
-> With device_input_type_e, input default device id number can be get from config file.

int device_input_get_device_name(int input_device_id, char **input_device_name)
-> With input device id number, input device name can be get by this function.

Change-Id: I0afd1340ecc6d7f0a8dd1c4083da169c77b88e3a
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
(cherry picked from commit ff4ec82bbb7529f85a6b0d5ff6ddea79b1616968)
include/input-internal.h
src/input-internal.c