From: Chanwoo Choi Date: Thu, 6 Apr 2023 09:14:05 +0000 (+0900) Subject: halapi: common: Add new foo hal module X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fsandbox%2Fchanwoochoi%2Fhal-api-foo;p=platform%2Fhal%2Fapi%2Fcommon.git halapi: common: Add new foo hal module Change-Id: I7142797de0a618836708a334caa0482726982bf6 Signed-off-by: Chanwoo Choi --- diff --git a/include/hal-common.h b/include/hal-common.h index f4dd4c4..0dc0452 100644 --- a/include/hal-common.h +++ b/include/hal-common.h @@ -82,6 +82,8 @@ enum hal_module { * without modifying already defined module id. */ + HAL_MODULE_FOO, + HAL_MODULE_END, }; diff --git a/src/hal-api-list.h b/src/hal-api-list.h index f928543..3f39e1c 100644 --- a/src/hal-api-list.h +++ b/src/hal-api-list.h @@ -281,6 +281,12 @@ static struct hal_abi_version_match abi_version_match_data[HAL_MODULE_END][HAL_A .backend_min_abi_version = HAL_ABI_VERSION_TIZEN_7_0, }, }, + [HAL_MODULE_FOO] = { + [0] = { + .platform_abi_version = HAL_ABI_VERSION_TIZEN_7_5, + .backend_min_abi_version = HAL_ABI_VERSION_TIZEN_7_5, + }, + }, }; static struct __hal_module_info g_hal_module_info[] = { @@ -776,6 +782,20 @@ static struct __hal_module_info g_hal_module_info[] = { .abi_versions = abi_version_match_data[HAL_MODULE_DEVICE_POWER], .hal_api = true, }, + + [HAL_MODULE_FOO] = { + .group = HAL_GROUP_UNKNOWN, + .module = HAL_MODULE_FOO, + .license = HAL_LICENSE_APACHE_2_0, + .module_name = "HAL_MODULE_FOO", + .backend_module_name = "foo", + .library_name = "/hal/lib/libhal-backend-foo.so", + .library_name_64bit = "/hal/lib64/libhal-backend-foo.so", + .symbol_name = "hal_backend_foo_data", + .num_abi_versions = ARRAY_SIZE(abi_version_match_data[HAL_MODULE_FOO]), + .abi_versions = abi_version_match_data[HAL_MODULE_FOO], + .hal_api = true, + }, }; #endif /* __HAL_API_LIST_H__ */