1.1 --- a/file_pager.h Sun Jan 24 01:29:41 2021 +0100
1.2 +++ b/file_pager.h Sun Jan 24 19:29:07 2021 +0100
1.3 @@ -1,16 +1,20 @@
1.4 #pragma once
1.5
1.6 +#include "mapped_file_object_interface.h"
1.7 #include "pager.h"
1.8
1.9 /* A pager abstraction for a file. */
1.10
1.11 -class FilePager : public Pager
1.12 +class FilePager : public Pager, public MappedFileObject
1.13 {
1.14 public:
1.15 fileid_t fileid;
1.16
1.17 explicit FilePager(fileid_t fileid, PageMapper *mapper);
1.18
1.19 + virtual long map(unsigned long offset, l4_addr_t hot_spot, unsigned long flags, l4_snd_fpage_t *region)
1.20 + { return Pager::map(offset, hot_spot, flags, region); }
1.21 +
1.22 virtual long mmap(size_t position, size_t length, size_t *start_pos, size_t *end_pos, size_t *data_end);
1.23 };
1.24