1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:17:46 +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:
Robin Burchell 2019-07-17 19:46:06 +02:00 committed by Andreas Kling
parent 2177594c96
commit 9c8dd836fc
12 changed files with 71 additions and 59 deletions

View file

@ -14,7 +14,7 @@
#include <stdio.h>
ASClientConnection::ASClientConnection(int fd, int client_id, ASMixer& mixer)
: CIPCServerSideClient(fd, client_id)
: Connection(fd, client_id)
, m_mixer(mixer)
{
}

View file

@ -1,11 +1,11 @@
#pragma once
#include <LibCore/CIPCServerSideClient.h>
#include <LibCore/CoreIPCServer.h>
#include <LibAudio/ASAPI.h>
class ASMixer;
class ASClientConnection final : public CIPCServerSideClient<ASAPI_ServerMessage, ASAPI_ClientMessage>
class ASClientConnection final : public IPC::Server::Connection<ASAPI_ServerMessage, ASAPI_ClientMessage>
{
public:
explicit ASClientConnection(int fd, int client_id, ASMixer& mixer);

View file

@ -31,8 +31,7 @@ void ASEventLoop::drain_server()
} else {
dbgprintf("AudioServer: accept()ed client %d\n", client_fd);
static int s_next_client_id = 0;
CIPCServerSideClientCreator<ASClientConnection>(client_fd, s_next_client_id++, m_mixer);
//new ASClientConnection(client_fd, s_next_client_id++, m_mixer);
IPC::Server::new_connection_for_client<ASClientConnection>(client_fd, s_next_client_id++, m_mixer);
}
}