]> git.saurik.com Git - cycript.git/blobdiff - cycript.hpp
Drastic modifications to exception handling that required temporarily bringing back...
[cycript.git] / cycript.hpp
index c1e6751b5fa7de0d4a9f17732dfaec9d0d96258d..b73d5c640abb303d9f8277bd9a111dd4e2658fe2 100644 (file)
@@ -1,22 +1,17 @@
-#ifndef CYCRIPT_H
-#define CYCRIPT_H
+#ifndef CYCRIPT_HPP
+#define CYCRIPT_HPP
 
 #ifdef __OBJC__
 #include <Foundation/Foundation.h>
 #endif
 
-#include <JavaScriptCore/JSBase.h>
-#include <JavaScriptCore/JSValueRef.h>
-#include <JavaScriptCore/JSObjectRef.h>
-#include <JavaScriptCore/JSContextRef.h>
-#include <JavaScriptCore/JSStringRef.h>
+#include <JavaScriptCore/JavaScript.h>
 #include <JavaScriptCore/JSStringRefCF.h>
 
-JSContextRef CYGetJSContext();
-CFStringRef CYCopyJSONString(JSContextRef context, JSValueRef value);
+#include <apr-1/apr_pools.h>
 
-#ifdef __OBJC__
-void CYThrow(JSContextRef context, id error, JSValueRef *exception);
-#endif
+JSGlobalContextRef CYGetJSContext();
+const char *CYPoolJSONString(apr_pool_t *pool, JSContextRef context, JSValueRef value, JSValueRef *exception);
+void CYSetArgs(int argc, const char *argv[]);
 
-#endif/*CYCRIPT_H*/
+#endif/*CYCRIPT_HPP*/