summaryrefslogtreecommitdiff
path: root/IPC.h
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-09-29 00:55:29 +1300
committerBossCode45 <human.cyborg42@gmail.com>2023-11-12 15:03:19 +1300
commit5dacf6d6d24eab71994e02b6b3c4fc6f6e309958 (patch)
tree204b77d98627d390eb8d6c1a50b767605221d6ec /IPC.h
parent6b5c246a431dcaff119833724137f0716fa2a002 (diff)
downloadYATwm-5dacf6d6d24eab71994e02b6b3c4fc6f6e309958.tar.gz
YATwm-5dacf6d6d24eab71994e02b6b3c4fc6f6e309958.zip
feat: IPC works kinda
Still quite buggy, but first version
Diffstat (limited to 'IPC.h')
-rw-r--r--IPC.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/IPC.h b/IPC.h
new file mode 100644
index 0000000..9e497de
--- /dev/null
+++ b/IPC.h
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <sys/socket.h>
+#include <sys/un.h>
+
+#include "commands.h"
+#include "config.h"
+#include "util.h"
+
+class IPCModule
+{
+public:
+ IPCModule(CommandsModule& commandsModule, Config& cfg, Globals& globals);
+ void doListen();
+ void quitIPC();
+ int getFD();
+private:
+ CommandsModule& commandsModule;
+ Config& cfg;
+ Globals& globals;
+ int sockfd;
+ int len;
+ bool first = true;
+ sockaddr_un address;
+};