halapi: common: Add new foo hal module sandbox/chanwoochoi/hal-api-foo
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 6 Apr 2023 09:14:05 +0000 (18:14 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 4 Mar 2024 08:04:10 +0000 (17:04 +0900)
Change-Id: I7142797de0a618836708a334caa0482726982bf6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/hal-common.h
src/hal-api-list.h

index f4dd4c48dd13466b1e422f54fe5e315356bdc618..0dc04528920f6bc86ab4df4d6367597edc920ce0 100644 (file)
@@ -82,6 +82,8 @@ enum hal_module {
         * without modifying already defined module id.
         */
 
+       HAL_MODULE_FOO,
+
        HAL_MODULE_END,
 };
 
index f92854307954acd807a23e0ad27c9c74a5945451..3f39e1c948e09d9c491bdc4927eb55e41ffb50c8 100644 (file)
@@ -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__ */