Instance: add GetDatabaseOrThrow()

This commit is contained in:
Max Kellermann
2016-10-26 18:47:19 +02:00
parent 6135f0763b
commit 086652dd50
12 changed files with 65 additions and 40 deletions

View File

@@ -185,6 +185,9 @@ struct Partition final : QueueListener, PlayerListener, MixerListener {
*/
const Database *GetDatabase(Error &error) const;
gcc_pure
const Database &GetDatabaseOrThrow() const;
/**
* The database has been modified. Propagate the change to
* all subsystems.