1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27: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

@ -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;
};