diff options
author | Zeex <zeex@rocketmail.com> | 2013-12-05 01:49:33 +0700 |
---|---|---|
committer | Zeex <zeex@rocketmail.com> | 2013-12-05 01:49:33 +0700 |
commit | 0ee3ab3c0717ebf2c35c5fb3d5884ba0c4e74d23 (patch) | |
tree | 9cb9c036945a2b9a2c318ffb8ca9e30a05c512fd /subhook.h | |
parent | 0c008a8d2b32621e3042d52ef31a7430a5be139e (diff) | |
download | subhook-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.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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 |