From 3d699faca4ca5e1fb91a30a76e29e05fd02de74e Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Tue, 3 Sep 2019 10:48:31 +0900 Subject: [PATCH] Follow Tizen function naming convention Change-Id: I46ebec566b8fce3498085be86e28d7a9def86169 Signed-off-by: Kichan Kwon --- include/battery_monitor.h | 6 +++--- src/battery_monitor.c | 4 ++-- test/test_cli_app/src/bmt_usage.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/battery_monitor.h b/include/battery_monitor.h index cdc05b9..8ff32c6 100644 --- a/include/battery_monitor.h +++ b/include/battery_monitor.h @@ -94,7 +94,7 @@ typedef struct battery_monitor_total_consumption_s* battery_monitor_h; * @brief Creates a handle to the Battery Consumption for getting resource based usage. * @since_tizen 5.5 * - * @remarks Release the handle using battery_monitor_resource_usage_handle_destroy(). + * @remarks @a handle should be released using battery_monitor_destroy_resource_usage_handle(). * * @param[in] handle Battery usage consumption handle reference for the app-id usage * @@ -105,7 +105,7 @@ typedef struct battery_monitor_total_consumption_s* battery_monitor_h; * @retval #BATTERY_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter * @retval #BATTERY_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory */ -int battery_monitor_resource_usage_handle_create(battery_monitor_h *handle); +int battery_monitor_create_resource_usage_handle(battery_monitor_h *handle); /** * @brief Destroys the Battery Consumption handle and releases all its resources. @@ -119,7 +119,7 @@ int battery_monitor_resource_usage_handle_create(battery_monitor_h *handle); * @retval #BATTERY_MONITOR_ERROR_NOT_SUPPORTED Feature Not Supported * @retval #BATTERY_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter */ -int battery_monitor_resource_usage_handle_destroy(battery_monitor_h handle); +int battery_monitor_destroy_resource_usage_handle(battery_monitor_h handle); /** * @brief Gets the battery-percent for specific resource from available data. diff --git a/src/battery_monitor.c b/src/battery_monitor.c index c9fd4b7..dad7b0c 100644 --- a/src/battery_monitor.c +++ b/src/battery_monitor.c @@ -116,7 +116,7 @@ static BatteryMonitor* battery_monitor_get_instance() return bm_server; } -BM_API int battery_monitor_resource_usage_handle_create(battery_monitor_h *handle) +BM_API int battery_monitor_create_resource_usage_handle(battery_monitor_h *handle) { ENTER; @@ -146,7 +146,7 @@ BM_API int battery_monitor_resource_usage_handle_create(battery_monitor_h *handl return BATTERY_MONITOR_ERROR_NONE; } -BM_API int battery_monitor_resource_usage_handle_destroy(battery_monitor_h handle) +BM_API int battery_monitor_destroy_resource_usage_handle(battery_monitor_h handle) { ENTER; diff --git a/test/test_cli_app/src/bmt_usage.c b/test/test_cli_app/src/bmt_usage.c index 6a7c403..da62ed8 100644 --- a/test/test_cli_app/src/bmt_usage.c +++ b/test/test_cli_app/src/bmt_usage.c @@ -118,7 +118,7 @@ static gboolean bmt_testapp_get_total_usage_by_app_id_for_all_resource_id() battery_monitor_h data_handle = NULL; - error_code = battery_monitor_resource_usage_handle_create(&data_handle); + error_code = battery_monitor_create_resource_usage_handle(&data_handle); if (error_code != BATTERY_MONITOR_ERROR_NONE) { testapp_print(" \n Memory Allocation failed \n"); return FALSE; @@ -181,7 +181,7 @@ static gboolean bmt_testapp_get_total_usage_by_app_id_for_all_resource_id() } } - error_code = battery_monitor_resource_usage_handle_destroy(data_handle); + error_code = battery_monitor_destroy_resource_usage_handle(data_handle); if (error_code != BATTERY_MONITOR_ERROR_NONE) testapp_print ("Handle Destroy Failed"); -- 2.34.1