X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/b4aa79afea0c26718af8880c3ee8fea63eb21563..930aa21ba5c097f9ee6ebfc418c321de0729e076:/cycript.hpp?ds=sidebyside diff --git a/cycript.hpp b/cycript.hpp index 132c299..0da87f9 100644 --- a/cycript.hpp +++ b/cycript.hpp @@ -48,12 +48,21 @@ #include #include +#include + +#include JSGlobalContextRef CYGetJSContext(); -const char *CYPoolCYONString(apr_pool_t *pool, JSContextRef context, JSValueRef value, JSValueRef *exception); -void CYSetArgs(int argc, const char *argv[]); -void CYSetProperty(JSContextRef context, JSObjectRef object, JSStringRef name, JSValueRef value); JSObjectRef CYGetGlobalObject(JSContextRef context); + +void CYSetArgs(int argc, const char *argv[]); + +const char *CYPoolCYONString(apr_pool_t *pool, JSContextRef context, JSValueRef value, JSValueRef *exception); JSStringRef CYCopyJSString(const char *value); +void CYSetProperty(JSContextRef context, JSObjectRef object, JSStringRef name, JSValueRef value); + +JSValueRef CYCallFunction(apr_pool_t *pool, JSContextRef context, size_t setups, void *setup[], size_t count, const JSValueRef arguments[], bool initialize, JSValueRef *exception, sig::Signature *signature, ffi_cif *cif, void (*function)()); +JSValueRef CYSendMessage(apr_pool_t *pool, JSContextRef context, id self, SEL _cmd, size_t count, const JSValueRef arguments[], bool initialize, JSValueRef *exception); + #endif/*CYCRIPT_HPP*/