db/update/InotifyUpdate: convert to class, no global variables

This commit is contained in:
Max Kellermann
2021-10-13 18:14:37 +02:00
parent 72f6e018e7
commit 2d8847f428
5 changed files with 146 additions and 127 deletions
+7
View File
@@ -43,6 +43,9 @@ class NeighborGlue;
#include "db/Ptr.hxx"
class Storage;
class UpdateService;
#ifdef ENABLE_INOTIFY
class InotifyUpdate;
#endif
#endif
#include <memory>
@@ -120,6 +123,10 @@ struct Instance final
Storage *storage = nullptr;
UpdateService *update = nullptr;
#ifdef ENABLE_INOTIFY
std::unique_ptr<InotifyUpdate> inotify_update;
#endif
#endif
#ifdef ENABLE_CURL