[Version] 0.2.75
[Profile] Common
[Issue Type] Update
Change-Id: I7b89f36829dec90b4a5bb3ea995996e55022495d
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
*/
typedef enum {
MUSE_CAMERA_ERROR_INVALID = -1,
*/
typedef enum {
MUSE_CAMERA_ERROR_INVALID = -1,
- MUSE_CAMERA_ERROR_NONE = 1,
+ MUSE_CAMERA_ERROR_NONE = 0,
} muse_camera_error_e;
/**
} muse_camera_error_e;
/**
ret = CAMERA_ERROR_PERMISSION_DENIED;
LOGE("security check failed 0x%x", ret);
muse_camera_msg_return(api, class, ret, module);
ret = CAMERA_ERROR_PERMISSION_DENIED;
LOGE("security check failed 0x%x", ret);
muse_camera_msg_return(api, class, ret, module);
- return MUSE_CAMERA_ERROR_NONE;
+ return MUSE_CAMERA_ERROR_INVALID;
ret = CAMERA_ERROR_OUT_OF_MEMORY;
LOGE("handle alloc failed 0x%x", ret);
muse_camera_msg_return(api, class, ret, module);
ret = CAMERA_ERROR_OUT_OF_MEMORY;
LOGE("handle alloc failed 0x%x", ret);
muse_camera_msg_return(api, class, ret, module);
- return MUSE_CAMERA_ERROR_NONE;
+ return MUSE_CAMERA_ERROR_INVALID;
}
memset(muse_camera, 0x0, sizeof(muse_camera_handle_s));
}
memset(muse_camera, 0x0, sizeof(muse_camera_handle_s));
ret = CAMERA_ERROR_INVALID_OPERATION;
muse_camera_msg_return(api, class, ret, module);
ret = CAMERA_ERROR_INVALID_OPERATION;
muse_camera_msg_return(api, class, ret, module);
- return MUSE_CAMERA_ERROR_NONE;
+ return MUSE_CAMERA_ERROR_INVALID;
}
ret = legacy_camera_create((camera_device_e)device_type, &muse_camera->camera_handle);
}
ret = legacy_camera_create((camera_device_e)device_type, &muse_camera->camera_handle);
muse_camera = NULL;
muse_camera_msg_return(api, class, ret, module);
muse_camera = NULL;
muse_camera_msg_return(api, class, ret, module);
- return MUSE_CAMERA_ERROR_NONE;
+ return MUSE_CAMERA_ERROR_INVALID;
}
g_mutex_init(&muse_camera->task_lock);
}
g_mutex_init(&muse_camera->task_lock);
muse_camera = NULL;
muse_camera_msg_return(api, class, ret, module);
muse_camera = NULL;
muse_camera_msg_return(api, class, ret, module);
- return MUSE_CAMERA_ERROR_NONE;
+ return MUSE_CAMERA_ERROR_INVALID;
muse_camera_msg_return(api, class, ret, module);
muse_camera_msg_return(api, class, ret, module);
- return MUSE_CAMERA_ERROR_NONE;
+ if (ret == CAMERA_ERROR_NONE)
+ return MUSE_CAMERA_ERROR_NONE;
+ else
+ return MUSE_CAMERA_ERROR_INVALID;
}
int camera_dispatcher_start_preview(muse_module_h module)
}
int camera_dispatcher_start_preview(muse_module_h module)
camera_cmd_dispatcher_shutdown, /* MUSE_MODULE_COMMAND_SHUTDOWN */
NULL, /* MUSE_MODULE_COMMAND_DEBUG_INFO_DUMP */
NULL, /* MUSE_MODULE_COMMAND_CREATE_SERVER_ACK */
camera_cmd_dispatcher_shutdown, /* MUSE_MODULE_COMMAND_SHUTDOWN */
NULL, /* MUSE_MODULE_COMMAND_DEBUG_INFO_DUMP */
NULL, /* MUSE_MODULE_COMMAND_CREATE_SERVER_ACK */
- NULL /* MUSE_MODULE_COMMAND_RESOURCE_NOT_AVAILABLE */
+ NULL, /* MUSE_MODULE_COMMAND_RESOURCE_NOT_AVAILABLE */
+ NULL /* MUSE_MODULE_COMMAND_EXTERNAL_STORAGE_STATE_CHANGED */
Name: mmsvc-camera
Summary: A Camera module for muse server
Name: mmsvc-camera
Summary: A Camera module for muse server
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0