]> git.saurik.com Git - cycript.git/blobdiff - cycript.hpp
Redid the trampoline generator in what will hopefully be a more portable fashion.
[cycript.git] / cycript.hpp
index 20c6b8e8baf5fc826455ce7409bc2d6d46784681..ec8cc821ff2ccdadd46affcb51c5c27db62ca88f 100644 (file)
@@ -51,6 +51,8 @@
 
 #include <sqlite3.h>
 
+void CYInitialize();
+
 bool CYRecvAll_(int socket, uint8_t *data, size_t size);
 bool CYSendAll_(int socket, const uint8_t *data, size_t size);
 
@@ -126,6 +128,7 @@ struct CYHooks {
 
     JSValueRef (*RuntimeProperty)(JSContextRef, CYUTF8String);
     void (*CallFunction)(JSContextRef, ffi_cif *, void (*)(), uint8_t *, void **);
+    void (*SetupContext)(JSContextRef);
 
     bool (*PoolFFI)(apr_pool_t *, JSContextRef, sig::Type *, ffi_type *, void *, JSValueRef);
     JSValueRef (*FromFFI)(JSContextRef, sig::Type *, ffi_type *, void *, bool, JSObjectRef);