summaryrefslogtreecommitdiff
path: root/Kernel/Devices/DebugLogDevice.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-29 13:58:40 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-29 13:58:40 +0200
commit8cbb7f101f1d7d8cf71a9347ddf3a6ca46a97b11 (patch)
tree75257c71c207ff7910aafd89517c0e31aa970e32 /Kernel/Devices/DebugLogDevice.h
parent3761bc3ed7bc245e5ba4119136e6e33698b30300 (diff)
downloadserenity-8cbb7f101f1d7d8cf71a9347ddf3a6ca46a97b11.zip
Kernel: Have File virtuals take a FileDescriptor& rather than a Process&.
This will allow us to implement different behaviors depending on the role of the descriptor a File is being accessed through.
Diffstat (limited to 'Kernel/Devices/DebugLogDevice.h')
-rw-r--r--Kernel/Devices/DebugLogDevice.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Devices/DebugLogDevice.h b/Kernel/Devices/DebugLogDevice.h
index dd6db9f4d2..9b09205074 100644
--- a/Kernel/Devices/DebugLogDevice.h
+++ b/Kernel/Devices/DebugLogDevice.h
@@ -9,9 +9,9 @@ public:
private:
// ^CharacterDevice
- virtual ssize_t read(Process&, byte*, ssize_t) override { return 0; }
- virtual ssize_t write(Process&, const byte*, ssize_t) override;
- virtual bool can_write(Process&) const override { return true; }
- virtual bool can_read(Process&) const override { return true; }
+ virtual ssize_t read(FileDescriptor&, byte*, ssize_t) override { return 0; }
+ virtual ssize_t write(FileDescriptor&, const byte*, ssize_t) override;
+ virtual bool can_write(FileDescriptor&) const override { return true; }
+ virtual bool can_read(FileDescriptor&) const override { return true; }
virtual const char* class_name() const override { return "DebugLogDevice"; }
};