aboutsummaryrefslogtreecommitdiff
path: root/src/playlist_save.c
Commit message (Collapse)AuthorAge
* Merge branch 'v0.16.x'Max Kellermann2012-06-12
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/cmdline.c src/decoder/wildmidi_decoder_plugin.c src/gcc.h src/glib_compat.h src/input_stream.c src/output_list.c src/output_thread.c valgrind.suppressions
| * Work around incorrect g_file_test() behavior on Win32Denis Krjuchkov2012-06-12
| | | | | | | | | | | | | | g_file_test is redefined to be g_file_test_utf8 and thus can't handle non-ASCII characters. This fix adds simple wrapper (taken from glib) that fixes encoding and calls g_file_test_utf8. All required inclusions of glib_compat.h are added as well.
* | playlist_save: add start/end_index parametersMax Kellermann2012-02-09
| |
* | stored_playlist: return GError, code is playlist_resultMax Kellermann2011-09-11
| | | | | | | | | | Improve error reporting and handling. command.c gets the new function print_error(), which sends a GError to the client.
* | playlist: move enum playlist_result to playlist_error.hMax Kellermann2011-09-11
| | | | | | | | Reduce header dependencies.
* | copyright year 2011Max Kellermann2011-01-29
| |
* | player_control: removed the global variable "pc"Max Kellermann2011-01-10
|/ | | | | | | Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
* Update copyright notices.Avuton Olrich2009-12-31
|
* Merge branch 'v0.15.x'Max Kellermann2009-12-14
|\ | | | | | | | | Conflicts: src/decoder/ffmpeg_plugin.c
| * mapper: apply filesystem_charset to playlistsMax Kellermann2009-12-08
| | | | | | | | | | | | | | | | This fixes an inconsistency in the stored playlist subsystem: when obtaining the list of playlists (listplaylist, listplaylistinfo), the file names in the playlist directory are converted to UTF-8 (according to filesystem_charset), but when saving or loading playlists, the filesystem_charset setting was ignored.
* | include config.h in all sourcesMax Kellermann2009-11-12
| | | | | | | | | | | | After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
* | mapper, update, ...: use g_build_filename(), G_DIR_SEPARATOR, ...Max Kellermann2009-10-20
| | | | | | | | | | Try to be as portable as possible, use GLib path name functions and macros.
* | playlist: no CamelCaseMax Kellermann2009-07-14
|/
* all: Update copyright header.Avuton Olrich2009-03-13
| | | | | | | | This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
* ls: moved generic URI utilities to uri.cMax Kellermann2009-02-25
| | | | | "ls" is a bad name for a library which parses URIs. We'll move the rest of the "ls" library later.
* playlist_save: added spl_save_playlist()Max Kellermann2009-02-04
| | | | spl_save_playlist() is a wrapper for spl_save_queue().
* playlist: renamed global "playlist" variable to "g_playlist"Max Kellermann2009-02-04
| | | | | | | Export the "g_playlist" variable, and pass it to all playlist functions. This way, we can split playlist.c easier into separate parts. The code which initializes the singleton variable is moved to playlist_global.c.
* playlist: moved is_valid_playlist_name() to stored_playlist.cMax Kellermann2009-01-25
|
* playlist: moved savePlaylist() and loadPlaylsit() to playlist_save.cMax Kellermann2009-01-25
|
* stored_playlist: moved configuration variables from playlist.cMax Kellermann2009-01-25
| | | | | 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-08
| | | | | 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-04
|
* playlist: use uri_has_scheme() instead of isRemoteUrl()Max Kellermann2009-01-04
| | | | | | 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-02
| | | | Don't use fixed stack buffers.
* mapper: allocate the result of map_uri_fs(), map_directory_fs()Max Kellermann2009-01-02
| | | | Don't use fixed stack buffers.
* playlist: fix stored playlist modifications with absolute pathsMax Kellermann2008-12-24
| | | | | | | | 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-16
| | | | | 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-31
| | | | | 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-23
| | | | | | 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-14
| | | | | Instead of the uninitialized local variable "s", I should have used "uri".
* mapper: new song-to-filesystem mapper libraryMax Kellermann2008-10-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-14
playlist_print_song() and playlist_print_uri() handle charset conversion and (optional) music directory prefixing.