gather information about module.. again
This commit is contained in:
31
src/moduler/moduler.h
Normal file
31
src/moduler/moduler.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef MODULER_H_
|
||||
#define MODULER_H_
|
||||
|
||||
#include "array/array.h"
|
||||
#include "memory.h"
|
||||
#include "symbols.h"
|
||||
#include "types.h"
|
||||
|
||||
struct HiloadContext;
|
||||
|
||||
sc_array_def(uptr, uptr);
|
||||
|
||||
enum HiModuleState {
|
||||
HI_MODULE_STATE_CLEAN = 0,
|
||||
HI_MODULE_STATE_DIRTY,
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
struct sc_array_str names; // Array of library names
|
||||
struct sc_array_ptr handles; // Array of library handles
|
||||
struct sc_array_uptr addresses; // Array of library base addresses
|
||||
struct sc_array_syms symbols; // Symbol info for modules
|
||||
u8 state[256]; // Flag for when module needs to be changed
|
||||
size_t count; // Number of modules
|
||||
} ModuleInfos;
|
||||
|
||||
HiloadResult moduler_reload(ModuleInfos *modinfos,
|
||||
const struct sc_array_memreg *const memregs,
|
||||
int modindex);
|
||||
|
||||
#endif // MODULER_H_
|
||||
Reference in New Issue
Block a user