table of contents
other versions
- wheezy 1.1.3-35-g0ece104-5
- wheezy-backports 1.1.8-1~bpo70+1
- jessie 1.1.8-1
- jessie-backports 1.1.12-1~bpo8+1
- testing 1.1.13-1
- unstable 1.1.13-1
The object management API.(3) | libmtp | The object management API.(3) |
NAME¶
libmtp - The object management API.Functions¶
int LIBMTP_Delete_Object (LIBMTP_mtpdevice_t *, uint32_t)
Detailed Description¶
Function Documentation¶
int LIBMTP_Delete_Object (LIBMTP_mtpdevice_t *device, uint32_tobject_id)¶
This function deletes a single file, track, playlist, folder or any other object off the MTP device, identified by the object ID. If you delete a folder, there is no guarantee that the device will really delete all the files that were in that folder, rather it is expected that they will not be deleted, and will turn up in object listings with parent set to a non-existant object ID. The safe way to do this is to recursively delete all files (and folders) contained in the folder, then the folder itself. Parameters:device a pointer to the device to
delete the object from.
object_id the object to delete.
Returns:
0 on success, any other value means
failure.
int LIBMTP_Set_Object_Filename (LIBMTP_mtpdevice_t *device, uint32_tobject_id, char *newname)¶
THIS FUNCTION IS DEPRECATED. PLEASE UPDATE YOUR CODE IN ORDER NOT TO USE IT. See Also:LIBMTP_Set_File_Name()
LIBMTP_Set_Track_Name()
LIBMTP_Set_Folder_Name()
LIBMTP_Set_Playlist_Name()
LIBMTP_Set_Album_Name()
Author¶
Generated automatically by Doxygen for libmtp from the source code.Sun Feb 17 2013 | Version 1.1.3 |