Change-Id: I2400fef8924b6a6a5af6f5a3b5c82328d81bc37b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
/**
* @brief Enumeration of error codes for Storage.
/**
* @brief Enumeration of error codes for Storage.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
/**
* @brief Enumeration of the storage types.
/**
* @brief Enumeration of the storage types.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
/**
* @brief Enumeration of the state of storage devices.
/**
* @brief Enumeration of the state of storage devices.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
/**
* @brief Called to get information once for each supported storage.
*
/**
* @brief Called to get information once for each supported storage.
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @param[in] storage_id The unique storage ID
* @param[in] type The type of the storage
*
* @param[in] storage_id The unique storage ID
* @param[in] type The type of the storage
* @details This function invokes the callback function once for each storage in a device. \n
* If storage_device_supported_cb() returns @c false, then the iteration will be finished.
*
* @details This function invokes the callback function once for each storage in a device. \n
* If storage_device_supported_cb() returns @c false, then the iteration will be finished.
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @param[in] callback The iteration callback function
* @param[in] user_data The user data to be passed to the callback function
*
* @param[in] callback The iteration callback function
* @param[in] user_data The user data to be passed to the callback function
* @details Files saved on the internal/external storage are readable or writeable by all applications.
* When an application is uninstalled, the files written by that application are not removed from the internal/external storage.
*
* @details Files saved on the internal/external storage are readable or writeable by all applications.
* When an application is uninstalled, the files written by that application are not removed from the internal/external storage.
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @remarks If you want to access files or directories in internal storage, you must declare http://tizen.org/privilege/mediastorage.\n
* If you want to access files or directories in external storage, you must declare http://tizen.org/privilege/externalstorage.\n
*
* @remarks If you want to access files or directories in internal storage, you must declare http://tizen.org/privilege/mediastorage.\n
* If you want to access files or directories in external storage, you must declare http://tizen.org/privilege/externalstorage.\n
/**
* @brief Enumeration of the storage directory types
/**
* @brief Enumeration of the storage directory types
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @details Files saved on the internal/external storage are readable or writeable by all applications.
* When an application is uninstalled, the files written by that application are not removed from the internal/external storage.
*
* @details Files saved on the internal/external storage are readable or writeable by all applications.
* When an application is uninstalled, the files written by that application are not removed from the internal/external storage.
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @remarks The directory path may not exist, so you must make sure that it exists before using it.\n
* If you want to access files or directories in internal storage except #STORAGE_DIRECTORY_SYSTEM_RINGTONES, you must declare http://tizen.org/privilege/mediastorage.\n
*
* @remarks The directory path may not exist, so you must make sure that it exists before using it.\n
* If you want to access files or directories in internal storage except #STORAGE_DIRECTORY_SYSTEM_RINGTONES, you must declare http://tizen.org/privilege/mediastorage.\n
/**
* @brief Gets the type of the given storage.
*
/**
* @brief Gets the type of the given storage.
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @param[in] storage_id The storage device
* @param[out] type The type of the storage
*
* @param[in] storage_id The storage device
* @param[out] type The type of the storage
/**
* @brief Gets the current state of the given storage.
*
/**
* @brief Gets the current state of the given storage.
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @param[in] storage_id The storage device
* @param[out] state The current state of the storage
*
* @param[in] storage_id The storage device
* @param[out] state The current state of the storage
/**
* @brief Called when the state of storage changes
*
/**
* @brief Called when the state of storage changes
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @param[in] storage_id The unique storage ID
* @param[in] state The current state of the storage
*
* @param[in] storage_id The unique storage ID
* @param[in] state The current state of the storage
/**
* @brief Registers a callback function to be invoked when the state of the storage changes.
*
/**
* @brief Registers a callback function to be invoked when the state of the storage changes.
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @param[in] storage_id The storage device
* @param[in] callback The callback function to register
*
* @param[in] storage_id The storage device
* @param[in] callback The callback function to register
/**
* @brief Unregisters the callback function.
*
/**
* @brief Unregisters the callback function.
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @param[in] storage_id The storage device to monitor
* @param[in] callback The callback function to register
*
* @param[in] storage_id The storage device to monitor
* @param[in] callback The callback function to register
/**
* @brief Gets the total space of the given storage in bytes.
*
/**
* @brief Gets the total space of the given storage in bytes.
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @param[in] storage_id The storage device
* @param[out] bytes The total space size of the storage (bytes)
*
* @param[in] storage_id The storage device
* @param[out] bytes The total space size of the storage (bytes)
/**
* @brief Gets the available space size of the given storage in bytes.
*
/**
* @brief Gets the available space size of the given storage in bytes.
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @param[in] storage_id The storage device
* @param[out] bytes The available space size of the storage (bytes)
*
* @param[in] storage_id The storage device
* @param[out] bytes The available space size of the storage (bytes)
* @fn int storage_get_internal_memory_size(struct statvfs *buf)
* @brief This generic API is used to get the internal memory size.
*
* @fn int storage_get_internal_memory_size(struct statvfs *buf)
* @brief This generic API is used to get the internal memory size.
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @param[out] buf A pointer to a statvfs structure
* @return @c 0 on success,
*
* @param[out] buf A pointer to a statvfs structure
* @return @c 0 on success,
* @fn int storage_get_external_memory_size(struct statvfs *buf)
* @brief This generic API is used to get the external memory size.
*
* @fn int storage_get_external_memory_size(struct statvfs *buf)
* @brief This generic API is used to get the external memory size.
*
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @param[out] buf A pointer to a statvfs structure
* @return @c 0 on success,
*
* @param[out] buf A pointer to a statvfs structure
* @return @c 0 on success,