summaryrefslogtreecommitdiff
path: root/VirtualFileSystem/FullDevice.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-16 00:20:38 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-16 00:20:38 +0100
commitbd3e77cc167bbbaf294c2309511f42315ee6ad6a (patch)
treed21e3b87b7648cba129c09490b6fd87342593959 /VirtualFileSystem/FullDevice.h
parent08bfe518f909bcf0c241d910da16754cf97c4078 (diff)
downloadserenity-bd3e77cc167bbbaf294c2309511f42315ee6ad6a.zip
Pass the process to CharacterDevice::read/write.
This is much nicer than grabbing directly at 'current' inside a read().
Diffstat (limited to 'VirtualFileSystem/FullDevice.h')
-rw-r--r--VirtualFileSystem/FullDevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/VirtualFileSystem/FullDevice.h b/VirtualFileSystem/FullDevice.h
index f12e65a427..44b6af0a8c 100644
--- a/VirtualFileSystem/FullDevice.h
+++ b/VirtualFileSystem/FullDevice.h
@@ -8,8 +8,8 @@ public:
FullDevice();
virtual ~FullDevice() override;
- virtual ssize_t read(byte* buffer, size_t bufferSize) override;
- virtual ssize_t write(const byte* buffer, size_t bufferSize) override;
+ virtual ssize_t read(Process&, byte* buffer, size_t bufferSize) override;
+ virtual ssize_t write(Process&, const byte* buffer, size_t bufferSize) override;
virtual bool can_read(Process&) const override;
virtual bool can_write(Process&) const override { return true; }
};