Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2013-11-22 | Mapper: _get_music_directory_utf8() may return nullptr | Max Kellermann | 1 | -1/+3 | |
If no music_directory is configured, return nullptr instead of an empty string. This fixes a crash when db_file is configured without music_directory. | |||||
2013-10-28 | *: use nullptr instead of NULL | Max Kellermann | 1 | -2/+2 | |
2013-10-19 | *: use references instead of pointers | Max Kellermann | 1 | -11/+11 | |
2013-10-17 | fs/Path: rename to AllocatedPath | Max Kellermann | 1 | -34/+35 | |
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-17 | fs/Path: move definitions to struct PathTraits | Max Kellermann | 1 | -2/+3 | |
2013-10-17 | fs/Path: move configuration code to Config.cxx | Max Kellermann | 1 | -1/+2 | |
2013-10-17 | Mapper: use std::string | Max Kellermann | 1 | -16/+11 | |
2013-10-15 | Mapper: remove obsolete variable music_dir_fs_length | Max Kellermann | 1 | -2/+0 | |
2013-10-14 | fs/Path: add separator constants/functions | Max Kellermann | 1 | -17/+4 | |
2013-10-14 | fs/Path: add method RelativeFS() | Max Kellermann | 1 | -11/+5 | |
Move code from map_fs_to_utf8(). | |||||
2013-10-14 | Mapper, ...: use memcmp() instead of strncmp() where appropriate | Max Kellermann | 1 | -1/+1 | |
Micro-optimization. | |||||
2013-10-14 | Mapper: map_fs_to_utf8() returns std::string | Max Kellermann | 1 | -6/+2 | |
Avoid the conversion to an allocated char*, let the caller decide. | |||||
2013-10-02 | Log: new logging library API | Max Kellermann | 1 | -12/+14 | |
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend. | |||||
2013-10-01 | Daemon, Mapper: move-assign the Path objects | Max Kellermann | 1 | -2/+2 | |
2013-08-07 | ConfigPath: return a Path object | Max Kellermann | 1 | -32/+20 | |
Migrate all callers to use Path directly, instead of doing the conversion in each caller. | |||||
2013-07-28 | song: convert header to C++ | Max Kellermann | 1 | -5/+5 | |
2013-05-05 | DirectoryReader: rename Failed() to HasFailed() for consistency with TextFile | Denis Krjuchkov | 1 | -1/+1 | |
2013-01-28 | Path::FromUTF8() returns nulled instance on error, add error handling where ↵ | Denis Krjuchkov | 1 | -9/+36 | |
required | |||||
2013-01-28 | Path: convert fs_charset_to_utf8() to static method Path::ToUTF8() | Denis Krjuchkov | 1 | -1/+5 | |
2013-01-26 | Mapper: improve usage of Path class | Denis Krjuchkov | 1 | -31/+28 | |
2013-01-22 | Path: move to fs subdirectory | Denis Krjuchkov | 1 | -1/+1 | |
2013-01-18 | Path: new class "Path" wraps filesystem path strings | Max Kellermann | 1 | -51/+31 | |
2013-01-17 | path: convert to C++ | Max Kellermann | 1 | -4/+1 | |
2013-01-03 | Directory: rename struct directory to Directory | Max Kellermann | 1 | -2/+2 | |
2013-01-02 | Directory: turn functions to methods | Max Kellermann | 1 | -2/+2 | |
2013-01-02 | Directory: make the header C++ only | Max Kellermann | 1 | -1/+1 | |
2013-01-02 | mapper: convert to C++ | Max Kellermann | 1 | -2/+5 | |
2012-08-15 | Song: add function song_dup_detached() | Max Kellermann | 1 | -1/+20 | |
Initial support for "detached" songs that come from the database, but are private copies. | |||||
2012-08-15 | mapper: fix potential crash in file permission check | Max Kellermann | 1 | -3/+3 | |
2012-08-14 | mapper: fix non-UTF8 music directory name | Max Kellermann | 1 | -32/+57 | |
Duplicate the music_dir variable: one encoded in UTF-8, and another one using the configured filesystem character set. This fixes an ancient MPD bug. | |||||
2012-02-13 | mapper: add mapper_get_music_directory() | Max Kellermann | 1 | -3/+3 | |
Shortcut for map_directory_fs(db_get_root()). | |||||
2011-11-28 | mapper: check "r" permission on music directory | Max Kellermann | 1 | -0/+7 | |
Yet another common support case. | |||||
2011-11-28 | mapper: check "x" permission on music directory | Max Kellermann | 1 | -0/+8 | |
This is a common support case, and hopefully, the new error message will allow the user to understand the error without requiring support. | |||||
2011-11-28 | mapper: fix the bogus "not a directory" error message | Max Kellermann | 1 | -1/+13 | |
Use stat() instead of g_file_test() to detect other types of errors, such as "permission denied". | |||||
2011-11-28 | mapper: move code to check_directory() | Max Kellermann | 1 | -8/+11 | |
2011-01-29 | copyright year 2011 | Max Kellermann | 1 | -1/+1 | |
2010-07-25 | {queue,song}_print: print relative paths if possible | Max Kellermann | 1 | -0/+10 | |
If a song with an absolute path points inside the music directory, print only the relative part. This happens when partial songs from a playlist file were loaded. | |||||
2009-12-31 | Update copyright notices. | Avuton Olrich | 1 | -1/+1 | |
2009-12-08 | mapper: apply filesystem_charset to playlists | Max Kellermann | 1 | -4/+9 | |
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-12-08 | mapper: fix memory leak when playlist_directory is not set | Max Kellermann | 1 | -2/+2 | |
Don't allocate the file name before the playlist_dir==NULL check. | |||||
2009-11-12 | include config.h in all sources | Max Kellermann | 1 | -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-20 | mapper, update, ...: use g_build_filename(), G_DIR_SEPARATOR, ... | Max Kellermann | 1 | -2/+2 | |
Try to be as portable as possible, use GLib path name functions and macros. | |||||
2009-10-13 | song: renamed attribute "url" to "uri" | Max Kellermann | 1 | -2/+2 | |
2009-07-15 | mapper: use g_file_test() instead of stat() | Max Kellermann | 1 | -20/+2 | |
The GLib functions are more portable. | |||||
2009-07-15 | mapper: pass music and playlist directory to mapper_init() | Max Kellermann | 1 | -17/+5 | |
Added another glue function in main(). | |||||
2009-03-13 | all: Update copyright header. | Avuton Olrich | 1 | -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-03-01 | use GLIB_CHECK_VERSION() | Max Kellermann | 1 | -1/+1 | |
Use GLIB_CHECK_VERSION() instead of manually checking GLIB_MAJOR_VERSION, ... | |||||
2009-01-30 | mapper: ignore duplicate slashes in playlists | Max Kellermann | 1 | -0/+3 | |
When there are duplicate slashes in the song paths, eliminate them; example: /var/lib/mpd/music//foo.mp3 becomes: /var/lib/mpd/music/foo.mp3 The slash is only detected at the border between the music_directory and the local part. | |||||
2009-01-30 | mapper: remove trailing slashes from music_directory | Max Kellermann | 1 | -1/+15 | |
When the user configures a music_directory with a trailing slash, it may break playlist loading, because MPD expects a double slash. Chop off the trailing slash. | |||||
2009-01-25 | mapper: added dot to PLAYLIST_FILE_SUFFIX | Max Kellermann | 1 | -1/+1 | |
Some code will be a little bit simpler if the dot is part of the string literal. |