Remove the suffix of function name 32/213232/1
authorKichan Kwon <k_c.kwon@samsung.com>
Tue, 3 Sep 2019 06:03:59 +0000 (15:03 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Tue, 3 Sep 2019 06:03:59 +0000 (15:03 +0900)
Change-Id: Id0685315afe70ea4d88aa33f106169116ec24628
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
include/battery_monitor.h
src/battery_monitor.c
test/test_cli_app/src/bmt_usage.c

index fca285c..146081d 100644 (file)
@@ -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.
index dad7b0c..c96da2b 100644 (file)
@@ -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;
 
index da62ed8..661dae1 100644 (file)
@@ -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");