summaryrefslogtreecommitdiff
path: root/src/sticker
AgeCommit message (Collapse)Author
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
2018-08-09command/sticker, sticker/song: embed struct sticker_song_find_data in namespaceMax Kellermann
Fixes `-Werror=odr`
2018-08-02DetachedSong, db/LightSong, SongFilter: move to src/song/Max Kellermann
2017-12-19Main, ...: catch any exception, not just std::runtime_errorMax Kellermann
2017-05-08*: remove "pure" and "const" attributes from throwing functionsMax Kellermann
The "pure" and "const" attributes are not so well-defined, and a recent clang version implements an optimization which pushes the definition's boundary beyond what I believed it was. clang now assumes that functions declared "pure" cannot throw exceptions, even if they lack the "noexcept" specification. When compiled with this new clang version, MPD will crash randomly if an exception happens to get thrown by such as "pure" function (https://github.com/MusicPlayerDaemon/MPD/issues/41). This commit removes all such misplaced "pure" and "const" attributes, closing #41.
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-11-10util/Error: remove obsolete classMax Kellermann
2016-10-27lib/sqlite, sticker: migrate from class Error to C++ exceptionsMax Kellermann
2016-03-30sticker/SongSticker: add missing <stdexcept> includeMax Kellermann
For std::runtime_error. See http://bugs.musicpd.org/view.php?id=4509
2016-03-19db/Interface: GetSong() throws exception on errorMax Kellermann
2016-03-19sticker/Song: catch Database::GetSong() exceptionsMax Kellermann
2016-03-18sticker/Song: add _delete() overload with "const char *"Max Kellermann
2016-03-01*: include cleanup (using iwyu)Max Kellermann
2016-02-26update copyright year to 2016Max Kellermann
2015-11-06util/StringCompare: add StringIsEmpty()Max Kellermann
2015-08-12client/Response: new Client wrapper class for writing responsesMax Kellermann
2015-01-28StickerDatabase: convert the struct name to upper caseMax Kellermann
2015-01-01Copyright year 2015Max Kellermann
2014-12-12sticker/Match: add inequality operatorsMax Kellermann
2014-12-12sticker/Match: add operator "EQUALS"Max Kellermann
Mapped to "=" in the MPD protocol. This is the first operator, initially supporting value matches in the MPD protocol.
2014-12-12sticker/Song: add enum StickerOperator to sticker_song_find()Max Kellermann
2014-12-12sticker/Database: move code to BindFind()Max Kellermann
2014-12-12sticker/Database: use the Error libraryMax Kellermann
2014-12-12sticker/Database: always invoke sqlite3_reset() and sqlite3_clear_bindings()Max Kellermann
2014-12-12lib/sqlite/Util: add ExecuteModified()Max Kellermann
2014-12-12sticker/Database: add wrapper for sqlite3_step()Max Kellermann
2014-12-12sticker/Database: move SQLite helpers to lib/sqlite/Util.hxxMax Kellermann
2014-12-12lib/sqlite/Domain: add Domain instance for SQLiteMax Kellermann
Replaces the sticker_domain for Error::domain.
2014-12-12sticker/Database: remove redundant sqlite3_reset() callsMax Kellermann
Call sqlite3_reset() only after a sqlite3_stmt* has been used, not before. Assume it is already in reusable state.
2014-12-12sticker/Database: require SQLite 3.7.3Max Kellermann
SQLite 3.7.3 is the version shipped in Debian Squeeze (oldstable); should be old enough to be the required version. Drop the compatibility #ifdef.
2014-12-12sticker/Database: make variables more localMax Kellermann
2014-12-12sticker/Database: add sqlite3_bind_text() wrapperMax Kellermann
2014-12-12sticker/Database: remove C-style (void)Max Kellermann
2014-12-04SongSticker: remove obsolete documentationMax Kellermann
2014-10-25SongSticker, playlist/soundcloud: add missing stdlib.h includeMax Kellermann
For free().
2014-10-25SongSticker: don't use GLibMax Kellermann
2014-02-19DatabasePlugin: split headerMax Kellermann
2014-02-04SongSticker: add Database reference parameterMax Kellermann
2014-01-29sticker: don't use classes Directory and SongMax Kellermann
Don't depend on the "simple" database plugin. This fixes an assertion failure / crash and allows using stickers with other plugins.
2014-01-24Database*: move to db/Max Kellermann
2014-01-24Sticker*: move to sticker/Max Kellermann