1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 13:57:36 +00:00

LibIPC: Rename base classes to IClientConnection and IServerConnection

This matches what we're already calling the server-side subclasses
better, though we'll probably want to find some better names for the
client-side classes eventually.
This commit is contained in:
Andreas Kling 2019-12-02 09:58:25 +01:00
parent 5d4ee0f58a
commit 4a37bec27c
16 changed files with 254 additions and 275 deletions

View file

@ -23,7 +23,7 @@ void ASClientConnection::for_each(Function<void(ASClientConnection&)> callback)
}
ASClientConnection::ASClientConnection(CLocalSocket& client_socket, int client_id, ASMixer& mixer)
: ConnectionNG(*this, client_socket, client_id)
: IClientConnection(*this, client_socket, client_id)
, m_mixer(mixer)
{
s_connections.set(client_id, *this);

View file

@ -7,7 +7,7 @@ class ABuffer;
class ASBufferQueue;
class ASMixer;
class ASClientConnection final : public IPC::Server::ConnectionNG<AudioServerEndpoint>
class ASClientConnection final : public IClientConnection<AudioServerEndpoint>
, public AudioServerEndpoint {
C_OBJECT(ASClientConnection)
public:

View file

@ -17,6 +17,6 @@ ASEventLoop::ASEventLoop()
}
static int s_next_client_id = 0;
int client_id = ++s_next_client_id;
IPC::Server::new_connection_ng_for_client<ASClientConnection>(*client_socket, client_id, m_mixer);
new_client_connection<ASClientConnection>(*client_socket, client_id, m_mixer);
};
}