diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-29 13:58:40 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-29 13:58:40 +0200 |
commit | 8cbb7f101f1d7d8cf71a9347ddf3a6ca46a97b11 (patch) | |
tree | 75257c71c207ff7910aafd89517c0e31aa970e32 /Kernel/Devices/DebugLogDevice.h | |
parent | 3761bc3ed7bc245e5ba4119136e6e33698b30300 (diff) | |
download | serenity-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.h | 8 |
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"; } }; |