summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/HyprCtl.hpp')
-rw-r--r--src/debug/HyprCtl.hpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/debug/HyprCtl.hpp b/src/debug/HyprCtl.hpp
index eed8265c..a95a5f93 100644
--- a/src/debug/HyprCtl.hpp
+++ b/src/debug/HyprCtl.hpp
@@ -4,6 +4,7 @@
#include "../helpers/MiscFunctions.hpp"
#include "../desktop/Window.hpp"
#include <functional>
+#include <hyprutils/os/FileDescriptor.hpp>
// exposed for main.cpp
std::string systemInfoRequest(eHyprCtlOutputFormat format, std::string request);
@@ -14,12 +15,12 @@ class CHyprCtl {
CHyprCtl();
~CHyprCtl();
- std::string makeDynamicCall(const std::string& input);
- SP<SHyprCtlCommand> registerCommand(SHyprCtlCommand cmd);
- void unregisterCommand(const SP<SHyprCtlCommand>& cmd);
- std::string getReply(std::string);
+ std::string makeDynamicCall(const std::string& input);
+ SP<SHyprCtlCommand> registerCommand(SHyprCtlCommand cmd);
+ void unregisterCommand(const SP<SHyprCtlCommand>& cmd);
+ std::string getReply(std::string);
- int m_iSocketFD = -1;
+ Hyprutils::OS::CFileDescriptor m_iSocketFD;
struct {
bool all = false;