19 lines
293 B
C
19 lines
293 B
C
#pragma once
|
|
|
|
#include <kernel/hashmap.h>
|
|
|
|
struct Module {
|
|
const char * name;
|
|
int (*init)(int argc, char * argv[]);
|
|
int (*fini)(void);
|
|
};
|
|
|
|
struct LoadedModule {
|
|
struct Module * metadata;
|
|
uintptr_t baseAddress;
|
|
size_t fileSize;
|
|
size_t loadedSize;
|
|
};
|
|
|
|
hashmap_t * modules_get_list(void);
|