diff options
Diffstat (limited to 'src/hook/memory.h')
-rw-r--r-- | src/hook/memory.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/hook/memory.h b/src/hook/memory.h new file mode 100644 index 0000000..cf1f74c --- /dev/null +++ b/src/hook/memory.h @@ -0,0 +1,13 @@ +#ifndef MEMORY_H +#define MEMORY_H + +#include <sys/types.h> + +void read_memory(pid_t pid, void* src, void* dst, size_t size); +void write_memory(pid_t pid, void* dst, void* src, size_t size); + +void* allocate_memory(pid_t pid, size_t size, int protection); +void deallocate_memory(pid_t pid, void* src, size_t size); +void* protect_memory(pid_t pid, void* src, size_t size, int protection); + +#endif
\ No newline at end of file |