Kernel: More header dependency reduction work
This commit is contained in:
parent
16818322c5
commit
635ae70b8f
Notes:
sideshowbarker
2024-07-19 09:17:18 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/635ae70b8f3
6 changed files with 7 additions and 10 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include <AK/HashTable.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <Kernel/FileSystem/Custody.h>
|
||||
#include <Kernel/FileSystem/Inode.h>
|
||||
#include <Kernel/Lock.h>
|
||||
|
|
|
@ -26,17 +26,14 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Badge.h>
|
||||
#include <AK/InlineLinkedList.h>
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/RefPtr.h>
|
||||
#include <AK/String.h>
|
||||
#include <Kernel/Forward.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
class Inode;
|
||||
class VFS;
|
||||
|
||||
// FIXME: Custody needs some locking.
|
||||
|
||||
class Custody : public RefCounted<Custody>
|
||||
|
|
|
@ -61,6 +61,7 @@ class TCPSocket;
|
|||
class TTY;
|
||||
class Thread;
|
||||
class UDPSocket;
|
||||
class VFS;
|
||||
class VMObject;
|
||||
class WaitQueue;
|
||||
|
||||
|
|
|
@ -34,8 +34,10 @@ namespace Kernel {
|
|||
|
||||
class FileDescription;
|
||||
|
||||
class LocalSocket final : public Socket, public InlineLinkedListNode<LocalSocket> {
|
||||
class LocalSocket final : public Socket
|
||||
, public InlineLinkedListNode<LocalSocket> {
|
||||
friend class InlineLinkedListNode<LocalSocket>;
|
||||
|
||||
public:
|
||||
static KResultOr<NonnullRefPtr<Socket>> create(int type);
|
||||
virtual ~LocalSocket() override;
|
||||
|
|
|
@ -30,9 +30,6 @@
|
|||
#include <AK/InlineLinkedList.h>
|
||||
#include <AK/NonnullOwnPtrVector.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Types.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <AK/Weakable.h>
|
||||
#include <Kernel/FileSystem/InodeMetadata.h>
|
||||
#include <Kernel/Forward.h>
|
||||
|
|
|
@ -72,8 +72,7 @@ public:
|
|||
Vector<Range, 2> carve(const Range&);
|
||||
|
||||
private:
|
||||
VirtualAddress m_base;
|
||||
size_t m_size { 0 };
|
||||
VirtualAddress m_base; size_t m_size { 0 };
|
||||
};
|
||||
|
||||
class RangeAllocator {
|
||||
|
|
Loading…
Add table
Reference in a new issue