halapi: Add new functions to get information of hal_backend structure 16/257516/4 accepted/tizen/unified/20210429.011907 submit/tizen/20210428.073114
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 26 Apr 2021 10:06:56 +0000 (19:06 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 28 Apr 2021 06:19:42 +0000 (15:19 +0900)
commitbc5a305b030bd67f8bbd1fbd49bc9eeb1c67985b
tree5b2da4303eb775c4544b587be2c3a927bcf0faac
parentcffb4836e9887964dc595b6e63a271e0ce216c0d
halapi: Add new functions to get information of hal_backend structure

The hal-api-common defines the common hal_backend structure for all hal
backend driver. Add new functions to provide the information of
hal_backend structure because of user request. Add the detailed function
roles as following:

[Newly added functions]
- hal_common_get_backend_abi_version(enum hal_module module);
  : Get the backend HAL ABI version according to the type of HAL module

- hal_common_get_backend_name(enum hal_module module, char *name, int size);
  : Get the backend name according to the type of HAL module

- hal_common_get_backend_vendor(enum hal_module module, char *vendor, int size);
  : Get the backend vendor description according to the type of HAL module

Change-Id: I2060e9047b60c029e161dc18f3981185a0f724a1
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/hal-common.h
src/hal-api-common.c