mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-11-01 03:25:05 +00:00
core/ipc: add ipc server/client
Currently can only kill a remote instance.
This commit is contained in:
14 files changed
+710
-120
No files matched your search
@@ -0,0 +1,31 @@
|
||||
#include "instanceinfo.hpp"
|
||||
|
||||
#include <qdatastream.h>
|
||||
|
||||
QDataStream& operator<<(QDataStream& stream, const InstanceInfo& info) {
|
||||
stream << info.instanceId << info.configPath << info.shellId << info.launchTime;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream& operator>>(QDataStream& stream, InstanceInfo& info) {
|
||||
stream >> info.instanceId >> info.configPath >> info.shellId >> info.launchTime;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream& operator<<(QDataStream& stream, const RelaunchInfo& info) {
|
||||
stream << info.instance << info.noColor << info.sparseLogsOnly;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream& operator>>(QDataStream& stream, RelaunchInfo& info) {
|
||||
stream >> info.instance >> info.noColor >> info.sparseLogsOnly;
|
||||
return stream;
|
||||
}
|
||||
|
||||
InstanceInfo InstanceInfo::CURRENT = {}; // NOLINT
|
||||
|
||||
namespace qs::crash {
|
||||
|
||||
CrashInfo CrashInfo::INSTANCE = {}; // NOLINT
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user