toaruos/base/usr/include/kernel/module.h

19 lines
293 B
C
Raw Normal View History

#pragma once
2021-07-17 14:18:02 +03:00
#include <kernel/hashmap.h>
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;
size_t fileSize;
size_t loadedSize;
2021-07-17 14:18:02 +03:00
};
hashmap_t * modules_get_list(void);