mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +00:00
Pass the process to CharacterDevice::read/write.
This is much nicer than grabbing directly at 'current' inside a read().
This commit is contained in:
parent
08bfe518f9
commit
bd3e77cc16
Notes:
sideshowbarker
2024-07-19 16:01:51 +09:00
Author: https://github.com/awesomekling
Commit: bd3e77cc16
27 changed files with 63 additions and 62 deletions
|
@ -119,7 +119,7 @@ bool Keyboard::can_read(Process&) const
|
|||
return !m_queue.is_empty();
|
||||
}
|
||||
|
||||
ssize_t Keyboard::read(byte* buffer, size_t size)
|
||||
ssize_t Keyboard::read(Process&, byte* buffer, size_t size)
|
||||
{
|
||||
ssize_t nread = 0;
|
||||
while ((size_t)nread < size) {
|
||||
|
@ -130,7 +130,7 @@ ssize_t Keyboard::read(byte* buffer, size_t size)
|
|||
return nread;
|
||||
}
|
||||
|
||||
ssize_t Keyboard::write(const byte*, size_t)
|
||||
ssize_t Keyboard::write(Process&, const byte*, size_t)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue