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:
parent
38f93ef13b
commit
fc86460134
22 changed files with 41 additions and 24 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue