mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-26 02:16:38 +00:00
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.
21 lines
553 B
C++
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;
|
|
};
|
|
|