albums(3) | libmtp | albums(3) |
libmtp - albums
LIBMTP_album_t * LIBMTP_new_album_t (void)
void LIBMTP_destroy_album_t (LIBMTP_album_t *)
LIBMTP_album_t * LIBMTP_Get_Album_List
(LIBMTP_mtpdevice_t *)
LIBMTP_album_t * LIBMTP_Get_Album_List_For_Storage
(LIBMTP_mtpdevice_t *, uint32_t const)
LIBMTP_album_t * LIBMTP_Get_Album (LIBMTP_mtpdevice_t *,
uint32_t const)
int LIBMTP_Create_New_Album (LIBMTP_mtpdevice_t *,
LIBMTP_album_t *const)
int LIBMTP_Update_Album (LIBMTP_mtpdevice_t *,
LIBMTP_album_t const *const)
int LIBMTP_Set_Album_Name (LIBMTP_mtpdevice_t *,
LIBMTP_album_t *, const char *)
This routine creates a new album based on the metadata supplied. If the tracks field of the metadata contains a track listing, these tracks will be added to the album.
Parameters
Returns
See also
LIBMTP_Delete_Object()
References LIBMTP_mtpdevice_struct::default_album_folder, LIBMTP_mtpdevice_struct::default_music_folder, and LIBMTP_album_struct::parent_id.
This recursively deletes the memory for an album structure
Parameters
See also
References LIBMTP_album_struct::artist, LIBMTP_album_struct::composer, LIBMTP_album_struct::genre, LIBMTP_album_struct::name, and LIBMTP_album_struct::tracks.
This function retrieves an individual album from the device.
Parameters
Returns
See also
References LIBMTP_mtpdevice_struct::params.
This function returns a list of the albums available on the device.
Parameters
Returns
See also
References LIBMTP_Get_Album_List_For_Storage().
This function returns a list of the albums available on the device. You can filter on the storage ID.
Parameters
Returns
See also
References LIBMTP_mtpdevice_struct::params.
Referenced by LIBMTP_Get_Album_List().
This creates a new album metadata structure and allocates memory for it. Notice that if you add strings to this structure they will be freed by the corresponding LIBMTP_destroy_album_t operation later, so be careful of using strdup() when assigning strings.
Returns
See also
References LIBMTP_album_struct::album_id.
This function renames a single album. This simply means that the PTP_OPC_ObjectFileName property is updated, if this is supported by the device. The album filename should nominally end with an extension like '.alb'.
NOTE: if you want to change the metadata the device display about a playlist you must not use this function, use LIBMTP_Update_Album() instead!
Parameters
Returns
See also
This routine updates an album based on the metadata supplied. If the tracks field of the metadata contains a track listing, these tracks will be added to the album in place of those already present, i.e. the previous track listing will be deleted.
Parameters
Returns
See also
LIBMTP_Delete_Object()
Generated automatically by Doxygen for libmtp from the source code.
Fri Jul 22 2022 | Version 1.1.20 |