input: add input device information functions 38/286538/13 accepted/tizen/unified/20230118.172018
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 9 Jan 2023 10:16:52 +0000 (19:16 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Wed, 11 Jan 2023 08:26:40 +0000 (17:26 +0900)
commitff4ec82bbb7529f85a6b0d5ff6ddea79b1616968
treeec5406d45848ed82c07c01b3a4836bb7652a273e
parent796b7594c49213da8e659227749af58b3bf83031
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>
include/input-internal.h
src/input-internal.c