Module trampoline

Source
Expand description

This module allows you to call another function before an existing function or to replace it with another function.

Functions§

add_hook
Sets up a trampoline to replace the original function with a new one.
disable_hook
Description
enable_hook
Enables a previously added hook, replacing the original function with the new one.
get_trampoline
Key: ’static pointer to original functionvalue: trampoline pair fn ptr.
remove_hook
Removes a previously added hook by disabling the trampoline and restoring the original function.