forked from quickshell/quickshell
io/ipchandler: add IpcHandler and qs msg
Also reworks the whole ipc system to use serialized variants.
This commit is contained in:
parent
3690812919
commit
5e2fb14551
14 changed files with 1428 additions and 27 deletions
20
src/core/ipccommand.hpp
Normal file
20
src/core/ipccommand.hpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include <variant>
|
||||
|
||||
#include "../io/ipccomm.hpp"
|
||||
#include "ipc.hpp"
|
||||
|
||||
namespace qs::ipc {
|
||||
|
||||
struct IpcKillCommand: std::monostate {
|
||||
static void exec(IpcServerConnection* /*unused*/);
|
||||
};
|
||||
|
||||
using IpcCommand = std::variant<
|
||||
std::monostate,
|
||||
IpcKillCommand,
|
||||
qs::io::ipc::comm::QueryMetadataCommand,
|
||||
qs::io::ipc::comm::StringCallCommand>;
|
||||
|
||||
} // namespace qs::ipc
|
Loading…
Add table
Add a link
Reference in a new issue