db/simple: purge special directories for unavailable plugins on update

This commit is contained in:
Max Kellermann
2020-10-27 19:00:46 +01:00
parent 0779333064
commit ecaa51e322
5 changed files with 89 additions and 1 deletions

View File

@@ -132,6 +132,13 @@ public:
return mounted_database != nullptr;
}
/**
* Checks whether this is a "special" directory
* (e.g. #DEVICE_PLAYLIST) and whether the underlying plugin
* is available.
*/
bool IsPluginAvailable() const noexcept;
/**
* Remove this #Directory object from its parent and free it. This
* must not be called with the root Directory.