int ret;
size_t len;
+ if (!health)
+ return DEVICE_ERROR_INVALID_PARAMETER;
+
ret = device_battery_get_info(&info);
if (ret != DEVICE_ERROR_NONE) {
_E("Failed to get battery info (%d)", ret);
int ret;
size_t len;
+ if (!source)
+ return DEVICE_ERROR_INVALID_PARAMETER;
+
ret = device_battery_get_info(&info);
if (ret != DEVICE_ERROR_NONE) {
_E("Failed to get battery info (%d)", ret);
int ret;
size_t len;
+ if (!status)
+ return DEVICE_ERROR_INVALID_PARAMETER;
+
ret = device_battery_get_info(&info);
if (ret != DEVICE_ERROR_NONE) {
_E("Failed to get battery info (%d)", ret);