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/9.0/unified/20250123.015615~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=240196bca51bdcb9e986e1fc301acd41069b0ca1;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 (cherry picked from commit 822b6cd59c61ddd3c0d0eb49b85e60d2881a897d) --- diff --git a/include/hal-common.h b/include/hal-common.h index 11f0fe0..108d22d 100644 --- a/include/hal-common.h +++ b/include/hal-common.h @@ -218,7 +218,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) {