folders(3) | libmtp | folders(3) |
libmtp - folders
LIBMTP_folder_t * LIBMTP_new_folder_t (void)
void LIBMTP_destroy_folder_t (LIBMTP_folder_t *)
LIBMTP_folder_t * LIBMTP_Get_Folder_List
(LIBMTP_mtpdevice_t *)
LIBMTP_folder_t * LIBMTP_Get_Folder_List_For_Storage
(LIBMTP_mtpdevice_t *, uint32_t const)
LIBMTP_folder_t * LIBMTP_Find_Folder (LIBMTP_folder_t *,
uint32_t const)
uint32_t LIBMTP_Create_Folder (LIBMTP_mtpdevice_t *, char *,
uint32_t, uint32_t)
int LIBMTP_Set_Folder_Name (LIBMTP_mtpdevice_t *,
LIBMTP_folder_t *, const char *)
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 LIBMTP_mtpdevice_struct::params, 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 destroy the entire folder tree.
Parameters
See also
References LIBMTP_folder_struct::child, LIBMTP_folder_struct::name, and LIBMTP_folder_struct::sibling.
Helper function. Returns a folder structure for a specified id.
Parameters
Returns
References LIBMTP_folder_struct::child, LIBMTP_folder_struct::folder_id, and LIBMTP_folder_struct::sibling.
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_mtpdevice_struct::params.
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.
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
Generated automatically by Doxygen for libmtp from the source code.
Fri Jul 22 2022 | Version 1.1.20 |