1.1 --- a/libfsserver/include/fsserver/file_paging.h Fri Jul 16 00:38:55 2021 +0200
1.2 +++ b/libfsserver/include/fsserver/file_paging.h Fri Jul 16 00:39:24 2021 +0200
1.3 @@ -25,6 +25,7 @@
1.4 #include <mutex>
1.5
1.6 #include <fsserver/accessor.h>
1.7 +#include <fsserver/notification.h>
1.8 #include <fsserver/pager.h>
1.9 #include <fsserver/page_mapper.h>
1.10
1.11 @@ -39,7 +40,7 @@
1.12
1.13 /* A registry of mappers for accessors. */
1.14
1.15 -class FilePaging
1.16 +class FilePaging : public NotificationSupport
1.17 {
1.18 protected:
1.19 Pages *_pages;
1.20 @@ -55,9 +56,11 @@
1.21
1.22 /* Configurable methods. */
1.23
1.24 - virtual fileid_t get_fileid(const char *path) = 0;
1.25 + virtual map_flags_t get_flags(flags_t flags);
1.26
1.27 - virtual map_flags_t get_flags(flags_t flags);
1.28 + /* Configurable methods requiring implementation. */
1.29 +
1.30 + virtual fileid_t get_fileid(const char *path) = 0;
1.31
1.32 virtual Accessor *make_accessor(const char *path, fileid_t fileid) = 0;
1.33
1.34 @@ -72,8 +75,6 @@
1.35 public:
1.36 explicit FilePaging(Pages *pages);
1.37
1.38 - virtual ~FilePaging();
1.39 -
1.40 /* Methods for the pager. */
1.41
1.42 void detach_pager(fileid_t fileid, PageMapper *mapper);