mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
Add basic character device support. Start with null and zero.
This commit is contained in:
parent
fa3b11ac64
commit
93556d6743
14 changed files with 157 additions and 2 deletions
15
VirtualFileSystem/CharacterDevice.h
Normal file
15
VirtualFileSystem/CharacterDevice.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
#include "Limits.h"
|
||||
|
||||
class CharacterDevice {
|
||||
public:
|
||||
virtual ~CharacterDevice();
|
||||
|
||||
virtual ssize_t read(byte* buffer, size_t bufferSize) = 0;
|
||||
virtual ssize_t write(const byte* buffer, size_t bufferSize) = 0;
|
||||
|
||||
protected:
|
||||
CharacterDevice() { }
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue