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:
parent
2177594c96
commit
9c8dd836fc
12 changed files with 71 additions and 59 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue