mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
022f7790db
This is quite nice, although I wish [[gnu::always_inline]] implied inline. Also "gnu::" is kind of a wart, but whatcha gonna do.
29 lines
597 B
C++
29 lines
597 B
C++
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <Kernel/SyntheticFileSystem.h>
|
|
|
|
class Process;
|
|
class SlavePTY;
|
|
|
|
class DevPtsFS final : public SynthFS {
|
|
public:
|
|
[[gnu::pure]] static DevPtsFS& the();
|
|
|
|
virtual ~DevPtsFS() override;
|
|
static RetainPtr<DevPtsFS> create();
|
|
|
|
virtual bool initialize() override;
|
|
virtual const char* class_name() const override;
|
|
|
|
void register_slave_pty(SlavePTY&);
|
|
void unregister_slave_pty(SlavePTY&);
|
|
|
|
private:
|
|
DevPtsFS();
|
|
|
|
RetainPtr<SynthFSInode> create_slave_pty_device_file(unsigned index);
|
|
|
|
HashTable<SlavePTY*> m_slave_ptys;
|
|
};
|
|
|