apio
c7c7d7b751
Classic "keeping a pointer to an element inside a vector after the vector is updated" bug, ah yes.
19 lines
342 B
C
19 lines
342 B
C
#pragma once
|
|
#include "Window.h"
|
|
#include <os/LocalServer.h>
|
|
|
|
struct Client
|
|
{
|
|
os::LocalServer::Client conn;
|
|
Vector<Window*> windows;
|
|
bool rpc_in_progress { false };
|
|
u8 rpc_id { 0 };
|
|
|
|
Client(os::LocalServer::Client&& client)
|
|
#ifdef CLIENT_IMPLEMENTATION
|
|
: conn(move(client)), windows() {}
|
|
#else
|
|
;
|
|
#endif
|
|
};
|