aboutsummaryrefslogtreecommitdiff
path: root/subhook.h
diff options
context:
space:
mode:
authorZeex <zeex@rocketmail.com>2013-12-05 01:49:33 +0700
committerZeex <zeex@rocketmail.com>2013-12-05 01:49:33 +0700
commit0ee3ab3c0717ebf2c35c5fb3d5884ba0c4e74d23 (patch)
tree9cb9c036945a2b9a2c318ffb8ca9e30a05c512fd /subhook.h
parent0c008a8d2b32621e3042d52ef31a7430a5be139e (diff)
downloadsubhook-0ee3ab3c0717ebf2c35c5fb3d5884ba0c4e74d23.zip
subhook-0ee3ab3c0717ebf2c35c5fb3d5884ba0c4e74d23.tar.gz
subhook-0ee3ab3c0717ebf2c35c5fb3d5884ba0c4e74d23.tar.bz2
Remove subhook_unprotect() from public API
Diffstat (limited to 'subhook.h')
-rw-r--r--subhook.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/subhook.h b/subhook.h
index d37205f..da2bbc6 100644
--- a/subhook.h
+++ b/subhook.h
@@ -47,7 +47,7 @@
#if !defined SUHOOK_EXTERN
#if defined __cplusplus
#define SUBHOOK_EXTERN extern "C"
- #else
+ #else
#define SUBHOOK_EXTERN extern
#endif
#endif
@@ -65,7 +65,7 @@
#define SUBHOOK_API __attribute__((cdecl))
#endif
#else
- #define SUBHOOK_API
+ #define SUBHOOK_API
#endif
#endif
@@ -101,9 +101,6 @@ SUBHOOK_EXPORT int SUBHOOK_API subhook_remove(struct subhook *hook);
/* Checks whether a hook has been installed. */
SUBHOOK_EXPORT int SUBHOOK_API subhook_is_installed(struct subhook *hook);
-/* Sets read+write+execute permissions for memory region. */
-SUBHOOK_EXPORT void *SUBHOOK_API subhook_unprotect(void *address, size_t size);
-
/* Reads hook destination address from code.
*
* This is useful when you don't know the address or want to check