X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/d15b59f5d4f43d12719c5ce37518246058b405c6..93760f3fd5327f82ab4f6651d65002dfc040e505:/cycript.hpp diff --git a/cycript.hpp b/cycript.hpp index 316a37d..87d8d2c 100644 --- a/cycript.hpp +++ b/cycript.hpp @@ -119,9 +119,12 @@ JSValueRef CYCallAsFunction(JSContextRef context, JSObjectRef function, JSObject const char *CYPoolCCYON(apr_pool_t *pool, JSContextRef context, JSObjectRef object); struct CYHooks { - void *(*ExecuteStart)(); - void (*ExecuteEnd)(void *); + void *(*ExecuteStart)(JSContextRef); + void (*ExecuteEnd)(JSContextRef, void *); + JSValueRef (*RuntimeProperty)(JSContextRef, CYUTF8String); + void (*CallFunction)(JSContextRef, ffi_cif *, void (*)(), uint8_t *, void **); + bool (*PoolFFI)(apr_pool_t *, JSContextRef, sig::Type *, ffi_type *, void *, JSValueRef); JSValueRef (*FromFFI)(JSContextRef, sig::Type *, ffi_type *, void *, bool, JSObjectRef); };