halapi: common: Change the parameter name of helper functions for readability 91/251091/2 accepted/tizen/unified/20210108.125849 submit/tizen/20210108.044006
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 8 Jan 2021 03:46:15 +0000 (12:46 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 8 Jan 2021 03:48:25 +0000 (12:48 +0900)
hal-api-common's helper functions have the 'enum hal_module' as first
parameter. In order to improve the readability, replace parameter name
from 'handle' to 'module'.

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

index e25503b..9df3d31 100644 (file)
@@ -105,7 +105,7 @@ enum hal_module {
  * @return @c backend library name on success and don't need to be freed
  *         due to the global variable, otherwise NULL.
  */
-const char *hal_common_get_backend_library_name(enum hal_module handle);
+const char *hal_common_get_backend_library_name(enum hal_module module);
 
 /**
  * @brief Get the backend symbol name according to the type of HAL module
@@ -113,7 +113,7 @@ const char *hal_common_get_backend_library_name(enum hal_module handle);
  * @return @c backend library name on success and don't need to be freed
  *         due to the global variable, otherwise NULL.
  */
-const char *hal_common_get_backend_symbol_name(enum hal_module handle);
+const char *hal_common_get_backend_symbol_name(enum hal_module module);
 
 /**
  * @brief Get the backend data according to the type of HAL module
@@ -122,7 +122,7 @@ const char *hal_common_get_backend_symbol_name(enum hal_module handle);
  *             should be stored from HAL backend binary.
  * @return @c 0 on success, otherwise a negative error value
  */
-int hal_common_get_backend(enum hal_module handle, void **data);
+int hal_common_get_backend(enum hal_module module, void **data);
 
 /**
  * @brief Put the backend data according to the type of HAL module
@@ -130,7 +130,7 @@ int hal_common_get_backend(enum hal_module handle, void **data);
  * @param[in] Data pointer where 'hal_backend_[module]_funcs' instance
  * @return @c 0 on success, otherwise a negative error value
  */
-int hal_common_put_backend(enum hal_module handle, void *data);
+int hal_common_put_backend(enum hal_module module, void *data);
 
 /**
  * @brief Check HAL ABI version whehter is suppored or not on current platform
@@ -138,7 +138,7 @@ int hal_common_put_backend(enum hal_module handle, void *data);
  * @param[in] HAL ABI version of backend module among enum hal_abi_version
  * @return @c 0 on success, otherwise a negative error value
  */
-int hal_common_check_backend_abi_version(enum hal_module handle,
+int hal_common_check_backend_abi_version(enum hal_module module,
                                        enum hal_abi_version abi_version);
 
 #ifdef __cplusplus