]> git.saurik.com Git - cycript.git/blame_incremental - cycript.hpp
Minor refactoring, checkpoint commit.
[cycript.git] / cycript.hpp
... / ...
CommitLineData
1#ifndef CYCRIPT_HPP
2#define CYCRIPT_HPP
3
4#ifdef __OBJC__
5#include <Foundation/Foundation.h>
6#endif
7
8#include <JavaScriptCore/JavaScript.h>
9#include <JavaScriptCore/JSStringRefCF.h>
10
11#include <apr-1/apr_pools.h>
12
13JSGlobalContextRef CYGetJSContext();
14const char *CYPoolJSONString(apr_pool_t *pool, JSContextRef context, JSValueRef value, JSValueRef *exception);
15void CYSetArgs(int argc, const char *argv[]);
16void CYSetProperty(JSContextRef context, JSObjectRef object, JSStringRef name, JSValueRef value);
17JSObjectRef CYGetGlobalObject(JSContextRef context);
18JSStringRef CYCopyJSString(const char *value);
19
20#endif/*CYCRIPT_HPP*/