aboutsummaryrefslogtreecommitdiffstats
path: root/src/Mapper.cxx (follow)
Commit message (Collapse)AuthorAgeFilesLines
* util/StringCompare: add StringIsEmpty()Max Kellermann2015-11-061-1/+2
|
* Mapper: don't use C-style prototypesMax Kellermann2015-03-241-2/+3
|
* Mapper: use Path::IsAbsolute()Max Kellermann2015-02-281-7/+7
|
* fs/Path: pass Path to Relative()Max Kellermann2015-02-281-1/+1
|
* fs/Path: rename RelativeFS() to Relative()Max Kellermann2015-02-281-1/+1
|
* Mapper: use class PathMax Kellermann2015-02-281-1/+3
|
* Copyright year 2015Max Kellermann2015-01-011-1/+1
|
* Mapper: obtain music directory from StorageMax Kellermann2014-02-071-29/+17
| | | | Eliminate duplicate variable.
* Main: check the music directoryMax Kellermann2014-02-071-2/+0
| | | | Move call from Mapper.cxx.
* Mapper: move check_directory() to the filesystem libraryMax Kellermann2014-02-071-44/+3
|
* Main: chop separators from music directoryMax Kellermann2014-02-071-1/+0
| | | | Move call from Mapper.cxx.
* Mapper: remove unused functionsMax Kellermann2014-02-071-31/+1
|
* StoragePlugin: add method MapToRelativeUTF8()Max Kellermann2014-02-071-15/+0
| | | | Replaces map_to_relative_path() from Mapper.cxx.
* Mapper: remove unused function map_song_fs()Max Kellermann2014-02-071-67/+0
|
* Mapper: move map_song_detach() to db/DatabaseSong.cxxMax Kellermann2014-02-071-15/+0
| | | | Use Storage::MapUTF8() internally, don't use global variables.
* Mapper: convert IsInDatabase() check to assertion in map_song_detach()Max Kellermann2014-02-071-1/+2
|
* LocalStorage: new API abstracting filesystem walkMax Kellermann2014-02-051-2/+11
| | | | | Prepare to make this a new plugin API, for example to use a SMB share for the music_directory.
* Mapper: assert that Song::parent is not nullptrMax Kellermann2014-01-311-18/+3
|
* db: add compile-time option to disable databaseMax Kellermann2014-01-301-1/+34
|
* Database*: move to db/Max Kellermann2014-01-241-3/+3
|
* LightSong: add attribute "real_uri"Max Kellermann2014-01-211-1/+1
| | | | | The UPnP database plugin can now show relative song URIs for remote songs.
* DetachedSong: add attribute "real_uri"Max Kellermann2014-01-211-2/+11
| | | | Prepare for UPnP songs that retain there database identity.
* LightSong: new class to be used by DatabasePlugin callbacksMax Kellermann2014-01-191-1/+1
| | | | | Detach the Song class completely from the public API, only to be used by SimpleDatabase and the update thread.
* Mapper: add function map_song_detach()Max Kellermann2014-01-171-0/+6
| | | | | | Make the DetachedSong(Song) conversion constructor private. Everybody should use map_song_detach() which will take over more responsibilities soon.
* copyright year 2014Max Kellermann2014-01-131-1/+1
|
* DetachedSong: fork of struct SongMax Kellermann2014-01-091-6/+11
| | | | | | 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.
* fs/Traits: split PathTraits type into PathTraitsFS and PathTraitsUTF8Denis Krjuchkov2013-12-051-2/+2
|
* include cleanup using iwyuMax Kellermann2013-11-281-2/+0
|
* Mapper: _get_music_directory_utf8() may return nullptrMax Kellermann2013-11-221-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.
* *: use nullptr instead of NULLMax Kellermann2013-10-281-2/+2
|
* *: use references instead of pointersMax Kellermann2013-10-191-11/+11
|
* fs/Path: rename to AllocatedPathMax Kellermann2013-10-171-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.
* fs/Path: move definitions to struct PathTraitsMax Kellermann2013-10-171-2/+3
|
* fs/Path: move configuration code to Config.cxxMax Kellermann2013-10-171-1/+2
|
* Mapper: use std::stringMax Kellermann2013-10-171-16/+11
|
* Mapper: remove obsolete variable music_dir_fs_lengthMax Kellermann2013-10-151-2/+0
|
* fs/Path: add separator constants/functionsMax Kellermann2013-10-141-17/+4
|
* fs/Path: add method RelativeFS()Max Kellermann2013-10-141-11/+5
| | | | Move code from map_fs_to_utf8().
* Mapper, ...: use memcmp() instead of strncmp() where appropriateMax Kellermann2013-10-141-1/+1
| | | | Micro-optimization.
* Mapper: map_fs_to_utf8() returns std::stringMax Kellermann2013-10-141-6/+2
| | | | Avoid the conversion to an allocated char*, let the caller decide.
* Log: new logging library APIMax Kellermann2013-10-021-12/+14
| | | | | Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
* Daemon, Mapper: move-assign the Path objectsMax Kellermann2013-10-011-2/+2
|
* ConfigPath: return a Path objectMax Kellermann2013-08-071-32/+20
| | | | | Migrate all callers to use Path directly, instead of doing the conversion in each caller.
* song: convert header to C++Max Kellermann2013-07-281-5/+5
|
* DirectoryReader: rename Failed() to HasFailed() for consistency with TextFileDenis Krjuchkov2013-05-051-1/+1
|
* Path::FromUTF8() returns nulled instance on error, add error handling where ↵Denis Krjuchkov2013-01-281-9/+36
| | | | required
* Path: convert fs_charset_to_utf8() to static method Path::ToUTF8()Denis Krjuchkov2013-01-281-1/+5
|
* Mapper: improve usage of Path classDenis Krjuchkov2013-01-261-31/+28
|
* Path: move to fs subdirectoryDenis Krjuchkov2013-01-221-1/+1
|
* Path: new class "Path" wraps filesystem path stringsMax Kellermann2013-01-181-51/+31
|