mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 18:07:35 +00:00
Kernel: Fix various forward declarations
I decided to modify MappedROM.h because all other entried in Forward.h are also classes, and this is visually more pleasing. Other than that, it just doesn't make any difference which way we resolve the conflicts.
This commit is contained in:
parent
d16f510805
commit
0d79e57c4d
4 changed files with 5 additions and 4 deletions
|
@ -43,7 +43,7 @@ namespace Kernel {
|
||||||
class Custody;
|
class Custody;
|
||||||
class Device;
|
class Device;
|
||||||
class FileDescription;
|
class FileDescription;
|
||||||
class UnveiledPath;
|
struct UnveiledPath;
|
||||||
|
|
||||||
struct UidAndGid {
|
struct UidAndGid {
|
||||||
uid_t uid;
|
uid_t uid;
|
||||||
|
|
|
@ -530,7 +530,7 @@ private:
|
||||||
IntrusiveListNode m_wait_queue_node;
|
IntrusiveListNode m_wait_queue_node;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class SchedulerData;
|
friend struct SchedulerData;
|
||||||
friend class WaitQueue;
|
friend class WaitQueue;
|
||||||
bool unlock_process_if_locked();
|
bool unlock_process_if_locked();
|
||||||
void relock_process(bool did_unlock);
|
void relock_process(bool did_unlock);
|
||||||
|
|
|
@ -31,7 +31,8 @@
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
struct MappedROM {
|
class MappedROM {
|
||||||
|
public:
|
||||||
const u8* base() const { return region->vaddr().offset(offset).as_ptr(); }
|
const u8* base() const { return region->vaddr().offset(offset).as_ptr(); }
|
||||||
const u8* end() const { return base() + size; }
|
const u8* end() const { return base() + size; }
|
||||||
OwnPtr<Region> region;
|
OwnPtr<Region> region;
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include "AK/ByteBuffer.h"
|
#include "AK/ByteBuffer.h"
|
||||||
#include "AK/Types.h"
|
#include "AK/Types.h"
|
||||||
|
|
||||||
class PtraceRegisters;
|
struct PtraceRegisters;
|
||||||
|
|
||||||
namespace Debug::Dwarf::Expression {
|
namespace Debug::Dwarf::Expression {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue