aboutsummaryrefslogtreecommitdiff
path: root/src/hook/module.h
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2023-01-22 02:56:48 +0100
committerJan200101 <sentrycraft123@gmail.com>2023-08-05 22:15:10 +0200
commitb97db529be365851633a6cc1c9285d930209049d (patch)
tree7a73d6adf71797b9308692a03253d15d3703b5a8 /src/hook/module.h
parent045e16665a55e2b7b6dc2e953c91f2125f61e083 (diff)
downloadOFQT-b97db529be365851633a6cc1c9285d930209049d.tar.gz
OFQT-b97db529be365851633a6cc1c9285d930209049d.zip
hook stash: a1af9ba65d57be898e079a98229845f42069c1e6hook
Diffstat (limited to 'src/hook/module.h')
-rw-r--r--src/hook/module.h20
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