{
int ret = CAMERA_ERROR_NONE;
int count = 0;
- bool is_called = false;
+ int is_called = false;
char value_key[KEY_LENGTH] = {'\0',};
camera_h camera = NULL;
camera_device_e device_type = CAMERA_DEVICE_CAMERA0;
return MUSE_CAMERA_ERROR_NONE;
}
- muse_core_client_get_value(module, MUSED_KEY_FLASH_STATE_CHECK, (int *)&is_called);
+ muse_core_client_get_value(module, MUSED_KEY_FLASH_STATE_CHECK, &is_called);
if (!is_called) {
ret = legacy_camera_create(device_type, &camera);
int camera_dispatcher_get_device_state(muse_module_h module)
{
int ret = CAMERA_ERROR_NONE;
- bool is_called = false;
+ int is_called = false;
char value_key[KEY_LENGTH] = {'\0',};
camera_h camera = NULL;
camera_device_e device_type = CAMERA_DEVICE_CAMERA0;
return MUSE_CAMERA_ERROR_NONE;
}
- muse_core_client_get_value(module, MUSED_KEY_DEVICE_STATE_CHECK, (int *)&is_called);
+ muse_core_client_get_value(module, MUSED_KEY_DEVICE_STATE_CHECK, &is_called);
if (!is_called) {
ret = legacy_camera_create(device_type, &camera);