aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistSave.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-01-20Queue: rename struct queue to QueueMax Kellermann1-1/+1
Works around a build failure on Solaris because annoyingly, Solaris reserves the name "queue". This rename was pending anyway.
2013-10-28player_control: rename to PlayerControlMax Kellermann1-1/+1
2013-10-20PlaylistError: convert playlist_result to a strictly-typed enumMax Kellermann1-11/+11
2013-10-19*: use references instead of pointersMax Kellermann1-12/+12
2013-10-17fs/Path: rename to AllocatedPathMax Kellermann1-6/+6
The new class Path only holds a string pointer without being responsible for allocation/deallocation. The FileSystem.hxx library accepts Path arguments instead of AllocatedPath, to avoid forcing callers to allocate another string object.
2013-10-17fs/Path: move definitions to struct PathTraitsMax Kellermann1-1/+2
2013-10-17PlaylistSave: eliminate the last g_warning() callMax Kellermann1-1/+2
2013-10-17Song: GetURI() returns std::stringMax Kellermann1-3/+2
2013-10-14fs/Path: add method IsAbsolute()Max Kellermann1-1/+1
2013-10-02Log: new logging library APIMax Kellermann1-1/+4
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-10-02Playlist*: use nullptr instead of NULLMax Kellermann1-1/+1
2013-09-04util/Error: new error passing libraryMax Kellermann1-6/+4
Replaces GLib's GError.
2013-07-28song: convert header to C++Max Kellermann1-4/+4
2013-04-08uri: convert to C++Max Kellermann1-4/+1
2013-02-02PlaylistSave.cxx: use FOpenDenis Krjuchkov1-1/+1
2013-01-29require GLib 2.24Max Kellermann1-2/+0
2013-01-29ConfigFile, CommandLine: use the Path classMax Kellermann1-1/+2
2013-01-28Path::FromUTF8() returns nulled instance on error, add error handling where ↵Denis Krjuchkov1-1/+2
required
2013-01-26Mapper: improve usage of Path classDenis Krjuchkov1-1/+1
2013-01-22Path: move to fs subdirectoryDenis Krjuchkov1-1/+1
2013-01-18Path: new class "Path" wraps filesystem path stringsMax Kellermann1-31/+16
2013-01-17path: convert to C++Max Kellermann1-1/+1
2013-01-09idle: convert to C++Max Kellermann1-1/+1
2013-01-07Playlist: convert functions to methodsMax Kellermann1-4/+4
2013-01-06queue: convert all functions to methodsMax Kellermann1-2/+2
2013-01-04playlist: convert to C++Max Kellermann1-2/+2
2013-01-02mapper: convert to C++Max Kellermann1-1/+1
2012-09-28main: use C++ compilerMax Kellermann1-1/+1
2012-09-28PlaylistFile: use std::list instead of GPtrArrayMax Kellermann1-11/+13
2012-09-28stored_playlist, playlist_save: use C++ compilerMax Kellermann1-7/+9
2012-06-12Work around incorrect g_file_test() behavior on Win32Denis Krjuchkov1-0/+1
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.
2012-02-09playlist_save: add start/end_index parametersMax Kellermann1-2/+7
2011-09-11stored_playlist: return GError, code is playlist_resultMax Kellermann1-5/+5
Improve error reporting and handling. command.c gets the new function print_error(), which sends a GError to the client.
2011-09-11playlist: move enum playlist_result to playlist_error.hMax Kellermann1-0/+2
Reduce header dependencies.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2011-01-10player_control: removed the global variable "pc"Max Kellermann1-3/+4
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.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-12-08mapper: apply filesystem_charset to playlistsMax Kellermann1-1/+4
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.
2009-11-12include config.h in all sourcesMax Kellermann1-0/+1
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.
2009-10-20mapper, update, ...: use g_build_filename(), G_DIR_SEPARATOR, ...Max Kellermann1-1/+1
Try to be as portable as possible, use GLib path name functions and macros.
2009-07-14playlist: no CamelCaseMax Kellermann1-2/+2
2009-03-13all: Update copyright header.Avuton Olrich1-6/+7
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.
2009-02-25ls: moved generic URI utilities to uri.cMax Kellermann1-1/+1
"ls" is a bad name for a library which parses URIs. We'll move the rest of the "ls" library later.
2009-02-04playlist_save: added spl_save_playlist()Max Kellermann1-0/+6
spl_save_playlist() is a wrapper for spl_save_queue().
2009-02-04playlist: renamed global "playlist" variable to "g_playlist"Max Kellermann1-3/+3
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.
2009-01-25playlist: moved is_valid_playlist_name() to stored_playlist.cMax Kellermann1-1/+1
2009-01-25playlist: moved savePlaylist() and loadPlaylsit() to playlist_save.cMax Kellermann1-0/+65
2009-01-25stored_playlist: moved configuration variables from playlist.cMax Kellermann1-1/+1
Don't declare and export variables specific to stored playlists in playlist.c/playlist.h.
2009-01-08path: allocate buffer in fs_charset conversion functionsMax Kellermann1-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.
2009-01-04song: allocate the result of song_get_url()Max Kellermann1-5/+7