procmod_hook/lib.rs
1//! Inline function hooking for x86_64.
2//!
3//! Install detours on live functions, call originals through trampolines,
4//! and cleanly restore when done.
5
6#[cfg(target_arch = "x86_64")]
7mod alloc;
8#[cfg(target_arch = "x86_64")]
9mod error;
10#[cfg(target_arch = "x86_64")]
11mod hook;
12#[cfg(target_arch = "x86_64")]
13mod jump;
14#[cfg(target_arch = "x86_64")]
15mod protect;
16#[cfg(target_arch = "x86_64")]
17mod relocate;
18
19#[cfg(target_arch = "x86_64")]
20pub use error::{Error, Result};
21#[cfg(target_arch = "x86_64")]
22pub use hook::Hook;