libmtp
The folder management API.
- Provided by: libmtp-doc (Version: 1.1.6-20-g1b9f164-1ubuntu2.1)
- Source: libmtp
- Report a bug
The folder management API.
This create a folder on the current MTP device. The PTP name for a folder is 'association'. The PTP/MTP devices does not have an internal 'folder' concept really, it contains a flat list of all files and some file are 'associations' that other files and folders may refer to as its 'parent'.
Parameters:
Returns:
References DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST, LIBMTP_mtpdevice_struct::params, strip_7bit_from_utf8(), and LIBMTP_mtpdevice_struct::usbinfo.
This recursively deletes the memory for a folder structure. This shall typically be called on a top-level folder list to detsroy the entire folder tree.
Parameters:
See Also:
References LIBMTP_folder_struct::child, LIBMTP_destroy_folder_t(), LIBMTP_folder_struct::name, and LIBMTP_folder_struct::sibling.
Referenced by LIBMTP_destroy_folder_t(), and LIBMTP_Get_Folder_List_For_Storage().
Helper function. Returns a folder structure for a specified id.
Parameters:
Returns:
References LIBMTP_folder_struct::child, LIBMTP_folder_struct::folder_id, LIBMTP_Find_Folder(), and LIBMTP_folder_struct::sibling.
Referenced by LIBMTP_Find_Folder().
This returns a list of all folders available on the current MTP device.
Parameters:
Returns:
References LIBMTP_Get_Folder_List_For_Storage().
This returns a list of all folders available on the current MTP device.
Parameters:
Returns:
References LIBMTP_folder_struct::child, LIBMTP_folder_struct::folder_id, LIBMTP_destroy_folder_t(), LIBMTP_new_folder_t(), LIBMTP_folder_struct::name, LIBMTP_mtpdevice_struct::params, LIBMTP_folder_struct::parent_id, LIBMTP_folder_struct::sibling, and LIBMTP_folder_struct::storage_id.
Referenced by LIBMTP_Get_Folder_List().
This creates a new folder structure and allocates memory for it. Notice that if you add strings to this structure they will be freed by the corresponding LIBMTP_folder_track_t operation later, so be careful of using strdup() when assigning strings, e.g.:
Returns:
See Also:
References LIBMTP_folder_struct::folder_id.
Referenced by LIBMTP_Get_Folder_List_For_Storage().
This function renames a single folder. This simply means that the PTP_OPC_ObjectFileName property is updated, if this is supported by the device.
Parameters:
Returns:
References LIBMTP_folder_struct::folder_id, and LIBMTP_folder_struct::name.
Generated automatically by Doxygen for libmtp from the source code.