Files
ladybird/Servers/AudioServer/ASClientConnection.h
Robin Burchell 9c8dd836fc 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.
2019-07-17 20:16:44 +02:00

21 lines
553 B
C++

#pragma once
#include <LibCore/CoreIPCServer.h>
#include <LibAudio/ASAPI.h>
class ASMixer;
class ASClientConnection final : public IPC::Server::Connection<ASAPI_ServerMessage, ASAPI_ClientMessage>
{
public:
explicit ASClientConnection(int fd, int client_id, ASMixer& mixer);
~ASClientConnection() override;
void send_greeting() override;
bool handle_message(const ASAPI_ClientMessage&, const ByteBuffer&& = {}) override;
const char* class_name() const override { return "ASClientConnection"; }
private:
ASMixer& m_mixer;
};