diff options
Diffstat (limited to 'src/hook/module.h')
-rw-r--r-- | src/hook/module.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/hook/module.h b/src/hook/module.h new file mode 100644 index 0000000..7fb83e1 --- /dev/null +++ b/src/hook/module.h @@ -0,0 +1,20 @@ +#ifndef MODULE_H +#define MODULE_H + +#include <sys/types.h> +#include <stdint.h> + +struct module_s +{ + char* name; + char* path; + void* base; + void* end; + uintptr_t size; + void* handle; //this will not be used for now, only internally with dlopen +}; + +struct module_s getModule(pid_t pid, const char* module_name); +void freeModule(struct module_s* mod); + +#endif
\ No newline at end of file |