summaryrefslogtreecommitdiff
path: root/src/Mapper.hxx
AgeCommit message (Collapse)Author
2021-01-01copyright year 2021Max Kellermann
2020-01-18copyright year 2020Max Kellermann
2019-06-17Copyright year 2019Max Kellermann
2019-02-05Mapper: remove empty function mapper_finish()Max Kellermann
2018-11-19check.h: remove obsolete headerMax Kellermann
Since we switched from autotools to Meson in commit 94592c14062d5afc9482d11baa401648082022c0, we don't need to include `config.h` early to properly enable large file support. Meson passes the required macros on the compiler command line instead of defining them in `config.h`. This means we can include `config.h` at any time, whenever we want to check its macros, and there are no ordering constraints.
2018-10-31*: copyright year 2018Max Kellermann
2018-08-20Compiler.h: move to util/Max Kellermann
2017-05-08*: add "noexcept" to many, many function prototypesMax Kellermann
This eliminates some overhead, because the compiler doesn't need to consider these functions throwing.
2017-01-03update copyright yearMax Kellermann
2016-02-26update copyright year to 2016Max Kellermann
2015-03-03*: change C-style prototypes, drop "(void)"Max Kellermann
2015-02-28Mapper: use class PathMax Kellermann
2015-01-01Copyright year 2015Max Kellermann
2014-02-07Mapper: obtain music directory from StorageMax Kellermann
Eliminate duplicate variable.
2014-02-07Mapper: remove unused functionsMax Kellermann
2014-02-07StoragePlugin: add method MapToRelativeUTF8()Max Kellermann
Replaces map_to_relative_path() from Mapper.cxx.
2014-02-07Mapper: remove unused function map_song_fs()Max Kellermann
2014-02-07Mapper: move map_song_detach() to db/DatabaseSong.cxxMax Kellermann
Use Storage::MapUTF8() internally, don't use global variables.
2014-02-05LocalStorage: new API abstracting filesystem walkMax Kellermann
Prepare to make this a new plugin API, for example to use a SMB share for the music_directory.
2014-01-30db: add compile-time option to disable databaseMax Kellermann
2014-01-19LightSong: new class to be used by DatabasePlugin callbacksMax Kellermann
Detach the Song class completely from the public API, only to be used by SimpleDatabase and the update thread.
2014-01-17Mapper: add function map_song_detach()Max Kellermann
Make the DetachedSong(Song) conversion constructor private. Everybody should use map_song_detach() which will take over more responsibilities soon.
2014-01-13copyright year 2014Max Kellermann
2014-01-09DetachedSong: fork of struct SongMax Kellermann
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-04Mapper: update API documentationMax Kellermann
2013-11-28include cleanup using iwyuMax Kellermann
2013-11-22Mapper: _get_music_directory_utf8() may return nullptrMax Kellermann
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 pointersMax Kellermann
2013-10-17fs/Path: rename to AllocatedPathMax Kellermann
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-15gcc.h: rename to Compiler.hMax Kellermann
2013-10-14Mapper: map_fs_to_utf8() returns std::stringMax Kellermann
Avoid the conversion to an allocated char*, let the caller decide.
2013-09-04util/Error: new error passing libraryMax Kellermann
Replaces GLib's GError.
2013-08-07ConfigPath: return a Path objectMax Kellermann
Migrate all callers to use Path directly, instead of doing the conversion in each caller.
2013-07-28song: convert header to C++Max Kellermann
2013-01-28Path::FromUTF8() returns nulled instance on error, add error handling where ↵Denis Krjuchkov
required
2013-01-26Mapper: improve usage of Path classDenis Krjuchkov
2013-01-18Path: new class "Path" wraps filesystem path stringsMax Kellermann
2013-01-03Directory: rename struct directory to DirectoryMax Kellermann
2013-01-02mapper: convert to C++Max Kellermann