From: Kichan Kwon Date: Tue, 3 Sep 2019 06:03:59 +0000 (+0900) Subject: Remove the suffix of function name X-Git-Tag: submit/tizen/20190919.020747~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10163133ddf176a4eafa6b829639dd6f0a774d8f;p=platform%2Fcore%2Fapi%2Fbatterymonitor.git Remove the suffix of function name Change-Id: Id0685315afe70ea4d88aa33f106169116ec24628 Signed-off-by: Kichan Kwon --- diff --git a/include/battery_monitor.h b/include/battery_monitor.h index fca285c..146081d 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 @a handle should be released using battery_monitor_destroy_resource_usage_handle(). + * @remarks @a handle should be released using battery_monitor_destroy(). * * @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_create_resource_usage_handle(battery_monitor_h *handle); +int battery_monitor_create(battery_monitor_h *handle); /** * @brief Destroys the Battery Consumption handle and releases all its resources. @@ -119,7 +119,7 @@ int battery_monitor_create_resource_usage_handle(battery_monitor_h *handle); * @retval #BATTERY_MONITOR_ERROR_NOT_SUPPORTED Feature Not Supported * @retval #BATTERY_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter */ -int battery_monitor_destroy_resource_usage_handle(battery_monitor_h handle); +int battery_monitor_destroy(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 dad7b0c..c96da2b 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_create_resource_usage_handle(battery_monitor_h *handle) +BM_API int battery_monitor_create(battery_monitor_h *handle) { ENTER; @@ -146,7 +146,7 @@ BM_API int battery_monitor_create_resource_usage_handle(battery_monitor_h *handl return BATTERY_MONITOR_ERROR_NONE; } -BM_API int battery_monitor_destroy_resource_usage_handle(battery_monitor_h handle) +BM_API int battery_monitor_destroy(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 da62ed8..661dae1 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_create_resource_usage_handle(&data_handle); + error_code = battery_monitor_create(&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_destroy_resource_usage_handle(data_handle); + error_code = battery_monitor_destroy(data_handle); if (error_code != BATTERY_MONITOR_ERROR_NONE) testapp_print ("Handle Destroy Failed");