aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_save.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* playlist: moved savePlaylist() and loadPlaylsit() to playlist_save.cMax Kellermann2009-01-251-0/+65
|
* stored_playlist: moved configuration variables from playlist.cMax Kellermann2009-01-251-1/+1
| | | | | Don't declare and export variables specific to stored playlists in playlist.c/playlist.h.
* path: allocate buffer in fs_charset conversion functionsMax Kellermann2009-01-081-6/+5
| | | | | Don't use fixed static buffers. GLib allocates a new string for us anyway, let's just return this one instead of copying it.
* song: allocate the result of song_get_url()Max Kellermann2009-01-041-5/+7
|
* playlist: use uri_has_scheme() instead of isRemoteUrl()Max Kellermann2009-01-041-1/+1
| | | | | | For internal checks (i.e. not in command.c), we need to check whether an URI is in the databse, in the local file system or a remote URI with a scheme.
* mapper: allocate the result of map_directory_child_fs(), map_song_fs()Max Kellermann2009-01-021-2/+4
| | | | Don't use fixed stack buffers.
* mapper: allocate the result of map_uri_fs(), map_directory_fs()Max Kellermann2009-01-021-4/+8
| | | | Don't use fixed stack buffers.
* playlist: fix stored playlist modifications with absolute pathsMax Kellermann2008-12-241-1/+1
| | | | | | | | When save_absolute_paths_in_playlists was enabled in mpd.conf, MPD broke all playlists when manipulated using the "playlistdelete" command. The reason was that map_directory_child_fs() was used, which doesn't accept slashes in the file name. Use the new map_uri_fs() function instead.
* ls: removed isValidRemoteUtf8Url()Max Kellermann2008-12-161-1/+1
| | | | | The function didn't do anything useful, it was just several lines obfuscating that it was only forwarding isRemoteUrl()'s return value.
* update: check return valuesMax Kellermann2008-10-311-1/+2
| | | | | Nearly all mapper functions can fail and will then return NULL. Add checks to all callers.
* stored_playlist: don't map files outside the databaseMax Kellermann2008-10-231-2/+3
| | | | | | Don't attempt to map paths which are already absolute with map_song_fs(): check with song_in_database() instead of song_is_file().
* playlist: don't use uninitialized local variable (typo)Max Kellermann2008-10-141-1/+1
| | | | | Instead of the uninitialized local variable "s", I should have used "uri".
* mapper: new song-to-filesystem mapper libraryMax Kellermann2008-10-141-8/+14
| | | | | | The mapper library maps directory and song objects to file system paths. With this central library, the code mixture in path.c should be cleaned up, and we will be able to add neat features like aliasing.
* playlist: moved code to playlist_save.cMax Kellermann2008-10-141-0/+49
playlist_print_song() and playlist_print_uri() handle charset conversion and (optional) music directory prefixing.