mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +00:00
Rename new IPC headers & classes
Sticking these in a namespace allows us to use a more generic ("Connection") term without clashing, which is way easier to understand than to try to come up with unique names for both.
This commit is contained in:
parent
2177594c96
commit
9c8dd836fc
12 changed files with 71 additions and 59 deletions
|
@ -40,7 +40,7 @@ WSClientConnection* WSClientConnection::from_client_id(int client_id)
|
|||
}
|
||||
|
||||
WSClientConnection::WSClientConnection(int fd, int client_id)
|
||||
: CIPCServerSideClient(fd, client_id)
|
||||
: Connection(fd, client_id)
|
||||
{
|
||||
if (!s_connections)
|
||||
s_connections = new HashMap<int, WSClientConnection*>;
|
||||
|
@ -88,7 +88,7 @@ void WSClientConnection::event(CEvent& event)
|
|||
return;
|
||||
}
|
||||
|
||||
CIPCServerSideClient::event(event);
|
||||
Connection::event(event);
|
||||
}
|
||||
|
||||
static Vector<Rect, 32> get_rects(const WSAPI_ClientMessage& message, const ByteBuffer& extra_data)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <AK/OwnPtr.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <LibCore/CObject.h>
|
||||
#include <LibCore/CIPCServerSideClient.h>
|
||||
#include <LibCore/CoreIPCServer.h>
|
||||
#include <SharedGraphics/GraphicsBitmap.h>
|
||||
#include <WindowServer/WSEvent.h>
|
||||
|
||||
|
@ -13,7 +13,7 @@ class WSWindow;
|
|||
class WSMenu;
|
||||
class WSMenuBar;
|
||||
|
||||
class WSClientConnection final : public CIPCServerSideClient<WSAPI_ServerMessage, WSAPI_ClientMessage> {
|
||||
class WSClientConnection final : public IPC::Server::Connection<WSAPI_ServerMessage, WSAPI_ClientMessage> {
|
||||
public:
|
||||
explicit WSClientConnection(int fd, int client_id);
|
||||
~WSClientConnection() override;
|
||||
|
|
|
@ -62,8 +62,7 @@ void WSEventLoop::drain_server()
|
|||
} else {
|
||||
static int s_next_client_id = 0;
|
||||
int client_id = ++s_next_client_id;
|
||||
|
||||
CIPCServerSideClientCreator<WSClientConnection>(client_fd, client_id);
|
||||
IPC::Server::new_connection_for_client<WSClientConnection>(client_fd, client_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue