summaryrefslogtreecommitdiff
path: root/src/sticker
AgeCommit message (Collapse)Author
2021-01-01copyright year 2021Max Kellermann
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-02-16[clang-tidy] add ending namespace commentsRosen Penev
Found with llvm-namespace-comment Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-02-01*: use `auto`Max Kellermann
2020-01-18copyright year 2020Max Kellermann
2019-08-03util/Macros: replace with std::size() (C++17)Max Kellermann
2019-07-05include cleanups (powered by iwyu)Max Kellermann
2019-06-17Copyright year 2019Max Kellermann
2019-04-25lib/sqlite/Database: wrapper for `sqlite3*`Max Kellermann
2019-04-25sticker/Database: wrap in class StickerDatabaseMax Kellermann
2019-04-25sticker/Database: move sticker_prepare() to lib/sqlite/Util.hxxMax Kellermann
2019-04-25lib/sqlite/Util: move into namespaceMax Kellermann
2019-04-24sticker/*: rename source files, drop "Sticker" prefixMax Kellermann
2019-04-24sticker/Database: eliminate sticker_foreach()Max Kellermann
2019-04-24sticker/Database: remove unused function sticker_get_value()Max Kellermann
2019-04-24sticker/Database: return Sticker by valueMax Kellermann
2019-04-24sticker/Database: move struct Sticker to Sticker.hxxMax Kellermann
2019-04-24sticker/Database: add `noexcept`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
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.