summaryrefslogtreecommitdiff
path: root/src/render/SyncFDManager.hpp
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2026-03-29 00:41:45 +0300
committerGitHub <noreply@github.com>2026-03-28 21:41:45 +0000
commit38a7f03cf0e5ee116794a78581634ba3dab508fa (patch)
tree969891411b2af4e437a183004018cfc359a3057e /src/render/SyncFDManager.hpp
parentef2e8dfd5f7e6ee55fa7bc48e44974e64938d14a (diff)
renderer: refactor part 7: api fixes (#13631)
Part 7 of ujin's refactors --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
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;
+ };
+}