summaryrefslogtreecommitdiff
path: root/src/SongLoader.cxx
AgeCommit message (Collapse)Author
2020-03-12replace assert.h with cassertRosen Penev
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-01-18copyright year 2020Max Kellermann
2019-06-17Copyright year 2019Max Kellermann
2019-04-18LocateUri: pass URI plugin kind, optionally disables plugin verifyMax Kellermann
Commit b3a458338a7c8ff3c230ee33d85e973d3dbc056a added a LocateUri() call to several playlist commands, which applied InputPlugin URI scheme verification to playlist URIs. This broke the SoundCloud playlist plugin which uses "soundcloud://" URIs for which no input plugin exists. This commit allows the caller to specify the kind of plugin which shall be used to verify the URI. Right now, only "input" is implemented; "storage" uses the "input" verification for now; and "playlist" has no verification at all (for now). Closes https://github.com/MusicPlayerDaemon/MPD/issues/528
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-02DetachedSong, db/LightSong, SongFilter: move to src/song/Max Kellermann
2017-02-08db/DatabaseSong: make the Storage optionalMax Kellermann
Some database plugins don't use a Storage (e.g. UPnP), and with this plugin, DatabaseDetachSong() can crash.
2017-02-08SongLoader: return instance, not pointerMax Kellermann
2017-02-08db/DatabaseSong: DatabaseDetachSong(uri) returns instance, not pointerMax Kellermann
2017-01-03update copyright yearMax Kellermann
2016-11-07SongLoader, ...: include cleanupMax Kellermann
2016-10-27LocateUri: migrate from class Error to C++ exceptionsMax Kellermann
2016-10-26Instance: remove Error parameter from GetDatabase()Max Kellermann
2016-03-19db/Interface: GetSong() throws exception on errorMax Kellermann
2016-02-28SongLoader: throw PlaylistError on errorMax Kellermann
2016-02-28SongLoader: use temporary stack variable, no heap allocationMax Kellermann
Improved exception-safety.
2016-02-26update copyright year to 2016Max Kellermann
2015-10-22LocateUri: new library to classify URIs in a standard wayMax Kellermann
2015-10-22SongLoader: move code to LoadFromDatabase()Max Kellermann
Avoids the recursion in LoadFile().
2015-10-20DetachedSong: move code from Update() to LoadFile()Max Kellermann
Avoid duplicate AllocatedPath::FromUTF8() invocations in two callers.
2015-01-01Copyright year 2015Max Kellermann
2014-12-26fs/Traits, ...: work around -Wtautological-pointer-compareMax Kellermann
New in clang 3.6.
2014-02-07StoragePlugin: add method MapToRelativeUTF8()Max Kellermann
Replaces map_to_relative_path() from Mapper.cxx.
2014-02-07Mapper: move map_song_detach() to db/DatabaseSong.cxxMax Kellermann
Use Storage::MapUTF8() internally, don't use global variables.
2014-02-04Instance: add Database attributeMax Kellermann
Move from db/DatabaseGlue.cxx, eliminating global variable.
2014-02-04db/DatabasePlaylist: pass Database reference aroundMax Kellermann
Reduce global variable usage, move to frontend code.
2014-02-03SongLoader: new class that merges duplicate codeMax Kellermann
There was quite a lot of duplicate code for loading DetachedSong objects, with different semantics for "securely" loading local files.