From: Yongjoo Ahn Date: Fri, 10 Jan 2025 07:32:43 +0000 (+0900) Subject: common: Fix argument of `hal_common_get_backend_with_library_name_v2` X-Git-Tag: accepted/tizen/unified/20250120.072846~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=822b6cd59c61ddd3c0d0eb49b85e60d2881a897d;p=platform%2Fhal%2Fapi%2Fcommon.git common: Fix argument of `hal_common_get_backend_with_library_name_v2` Let the function take a void pointer to `hal_backend_[module]_funcs` (NOT a double pointer for it). Change-Id: Ic1e2c6d4b9b11423e147a541486269363835285b Signed-off-by: Yongjoo Ahn --- diff --git a/include/hal-common.h b/include/hal-common.h index 5e54d15..0f2dbf9 100644 --- a/include/hal-common.h +++ b/include/hal-common.h @@ -217,7 +217,7 @@ int hal_common_get_backend_with_library_name_v2(enum hal_module module, * @return @c 0 on success, otherwise a negative error value */ int hal_common_put_backend_with_library_name_v2(enum hal_module module, - void **data, void *user_data, + void *data, void *user_data, int (*exit_backend)(void *data, void *user_data), const char *library_name); diff --git a/src/hal-api-common.c b/src/hal-api-common.c index e70f767..987cf7c 100644 --- a/src/hal-api-common.c +++ b/src/hal-api-common.c @@ -613,7 +613,7 @@ int hal_common_get_backend_with_library_name_v2(enum hal_module module, EXPORT int hal_common_put_backend_with_library_name_v2(enum hal_module module, - void **data, void *user_data, + void *data, void *user_data, int (*exit_backend)(void *data, void *user_data), const char *library_name) {