5 #include <Foundation/Foundation.h>
 
   8 #include <JavaScriptCore/JavaScript.h>
 
   9 #include <JavaScriptCore/JSStringRefCF.h>
 
  11 #include <apr-1/apr_pools.h>
 
  13 JSGlobalContextRef CYGetJSContext();
 
  14 const char *CYPoolJSONString(apr_pool_t *pool, JSContextRef context, JSValueRef value, JSValueRef *exception);
 
  15 void CYSetArgs(int argc, const char *argv[]);
 
  16 void CYSetProperty(JSContextRef context, JSObjectRef object, JSStringRef name, JSValueRef value);
 
  17 JSObjectRef CYGetGlobalObject(JSContextRef context);
 
  18 JSStringRef CYCopyJSString(const char *value);