mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
LibCore: Add a forward declaration header
This patch adds <LibCore/Forward.h> and uses it in various places to shrink the header dependency graph.
This commit is contained in:
parent
3bbf4610d2
commit
8f7333f080
35 changed files with 143 additions and 38 deletions
|
@ -26,8 +26,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <AK/Forward.h>
|
||||
#include <LibCore/Object.h>
|
||||
|
||||
namespace Core {
|
||||
|
@ -64,7 +63,7 @@ public:
|
|||
ByteBuffer read_all();
|
||||
|
||||
bool write(const u8*, int size);
|
||||
bool write(const StringView& v) { return write((const u8*)v.characters_without_null_termination(), v.length()); }
|
||||
bool write(const StringView&);
|
||||
|
||||
// FIXME: I would like this to be const but currently it needs to call populate_read_buffer().
|
||||
bool can_read_line();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue