From 51152a795fd121fb1598ced4797af6635d11046e Mon Sep 17 00:00:00 2001 From: Zeex Date: Mon, 13 Oct 2014 22:34:26 +0700 Subject: [PATCH] Add SetSrc and SetDst methods --- subhook.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subhook.h b/subhook.h index 757218c..e415b2f 100644 --- a/subhook.h +++ b/subhook.h @@ -137,6 +137,9 @@ public: subhook_free(hook_); } + void SetSrc(void *src) { subhook_set_src(hook_, src); } + void SetDst(void *dst) { subhook_set_dst(hook_, dst); } + void *GetSrc() { return subhook_get_src(hook_); } void *GetDst() { return subhook_get_dst(hook_); }