aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistFile.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-10-20PlaylistError: convert playlist_result to a strictly-typed enumMax Kellermann1-9/+9
2013-10-19*: use references instead of pointersMax Kellermann1-3/+3
2013-10-17fs/Path: rename to AllocatedPathMax Kellermann1-18/+19
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-17fs/Path: move configuration code to Config.cxxMax Kellermann1-3/+4
2013-10-17fs/Limits: convert macro to "constexpr"Max Kellermann1-1/+1
2013-10-17fs/Path: move MPD_PATH_MAX to Limits.hxxMax Kellermann1-0/+1
2013-10-14fs/Path: add method IsAbsolute()Max Kellermann1-1/+1
2013-10-14PlaylistFile: always check for absolute paths within music_directoryMax Kellermann1-9/+11
Try map_fs_to_utf8() first, and fall back to Path::ToUTF8() for absolute paths.
2013-10-14PlaylistFile: fix memory leakMax Kellermann1-12/+10
Consistently use std::string in LoadPlaylistFile().
2013-10-14Mapper: map_fs_to_utf8() returns std::stringMax Kellermann1-5/+3
Avoid the conversion to an allocated char*, let the caller decide.
2013-10-02Playlist*: use nullptr instead of NULLMax Kellermann1-10/+10
2013-10-02Listen, ...: add missing includesMax Kellermann1-0/+2
2013-09-05conf.h: remove obsolete headerMax Kellermann1-1/+2
Use only ConfigData.hxx in plugin sources to reduce header dependencies.
2013-09-05conf.h: move constants to ConfigDefaults.hxxMax Kellermann1-0/+1
2013-09-04util/Error: new error passing libraryMax Kellermann1-83/+68
Replaces GLib's GError.
2013-07-28song: convert header to C++Max Kellermann1-5/+5
2013-05-06PlaylistFile: use DirectoryReader and file system APIDenis Krjuchkov1-27/+24
2013-04-08uri: convert to C++Max Kellermann1-4/+1
2013-02-02PlaylistFile.cxx: use file system APIDenis Krjuchkov1-6/+5
2013-01-29require GLib 2.24Max Kellermann1-2/+0
2013-01-29ConfigFile, CommandLine: use the Path classMax Kellermann1-2/+3
2013-01-28Path: convert fs_charset_to_utf8() to static method Path::ToUTF8()Denis Krjuchkov1-4/+3
2013-01-26Mapper: improve usage of Path classDenis Krjuchkov1-3/+3
2013-01-22Path: move to fs subdirectoryDenis Krjuchkov1-1/+1
2013-01-18Path: new class "Path" wraps filesystem path stringsMax Kellermann1-42/+27
2013-01-17path: convert to C++Max Kellermann1-1/+1
2013-01-09idle: convert to C++Max Kellermann1-1/+1
2013-01-07decoder_api.h, ...: add "extern C"Max Kellermann1-1/+1
2013-01-04PlaylistFile: reuse classes PlaylistInfo and PlaylistVectorMax Kellermann1-4/+6
.. instead of rolling own classes.
2013-01-03PlaylistFile: fix memory leakMax Kellermann1-0/+1
2013-01-03TextFile: convert to a classMax Kellermann1-6/+3
2013-01-03text_file: convert to C++Max Kellermann1-1/+1
2013-01-03database.h: eliminate db_*_song()Max Kellermann1-8/+9
Use the C++ API.
2013-01-02mapper: convert to C++Max Kellermann1-1/+1
2012-10-04PlaylistFile, client_file, tag_id3: don't use g_file_error_quark()Max Kellermann1-4/+3
g_file_error_quark() is meant to be used with the GFileError enum which does not correspond with errno, but must be converted with g_file_error_from_errno(). At the same time, this removes g_strerror() use for g_file_error_quark().
2012-09-28main: use C++ compilerMax Kellermann1-1/+1
2012-09-28PlaylistFile: use std::list instead of GPtrArrayMax Kellermann1-100/+53
2012-09-28stored_playlist, playlist_save: use C++ compilerMax Kellermann1-8/+12
2012-09-28stored_playlist: make variables more localMax Kellermann1-46/+25
2012-08-16DatabasePlugin: add method ReturnSong()Max Kellermann1-1/+3
Allow the plugin to allocate the GetSong() return value.
2011-09-11stored_playlist: return GError, code is playlist_resultMax Kellermann1-114/+190
Improve error reporting and handling. command.c gets the new function print_error(), which sends a GError to the client.
2011-09-11playlist: move PLAYLIST_COMMENT to stored_playlist.cMax Kellermann1-0/+2
Only used there.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-12-23stored_playlist: remove database lookups from spl_load()Max Kellermann1-7/+1
Don't look up songs in the database, no caller needs this.
2010-12-23stored_playlist: ignore empty linesMax Kellermann1-1/+1
2010-12-23stored_playlist: use the text_file library to read linesMax Kellermann1-6/+4
2010-07-25database, ...: remove EINTR checks after stdio callsMax Kellermann1-10/+10
MPD doesn't have child processes anymore, and thus we're not expecting to receive SIGCHLD very often. Since hard disk access isn't interrupted by signals anyway, we don't need those excessive checks.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-12-08mapper: apply filesystem_charset to playlistsMax Kellermann1-6/+21
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.