mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
WindowServer+AudioServer: Add some missing C_OBJECT macros.
This commit is contained in:
parent
60a9a232be
commit
e6eba24405
2 changed files with 4 additions and 5 deletions
|
@ -1,20 +1,18 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibCore/CoreIPCServer.h>
|
|
||||||
#include <LibAudio/ASAPI.h>
|
#include <LibAudio/ASAPI.h>
|
||||||
|
#include <LibCore/CoreIPCServer.h>
|
||||||
|
|
||||||
class ASMixer;
|
class ASMixer;
|
||||||
|
|
||||||
class ASClientConnection final : public IPC::Server::Connection<ASAPI_ServerMessage, ASAPI_ClientMessage>
|
class ASClientConnection final : public IPC::Server::Connection<ASAPI_ServerMessage, ASAPI_ClientMessage> {
|
||||||
{
|
C_OBJECT(ASClientConnection)
|
||||||
public:
|
public:
|
||||||
explicit ASClientConnection(CLocalSocket&, int client_id, ASMixer& mixer);
|
explicit ASClientConnection(CLocalSocket&, int client_id, ASMixer& mixer);
|
||||||
~ASClientConnection() override;
|
~ASClientConnection() override;
|
||||||
void send_greeting() override;
|
void send_greeting() override;
|
||||||
bool handle_message(const ASAPI_ClientMessage&, const ByteBuffer&& = {}) override;
|
bool handle_message(const ASAPI_ClientMessage&, const ByteBuffer&& = {}) override;
|
||||||
const char* class_name() const override { return "ASClientConnection"; }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ASMixer& m_mixer;
|
ASMixer& m_mixer;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ class WSMenu;
|
||||||
class WSMenuBar;
|
class WSMenuBar;
|
||||||
|
|
||||||
class WSClientConnection final : public IPC::Server::Connection<WSAPI_ServerMessage, WSAPI_ClientMessage> {
|
class WSClientConnection final : public IPC::Server::Connection<WSAPI_ServerMessage, WSAPI_ClientMessage> {
|
||||||
|
C_OBJECT(WSClientConnection)
|
||||||
public:
|
public:
|
||||||
explicit WSClientConnection(CLocalSocket&, int client_id);
|
explicit WSClientConnection(CLocalSocket&, int client_id);
|
||||||
~WSClientConnection() override;
|
~WSClientConnection() override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue