1
Fork 0
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:
Andreas Kling 2018-10-14 02:59:22 +02:00
parent fa3b11ac64
commit 93556d6743
14 changed files with 157 additions and 2 deletions

View 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() { }
};