Home | History | Annotate | Download | only in src

Lines Matching full:playlist

43 #include "playlist-spl.h"
365 register_filetype("Abstract Playlist file", LIBMTP_FILETYPE_PLAYLIST, PTP_OFC_MTP_AbstractAudioVideoPlaylist);
3211 printf(" Default playlist folder: 0x%08x\n", device->default_playlist_folder);
6206 * This function deletes a single file, track, playlist, folder or
6408 * This function renames a single playlist object file holder.
6411 * The playlist filename should nominally end with an extension
6415 * about a playlist you must <i>not</i> use this function,
6419 * @param playlist the playlist metadata of the playlist to rename.
6427 LIBMTP_playlist_t *playlist, const char* newname)
6431 ret = set_object_filename(device, playlist->playlist_id,
6439 free(playlist->name);
6440 playlist->name = strdup(newname);
6452 * about a playlist you must <i>not</i> use this function,
6819 * This creates a new playlist metadata structure and allocates memory
6852 * This destroys a playlist metadata structure and deallocates the memory
6855 * @param playlist the playlist metadata to destroy.
6858 void LIBMTP_destroy_playlist_t(LIBMTP_playlist_t *playlist)
6860 if (playlist == NULL) {
6863 if (playlist->name != NULL)
6864 free(playlist->name);
6865 if (playlist->tracks != NULL)
6866 free(playlist->tracks);
6867 free(playlist);
6878 * @param device a pointer to the device to get the playlist listing from.
6879 * @return a playlist list on success, else NULL. If there are no playlists
6907 // playlists are not stored as playlist objects.
6909 // Allocate a new playlist type
6917 // Allocate a new playlist type
6929 // Then get the track listing for this playlist
6939 // Add playlist to a list that will be returned afterwards.
6955 * This function retrieves an individual playlist from the device.
6956 * @param device a pointer to the device to get the playlist from.
6957 * @param plid the unique ID of the playlist to retrieve.
6958 * @return a valid playlist metadata post or NULL on failure.
6980 // playlists are not stored as playlist objects.
6982 // Allocate a new playlist type
6993 // Allocate a new playlist type
7004 // Then get the track listing for this playlist
7016 * This function creates a new abstract list such as a playlist
7236 add_ptp_error_to_errorstack(device, ret, "create_new_abstract_list(): Could not send object info (the playlist itself).");
7246 * If we don't, the handle will not be created and thus there is no playlist.
7555 * This routine creates a new playlist based on the metadata
7558 * playlist.
7559 * @param device a pointer to the device to create the new playlist on.
7560 * @param metadata the metadata for the new playlist. If the function
7562 * struct will contain the new playlist ID of the playlist.
7600 // Just create a new abstract audio/video playlist...
7616 * This routine updates a playlist based on the metadata
7619 * playlist in place of those already present, i.e. the
7621 * playlist id (metadata->playlist_id) is likely to change.
7622 * @param device a pointer to the device to create the new playlist on.
7623 * @param metadata the metadata for the playlist to be updated.
7625 * must contain the apropriate playlist ID. Playlist ID
7626 * be modified to a new playlist ID by the time the