diff options
Diffstat (limited to 'subhook.c')
-rw-r--r-- | subhook.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -26,6 +26,8 @@ #include "subhook.h" #include "subhook_private.h" +subhook_disasm_handler_t subhook_disasm_handler = NULL; + SUBHOOK_EXPORT void *SUBHOOK_API subhook_get_src(subhook_t hook) { if (hook == NULL) { return NULL; @@ -54,6 +56,11 @@ SUBHOOK_EXPORT int SUBHOOK_API subhook_is_installed(subhook_t hook) { return hook->installed; } +SUBHOOK_EXPORT void SUBHOOK_API subhook_set_disasm_handler( + subhook_disasm_handler_t handler) { + subhook_disasm_handler = handler; +} + #ifndef SUBHOOK_SEPARATE_SOURCE_FILES #if defined SUBHOOK_WINDOWS |