mod gadget;
mod stack;
mod spoofed;
mod trampoline;
pub use gadget::{
Gadget, GadgetFinder, GadgetSearch, GadgetType, GadgetPattern,
JmpGadget, RetGadget, Register,
};
#[cfg(feature = "std")]
pub use gadget::GadgetCache;
pub use stack::{
FakeFrame, FrameTemplate, StackSpoofer, SyntheticStack, COMMON_FRAME_TEMPLATES,
};
pub use spoofed::{SpoofedSyscall, SpoofConfig, SpoofMode};
pub use trampoline::{SpoofTrampoline, TrampolineAllocator};
use crate::error::Result;
#[cfg(feature = "std")]
pub fn init_gadget_cache() -> Result<()> {
gadget::init_global_cache()
}
#[cfg(feature = "std")]
pub fn get_gadget_cache() -> Result<&'static GadgetCache> {
gadget::get_global_cache()
}