Follow Tizen function naming convention 12/213212/1
authorKichan Kwon <k_c.kwon@samsung.com>
Tue, 3 Sep 2019 01:48:31 +0000 (10:48 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Tue, 3 Sep 2019 01:50:12 +0000 (10:50 +0900)
Change-Id: I46ebec566b8fce3498085be86e28d7a9def86169
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 cdc05b9..8ff32c6 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  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.
index c9fd4b7..dad7b0c 100644 (file)
@@ -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;
 
index 6a7c403..da62ed8 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_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");