Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2015-01-01 | Copyright year 2015 | Max Kellermann | 1 | -1/+1 | |
2014-02-07 | Mapper: obtain music directory from Storage | Max Kellermann | 1 | -1/+1 | |
Eliminate duplicate variable. | |||||
2014-02-07 | Mapper: remove unused functions | Max Kellermann | 1 | -34/+0 | |
2014-02-07 | StoragePlugin: add method MapToRelativeUTF8() | Max Kellermann | 1 | -9/+0 | |
Replaces map_to_relative_path() from Mapper.cxx. | |||||
2014-02-07 | Mapper: remove unused function map_song_fs() | Max Kellermann | 1 | -19/+0 | |
2014-02-07 | Mapper: move map_song_detach() to db/DatabaseSong.cxx | Max Kellermann | 1 | -8/+0 | |
Use Storage::MapUTF8() internally, don't use global variables. | |||||
2014-02-05 | LocalStorage: new API abstracting filesystem walk | Max Kellermann | 1 | -22/+0 | |
Prepare to make this a new plugin API, for example to use a SMB share for the music_directory. | |||||
2014-01-30 | db: add compile-time option to disable database | Max Kellermann | 1 | -0/+12 | |
2014-01-19 | LightSong: new class to be used by DatabasePlugin callbacks | Max Kellermann | 1 | -1/+2 | |
Detach the Song class completely from the public API, only to be used by SimpleDatabase and the update thread. | |||||
2014-01-17 | Mapper: add function map_song_detach() | Max Kellermann | 1 | -0/+8 | |
Make the DetachedSong(Song) conversion constructor private. Everybody should use map_song_detach() which will take over more responsibilities soon. | |||||
2014-01-13 | copyright year 2014 | Max Kellermann | 1 | -1/+1 | |
2014-01-09 | DetachedSong: fork of struct Song | Max Kellermann | 1 | -0/+5 | |
From now on, struct Song will be used by the database only, and DetachedSong will be used by everybody else. DetachedSong is easier to use, but Song has lower overhead. | |||||
2013-12-04 | Mapper: update API documentation | Max Kellermann | 1 | -2/+1 | |
2013-11-28 | include cleanup using iwyu | Max Kellermann | 1 | -1/+0 | |
2013-11-22 | Mapper: _get_music_directory_utf8() may return nullptr | Max Kellermann | 1 | -1/+2 | |
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-19 | *: use references instead of pointers | Max Kellermann | 1 | -3/+3 | |
2013-10-17 | fs/Path: rename to AllocatedPath | Max Kellermann | 1 | -8/+9 | |
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-15 | gcc.h: rename to Compiler.h | Max Kellermann | 1 | -1/+1 | |
2013-10-14 | Mapper: map_fs_to_utf8() returns std::string | Max Kellermann | 1 | -3/+6 | |
Avoid the conversion to an allocated char*, let the caller decide. | |||||
2013-09-04 | util/Error: new error passing library | Max Kellermann | 1 | -1/+0 | |
Replaces GLib's GError. | |||||
2013-08-07 | ConfigPath: return a Path object | Max Kellermann | 1 | -2/+2 | |
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 | -2/+2 | |
2013-01-28 | Path::FromUTF8() returns nulled instance on error, add error handling where ↵ | Denis Krjuchkov | 1 | -1/+2 | |
required | |||||
2013-01-26 | Mapper: improve usage of Path class | Denis Krjuchkov | 1 | -2/+2 | |
2013-01-18 | Path: new class "Path" wraps filesystem path strings | Max Kellermann | 1 | -9/+10 | |
2013-01-03 | Directory: rename struct directory to Directory | Max Kellermann | 1 | -3/+3 | |
2013-01-02 | mapper: convert to C++ | Max Kellermann | 1 | -12/+9 | |
2012-08-14 | mapper: fix non-UTF8 music directory name | Max Kellermann | 1 | -2/+13 | |
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-08-02 | gcc.h: re-add gcc_const and gcc_pure | Max Kellermann | 1 | -11/+12 | |
Remove GLib dependency from some headers. | |||||
2012-08-02 | DatabaseVisitor, ...: use GError forward declaration | Max Kellermann | 1 | -0/+2 | |
2012-02-13 | mapper: add mapper_get_music_directory() | Max Kellermann | 1 | -2/+9 | |
Shortcut for map_directory_fs(db_get_root()). | |||||
2012-02-13 | mapper: add "pure" attributes | Max Kellermann | 1 | -0/+10 | |
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/+8 | |
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 | -0/+2 | |
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-07-15 | mapper: pass music and playlist directory to mapper_init() | Max Kellermann | 1 | -1/+1 | |
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-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. | |||||
2009-01-18 | mapper: make the music_directory optional | Max Kellermann | 1 | -0/+8 | |
Without a music_directory, MPD is an excellent streaming client. | |||||
2009-01-04 | mapper: allocate the result of map_fs_to_utf8() | Max Kellermann | 1 | -6/+2 | |
2009-01-02 | mapper: allocate the result of map_directory_child_fs(), map_song_fs() | Max Kellermann | 1 | -5/+4 | |
Don't use fixed stack buffers. | |||||
2009-01-02 | mapper: allocate the result of map_uri_fs(), map_directory_fs() | Max Kellermann | 1 | -4/+4 | |
Don't use fixed stack buffers. | |||||
2009-01-01 | mapper: allocate playlist path from heap | Max Kellermann | 1 | -3/+4 | |
Don't pass a static buffer to map_spl_utf8_to_fs(). | |||||
2008-12-24 | playlist: fix stored playlist modifications with absolute paths | Max Kellermann | 1 | -0/+8 | |
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. | |||||
2008-10-31 | path: moved playlist_dir to mapper.c | Max Kellermann | 1 | -0/+15 | |
Added the function map_spl_utf8_to_fs() which replaces utf8_to_fs_playlist_path(). | |||||
2008-10-31 | added prefix to header macros | Max Kellermann | 1 | -2/+2 | |
"LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD. | |||||
2008-10-15 | mapper: moved musicDir initialization from path.c | Max Kellermann | 1 | -0/+4 | |
Moved the musicDir variable and its initialization code from path.c to mapper.c. | |||||
2008-10-14 | mapper: new song-to-filesystem mapper library | Max Kellermann | 1 | -0/+74 | |
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. |