Luna/wind/Client.h

23 lines
503 B
C
Raw Normal View History

2023-08-14 16:15:29 +00:00
#pragma once
#include "IPC.h"
2023-08-14 16:15:29 +00:00
#include "Window.h"
#include <os/IPC.h>
2023-08-14 16:15:29 +00:00
struct Client
{
OwnedPtr<os::IPC::ClientConnection> conn;
2023-08-14 16:15:29 +00:00
Vector<Window*> windows;
const bool privileged { false };
bool should_be_disconnected { false };
Client(OwnedPtr<os::IPC::ClientConnection>&& client, bool priv)
#ifdef CLIENT_IMPLEMENTATION
: conn(move(client)), windows(), privileged(priv)
{
conn->set_message_handler(wind::handle_ipc_message, this);
}
#else
;
#endif
2023-08-14 16:15:29 +00:00
};