Add basic libhooker API support
DISCLAIMER: This is not in any way finished, I don't even know perl. It is my hopes this can be a good starting point that other, smarter people can use to build from This pull request adds support for using the libhooker APIs directly if available, and falling back to MobileSubstrate
Does this provide any real benefit for end users? No, not really, the shims for MobileSubstrate functions on libhooker still work fine; the only case the shim could really be less efficient than directly supporting the libhooker API is when hooking C functions.
Quite simply, I made this pull request because Coolstar said "why don't you make a PR for logos then if it's that easy". It was that easy.
What needs to be done before merging:
- Actually batch hooking for C functions as to not dlsym and call LHHookFunctions for every one (this probably would require a lot of work, but this would allow Logos hookf to utilize the benefits of libhooker's API)
- Perhaps clean up the code
Now that libhooker support has been merged for some time, do we want to close this?