1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:57:35 +00:00

AK: Move the userspace SharedBuffer from LibC to AK

This always felt out-of-place in LibC.
This commit is contained in:
Andreas Kling 2020-01-01 18:53:34 +01:00
parent 38f93ef13b
commit fc86460134
22 changed files with 41 additions and 24 deletions

View file

@ -1,9 +1,9 @@
#include "ASClientConnection.h"
#include "ASMixer.h"
#include "AudioClientEndpoint.h"
#include <AK/SharedBuffer.h>
#include <LibAudio/ABuffer.h>
#include <LibCore/CEventLoop.h>
#include <SharedBuffer.h>
#include <errno.h>
#include <stdio.h>
#include <sys/socket.h>

View file

@ -2,7 +2,7 @@
#include <ProtocolServer/PSClientConnection.h>
#include <ProtocolServer/Protocol.h>
#include <ProtocolServer/ProtocolClientEndpoint.h>
#include <LibC/SharedBuffer.h>
#include <AK/SharedBuffer.h>
static HashMap<int, RefPtr<PSClientConnection>> s_connections;

View file

@ -4,8 +4,11 @@
#include <LibIPC/IClientConnection.h>
#include <ProtocolServer/ProtocolServerEndpoint.h>
class Download;
namespace AK {
class SharedBuffer;
}
class Download;
class PSClientConnection final : public IClientConnection<ProtocolServerEndpoint>
, public ProtocolServerEndpoint {
@ -26,5 +29,5 @@ private:
virtual OwnPtr<ProtocolServer::StopDownloadResponse> handle(const ProtocolServer::StopDownload&) override;
virtual OwnPtr<ProtocolServer::DisownSharedBufferResponse> handle(const ProtocolServer::DisownSharedBuffer&) override;
HashMap<i32, RefPtr<SharedBuffer>> m_shared_buffers;
HashMap<i32, RefPtr<AK::SharedBuffer>> m_shared_buffers;
};

View file

@ -1,7 +1,6 @@
#include <LibC/SharedBuffer.h>
#include <AK/SharedBuffer.h>
#include <LibDraw/GraphicsBitmap.h>
#include <LibDraw/SystemTheme.h>
#include <SharedBuffer.h>
#include <WindowServer/WSClientConnection.h>
#include <WindowServer/WSClipboard.h>
#include <WindowServer/WSCompositor.h>

View file

@ -1,8 +1,8 @@
#pragma once
#include <AK/Function.h>
#include <AK/SharedBuffer.h>
#include <AK/String.h>
#include <SharedBuffer.h>
class WSClipboard {
public: