* @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
*
* @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.
* @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.
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;
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;
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;
}
}
- 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");