summaryrefslogtreecommitdiff
path: root/src/render/SyncFDManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/SyncFDManager.hpp')
-rw-r--r--src/render/SyncFDManager.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/render/SyncFDManager.hpp b/src/render/SyncFDManager.hpp
new file mode 100644
index 00000000..5996fbeb
--- /dev/null
+++ b/src/render/SyncFDManager.hpp
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <hyprutils/os/FileDescriptor.hpp>
+
+namespace Render {
+ class ISyncFDManager {
+ public:
+ virtual ~ISyncFDManager() = default;
+
+ Hyprutils::OS::CFileDescriptor& fd();
+ Hyprutils::OS::CFileDescriptor&& takeFd();
+ virtual bool isValid();
+
+ protected:
+ ISyncFDManager() = default;
+
+ Hyprutils::OS::CFileDescriptor m_fd;
+ bool m_valid = false;
+ };
+}