X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/37954781d9756ece500551055562183a1e28e943..69caa5be0e7aa4b274a98640d7b5f3334ec4894d:/cycript.hpp diff --git a/cycript.hpp b/cycript.hpp index 2cf3d42..87d8d2c 100644 --- a/cycript.hpp +++ b/cycript.hpp @@ -1,4 +1,4 @@ -/* Cycript - Remote Execution Server and Disassembler +/* Cycript - Error.hppution Server and Disassembler * Copyright (C) 2009 Jay Freeman (saurik) */ @@ -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); };