MTP_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< I/O error */
MTP_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
MTP_ERROR_NO_DEVICE = TIZEN_ERROR_MTP | 0x01, /**< MTP have not any device */
- MTP_ERROR_ALLOC_FAIL = TIZEN_ERROR_MTP | 0x02, /**< Memory Allocation failed */
- MTP_ERROR_PLUGIN_FAIL = TIZEN_ERROR_MTP | 0x03, /**< Plugin failed */
+ MTP_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
+ MTP_ERROR_PLUGIN_FAIL = TIZEN_ERROR_MTP | 0x02, /**< Plugin failed */
MTP_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
- MTP_ERROR_COMM_ERROR = TIZEN_ERROR_MTP | 0x04, /**< MTP communication error */
- MTP_ERROR_CONTROLLER = TIZEN_ERROR_MTP | 0x05, /**< MTP controller error */
- MTP_ERROR_NOT_INITIALIZED = TIZEN_ERROR_MTP | 0x06, /**< MTP is not initialized */
- MTP_ERROR_NOT_ACTIVATED = TIZEN_ERROR_MTP | 0x07, /**< MTP is not activated */
+ MTP_ERROR_COMM_ERROR = TIZEN_ERROR_MTP | 0x03, /**< MTP communication error */
+ MTP_ERROR_CONTROLLER = TIZEN_ERROR_MTP | 0x04, /**< MTP controller error */
+ MTP_ERROR_NOT_INITIALIZED = TIZEN_ERROR_MTP | 0x05, /**< MTP is not initialized */
+ MTP_ERROR_NOT_ACTIVATED = TIZEN_ERROR_MTP | 0x06, /**< MTP is not activated */
MTP_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< MTP is not supported */
- MTP_ERROR_NOT_COMM_INITIALIZED = TIZEN_ERROR_MTP | 0x08 /**< MTP communication is not initialized */
+ MTP_ERROR_NOT_COMM_INITIALIZED = TIZEN_ERROR_MTP | 0x07, /**< MTP communication is not initialized */
} mtp_error_e;
/**
int mtp_get_storages(mtp_device_h mtp_device, mtp_storage_h **mtp_storages, int* storage_num);
/**
- * @brief Gets object handles from device.
+ * @brief Gets object handles from the given device and storage.
* @since_tizen 3.0
* @remarks The @a object_handles should be freed using free().
* @remarks If the @a parent is 0, it means "root folder" of mtp storage.
* @brief Registers a callback function for receiving MTP event.
* @since_tizen 3.0
*
- * @remarks If device state is changed, DEVICE_ADD or DEVICE_REMOVE event is occur. \n
- * If storage state is changed, STORAGE_ADD or STORAGE_REMOVE event is occur. \n
- * If object state is changed, OBJECT_ADD or OBJECT_REMOVE event is occur.
+ * @remarks If device state is changed, #MTP_EVENT_DEVICE_ADDED or #MTP_EVENT_DEVICE_REMOVED event is occur. \n
+ * If storage state is changed, #MTP_EVENT_STORAGE_ADDED or #MTP_EVENT_STORAGE_REMOVED event is occur. \n
+ * If object state is changed, #MTP_EVENT_OBJECT_ADDED or #MTP_EVENT_OBJECT_REMOVED event is occur. \n
+ * If mtp service is turned off, #MTP_EVENT_TURNED_OFF event is occur. \n
* @remarks http://tizen.org/privilege/mediastorage is needed if input or output path are relevant to media storage.\n
* http://tizen.org/privilege/externalstorage is needed if input or output path are relevant to external storage. \n
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Memory Allocation failed
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
*
* @see mtp_get_device()
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
*
* @see mtp_get_device()
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
*
* @see mtp_get_device()
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
*
* @see mtp_get_device()
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
*
* @see mtp_get_storages()
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
*
* @see mtp_get_storages()
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
*
* @see mtp_get_storages()
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
*
* @see mtp_get_storages()
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
*
* @see mtp_get_object_handles()
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @brief Gets the keywords of the object information.
* @since_tizen 3.0
* @remarks The @a keywords should be freed using free().
+ * @remarks The keywords are separated by comma.
* @remarks http://tizen.org/privilege/mediastorage is needed if input or output path are relevant to media storage.\n
* http://tizen.org/privilege/externalstorage is needed if input or output path are relevant to external storage. \n
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
int mtp_objectinfo_get_storage(mtp_device_h mtp_device, mtp_object_h object_handle, mtp_storage_h* mtp_storage);
/**
- * @brief Gets the data created time of the object information.
+ * @brief Gets the object created time of the object information.
* @since_tizen 3.0
* @remarks When interpreted as an absolute time value, \n
* @a data_created represents the number of seconds elapsed since the Epoch, 1970-01-01 00:00:00 +0000 (UTC).
*
* @param [in] mtp_device The MTP device
* @param [in] object_handle The object handle
- * @param [out] data_created The data created time of Object information
+ * @param [out] date_created The object created time of Object information
*
* @return 0 on success, otherwise a negative error value.
* @retval #MTP_ERROR_NONE Successful
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @see mtp_get_object_handles()
*/
-int mtp_objectinfo_get_data_created(mtp_device_h mtp_device, mtp_object_h object_handle, int *data_created);
+int mtp_objectinfo_get_date_created(mtp_device_h mtp_device, mtp_object_h object_handle, int *date_created);
/**
- * @brief Gets the data modified time of the object information.
+ * @brief Gets the object modified time of the object information.
* @since_tizen 3.0
* @remarks When interpreted as an absolute time value, \n
* @a data_modified represents the number of seconds elapsed since the Epoch, 1970-01-01 00:00:00 +0000 (UTC).
*
* @param [in] mtp_device The MTP device
* @param [in] object_handle The object handle
- * @param [out] data_modified The data modified time of Object information
+ * @param [out] date_modified The object modified time of Object information
*
* @return 0 on success, otherwise a negative error value.
* @retval #MTP_ERROR_NONE Successful
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @see mtp_get_object_handles()
*/
-int mtp_objectinfo_get_data_modified(mtp_device_h mtp_device, mtp_object_h object_handle, int *data_modified);
+int mtp_objectinfo_get_date_modified(mtp_device_h mtp_device, mtp_object_h object_handle, int *date_modified);
/**
* @brief Gets the file type of the object information.
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*
* @retval #MTP_ERROR_NOT_COMM_INITIALIZED MTP communication is not initialized
* @retval #MTP_ERROR_COMM_ERROR MTP communication error
* @retval #MTP_ERROR_CONTROLLER MTP controller error
- * @retval #MTP_ERROR_ALLOC_FAIL Memory Allocation failed
+ * @retval #MTP_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MTP_ERROR_NO_DEVICE MTP have not any device
* @retval #MTP_ERROR_PLUGIN_FAIL Plugin failed
*