mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
2cfcbdc735
Also use some Clang attribute wizardry to get a warning for use-after-move.
29 lines
595 B
C++
29 lines
595 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 Retained<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();
|
|
|
|
Retained<SynthFSInode> create_slave_pty_device_file(unsigned index);
|
|
|
|
HashTable<SlavePTY*> m_slave_ptys;
|
|
};
|
|
|