2021-07-17 12:55:54 +03:00
|
|
|
#pragma once
|
|
|
|
|
2021-07-17 14:18:02 +03:00
|
|
|
#include <kernel/hashmap.h>
|
|
|
|
|
2021-07-17 12:55:54 +03:00
|
|
|
struct Module {
|
|
|
|
const char * name;
|
|
|
|
int (*init)(int argc, char * argv[]);
|
|
|
|
int (*fini)(void);
|
|
|
|
};
|
2021-07-17 14:18:02 +03:00
|
|
|
|
|
|
|
struct LoadedModule {
|
|
|
|
struct Module * metadata;
|
|
|
|
uintptr_t baseAddress;
|
2021-07-19 04:28:26 +03:00
|
|
|
size_t fileSize;
|
|
|
|
size_t loadedSize;
|
2021-07-17 14:18:02 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
hashmap_t * modules_get_list(void);
|