X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/b3378a02d0a811be38e530933fb9a57a3012a823..afdeb40444392e6b538d1bb46454e017724e6775:/JavaScript.hpp diff --git a/JavaScript.hpp b/JavaScript.hpp index ebb5281..ca2b0c1 100644 --- a/JavaScript.hpp +++ b/JavaScript.hpp @@ -1,5 +1,5 @@ /* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2010 Jay Freeman (saurik) + * Copyright (C) 2009-2012 Jay Freeman (saurik) */ /* GNU Lesser General Public License, Version 3 {{{ */ @@ -109,7 +109,6 @@ struct CYHooks { void *(*ExecuteStart)(JSContextRef); void (*ExecuteEnd)(JSContextRef, void *); - JSValueRef (*RuntimeProperty)(JSContextRef, CYUTF8String); void (*CallFunction)(JSContextRef, ffi_cif *, void (*)(), uint8_t *, void **); void (*Initialize)(); @@ -125,6 +124,10 @@ JSObjectRef CYMakePointer(JSContextRef context, void *pointer, size_t length, si void CYFinalize(JSObjectRef object); +size_t CYArrayLength(JSContextRef context, JSObjectRef array); +JSValueRef CYArrayGet(JSContextRef context, JSObjectRef array, size_t index); +void CYArrayPush(JSContextRef context, JSObjectRef array, JSValueRef value); + const char *CYPoolCString(apr_pool_t *pool, JSContextRef context, JSValueRef value); JSStringRef CYCopyJSString(const char *value);