mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
478f543899
Instead, allocate before constructing the object and pass NonnullOwnPtr of KString to the object if needed. Some classes can determine their names as they have a known attribute to look for or have a static name.
25 lines
441 B
C++
25 lines
441 B
C++
/*
|
|
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <Kernel/FileSystem/SysFS.h>
|
|
|
|
namespace Kernel {
|
|
|
|
class FirmwareSysFSDirectory : public SysFSDirectory {
|
|
public:
|
|
virtual StringView name() const override { return "firmware"sv; }
|
|
static void initialize();
|
|
|
|
void create_components();
|
|
|
|
private:
|
|
FirmwareSysFSDirectory();
|
|
};
|
|
|
|
}
|