mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 20:29:42 +00:00
It still requires an ELF compiler and linker, but at least it builds. I need to get rid of the "Unix" namespace. This does a lot of that.
16 lines
383 B
C++
16 lines
383 B
C++
#pragma once
|
|
|
|
#include "CharacterDevice.h"
|
|
|
|
class NullDevice final : public CharacterDevice {
|
|
AK_MAKE_ETERNAL
|
|
public:
|
|
NullDevice();
|
|
virtual ~NullDevice() override;
|
|
|
|
virtual ssize_t read(byte* buffer, size_t bufferSize) override;
|
|
virtual ssize_t write(const byte* buffer, size_t bufferSize) override;
|
|
virtual bool hasDataAvailableForRead() const override;
|
|
};
|
|
|