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:
parent
38f93ef13b
commit
fc86460134
22 changed files with 41 additions and 24 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Function.h>
|
||||
#include <AK/SharedBuffer.h>
|
||||
#include <AK/String.h>
|
||||
#include <SharedBuffer.h>
|
||||
|
||||
class WSClipboard {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue