| Functions | |
| 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 (LIBMTP_mtpdevice_t *, uint32_t const) | 
| int | LIBMTP_Create_New_Album (LIBMTP_mtpdevice_t *, LIBMTP_album_t *const, uint32_t const) | 
| int | LIBMTP_Update_Album (LIBMTP_mtpdevice_t *, LIBMTP_album_t const *const) | 
| int LIBMTP_Create_New_Album | ( | LIBMTP_mtpdevice_t * | device, | |
| LIBMTP_album_t *const | metadata, | |||
| uint32_t const | parenthandle | |||
| ) | 
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. 
| device | a pointer to the device to create the new album on. | |
| metadata | the metadata for the new album. If the function exits with success, the album_idfield of this struct will contain the new ID of the album. | |
| parenthandle | the parent (e.g. folder) to store this album in. Pass in 0 to put the album in the default music directory. | 
| void LIBMTP_destroy_album_t | ( | LIBMTP_album_t * | album | ) | 
This recursively deletes the memory for an album structure
| album | structure to destroy | 
| LIBMTP_album_t* LIBMTP_Get_Album | ( | LIBMTP_mtpdevice_t * | device, | |
| uint32_t const | albid | |||
| ) | 
This function retrieves an individual album from the device.
| device | a pointer to the device to get the album from. | |
| albid | the unique ID of the album to retrieve. | 
| LIBMTP_album_t* LIBMTP_Get_Album_List | ( | LIBMTP_mtpdevice_t * | device | ) | 
This function returns a list of the albums available on the device.
| device | a pointer to the device to get the album listing from. | 
| LIBMTP_album_t* LIBMTP_new_album_t | ( | void | ) | 
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.
| int LIBMTP_Update_Album | ( | LIBMTP_mtpdevice_t * | device, | |
| LIBMTP_album_t const *const | metadata | |||
| ) | 
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. 
| device | a pointer to the device to create the new album on. | |
| metadata | the metadata for the album to be updated. notice that the field album_idmust contain the apropriate album ID. | 
 1.5.1
 1.5.1