summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
912e5bb)
Change-Id: I1e3eca3ace0f3ae5d686df42dd434c7800eaa759
Signed-off-by: pr.jung <pr.jung@samsung.com>
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
- STORAGE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
- STORAGE_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
- STORAGE_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
- STORAGE_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NO_SUCH_DEVICE, /**< Storage not supported */
- STORAGE_ERROR_OPERATION_FAILED = TIZEN_ERROR_SYSTEM_CLASS | 0x12, /**< Operation failed */
+ STORAGE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
+ STORAGE_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
+ STORAGE_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
+ STORAGE_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NO_SUCH_DEVICE, /**< Storage not supported */
+ STORAGE_ERROR_OPERATION_FAILED = TIZEN_ERROR_SYSTEM_CLASS | 0x12, /**< Operation failed */
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
- STORAGE_TYPE_INTERNAL, /**< Internal device storage (built-in storage in a device, non-removable) */
- STORAGE_TYPE_EXTERNAL, /**< External storage */
+ STORAGE_TYPE_INTERNAL, /**< Internal device storage (built-in storage in a device, non-removable) */
+ STORAGE_TYPE_EXTERNAL, /**< External storage */
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
- STORAGE_STATE_UNMOUNTABLE = -2, /**< Storage is present but cannot be mounted. Typically it happens if the file system of the storage is corrupted */
- STORAGE_STATE_REMOVED = -1, /**< Storage is not present */
- STORAGE_STATE_MOUNTED = 0, /**< Storage is present and mounted with read/write access */
- STORAGE_STATE_MOUNTED_READ_ONLY = 1, /**< Storage is present and mounted with read only access */
+ STORAGE_STATE_UNMOUNTABLE = -2, /**< Storage is present but cannot be mounted. Typically it happens if the file system of the storage is corrupted */
+ STORAGE_STATE_REMOVED = -1, /**< Storage is not present */
+ STORAGE_STATE_MOUNTED = 0, /**< Storage is present and mounted with read/write access */
+ STORAGE_STATE_MOUNTED_READ_ONLY = 1, /**< Storage is present and mounted with read only access */
* @see
* @par Example:
* @code
* @see
* @par Example:
* @code
- * if (storage_get_internal_memory_size(&s) < 0)
- * dlog_print(DLOG_DEBUG, LOG_TAG, "Fail to get internal memory size");
- * else
- * dlog_print(DLOG_DEBUG, LOG_TAG, "Total mem : %lf, Avail mem : %lf",
+ * if (storage_get_internal_memory_size(&s) < 0)
+ * dlog_print(DLOG_DEBUG, LOG_TAG, "Fail to get internal memory size");
+ * else
+ * dlog_print(DLOG_DEBUG, LOG_TAG, "Total mem : %lf, Avail mem : %lf",
* (double)s.f_frsize*s.f_blocks, (double)s.f_bsize*s.f_bavail);
* (double)s.f_frsize*s.f_blocks, (double)s.f_bsize*s.f_bavail);
* @endcode
*/
#ifndef __USE_FILE_OFFSET64
* @endcode
*/
#ifndef __USE_FILE_OFFSET64
* @see
* @par Example:
* @code
* @see
* @par Example:
* @code
- * if (storage_get_external_memory_size(&s) < 0)
- * dlog_print(DLOG_DEBUG, LOG_TAG, "Fail to get external memory size");
- * else
- * dlog_print(DLOG_DEBUG, LOG_TAG, "Total mem : %lf, Avail mem : %lf",
+ * if (storage_get_external_memory_size(&s) < 0)
+ * dlog_print(DLOG_DEBUG, LOG_TAG, "Fail to get external memory size");
+ * else
+ * dlog_print(DLOG_DEBUG, LOG_TAG, "Total mem : %lf, Avail mem : %lf",
* (double)s.f_frsize*s.f_blocks, (double)s.f_bsize*s.f_bavail);
* (double)s.f_frsize*s.f_blocks, (double)s.f_bsize*s.f_bavail);
* @endcode
*/
#ifndef __USE_FILE_OFFSET64
* @endcode
*/
#ifndef __USE_FILE_OFFSET64
if (ret < 0)
_E("Failed to get state of storage id (%d, ret:%d)", storage_id, ret); //LCOV_EXCL_LINE
if (ret < 0)
_E("Failed to get state of storage id (%d, ret:%d)", storage_id, ret); //LCOV_EXCL_LINE
storage_ext_release_device(&dev);
return ret;
}
storage_ext_release_device(&dev);
return ret;
}