* @since_tizen 3.0
*
* @param[in] storage_id The storage id
- * @param[out] storage type (internal, external).
- * @param[out] the kind of storage device for external type (sdcard, usb).
+ * @param[out] type storage type (internal or external).
+ * @param[out] dev the kind of storage device for external type (sdcard, usb). If type is #STORAGE_TYPE_EXTERNAL, then value of this param is invalid.
*
* @return @c 0 on success,
* otherwise a negative error value
* @retval #STORAGE_ERROR_NONE Successful
* @retval #STORAGE_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STORAGE_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #STORAGE_ERROR_NOT_SUPPORTED Storage not supported
* @retval #STORAGE_ERROR_NO_DEVICE No such device
*/
int storage_get_type_dev(int storage_id, storage_type_e *type, storage_dev_e *dev);
if (storage_id < 0) {
_E("Invalid parameger");
- return STORAGE_ERROR_NOT_SUPPORTED;
+ return STORAGE_ERROR_NO_DEVICE;
}
if (!type) {
ret = storage_ext_get_device_info(storage_id, ext_dev);
if (ret < 0) {
_E("Cannot get the storage with id (%d, ret:%d)", storage_id, ret); //LCOV_EXCL_LINE
- ret = STORAGE_ERROR_NOT_SUPPORTED;
+ ret = STORAGE_ERROR_NO_DEVICE;
goto out;
}