2020-01-18 09:38:21 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
2019-11-28 20:59:11 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/String.h>
|
|
|
|
#include <AK/Vector.h>
|
|
|
|
#include <Kernel/KBuffer.h>
|
|
|
|
|
2020-02-16 01:27:42 +01:00
|
|
|
namespace Kernel {
|
|
|
|
|
2019-11-28 21:07:22 +01:00
|
|
|
typedef void* (*ModuleInitPtr)();
|
|
|
|
typedef void* (*ModuleFiniPtr)();
|
|
|
|
|
2019-11-28 20:59:11 +01:00
|
|
|
struct Module {
|
|
|
|
String name;
|
|
|
|
Vector<KBuffer> sections;
|
|
|
|
|
2019-11-28 21:07:22 +01:00
|
|
|
ModuleInitPtr module_init { nullptr };
|
|
|
|
ModuleFiniPtr module_fini { nullptr };
|
|
|
|
};
|
2020-02-16 01:27:42 +01:00
|
|
|
|
|
|
|
}
|