2023-08-14 16:15:29 +00:00
|
|
|
#pragma once
|
|
|
|
#include "Window.h"
|
|
|
|
#include <os/LocalServer.h>
|
|
|
|
|
|
|
|
struct Client
|
|
|
|
{
|
|
|
|
os::LocalServer::Client conn;
|
|
|
|
Vector<Window*> windows;
|
2024-02-01 20:57:40 +00:00
|
|
|
const bool privileged { false };
|
2023-08-14 16:15:29 +00:00
|
|
|
bool rpc_in_progress { false };
|
|
|
|
u8 rpc_id { 0 };
|
2023-08-16 18:02:54 +00:00
|
|
|
|
2024-02-01 20:57:40 +00:00
|
|
|
Client(os::LocalServer::Client&& client, bool priv)
|
2023-08-16 18:02:54 +00:00
|
|
|
#ifdef CLIENT_IMPLEMENTATION
|
2024-02-01 20:57:40 +00:00
|
|
|
: conn(move(client)), windows(), privileged(priv) {}
|
2023-08-16 18:02:54 +00:00
|
|
|
#else
|
|
|
|
;
|
|
|
|
#endif
|
2023-08-14 16:15:29 +00:00
|
|
|
};
|