]>
Commit | Line | Data |
---|---|---|
d35a3b07 JF |
1 | #ifndef CYCRIPT_HPP |
2 | #define CYCRIPT_HPP | |
057f943f JF |
3 | |
4 | #ifdef __OBJC__ | |
5 | #include <Foundation/Foundation.h> | |
6 | #endif | |
7 | ||
b09da87b | 8 | #include <JavaScriptCore/JavaScript.h> |
057f943f JF |
9 | #include <JavaScriptCore/JSStringRefCF.h> |
10 | ||
478d4ed0 | 11 | #include <apr-1/apr_pools.h> |
057f943f | 12 | |
478d4ed0 | 13 | JSGlobalContextRef CYGetJSContext(); |
4cf49641 | 14 | const char *CYPoolJSONString(apr_pool_t *pool, JSContextRef context, JSValueRef value, JSValueRef *exception); |
478d4ed0 | 15 | void CYSetArgs(int argc, const char *argv[]); |
579ed526 JF |
16 | void CYSetProperty(JSContextRef context, JSObjectRef object, JSStringRef name, JSValueRef value); |
17 | JSObjectRef CYGetGlobalObject(JSContextRef context); | |
18 | JSStringRef CYCopyJSString(const char *value); | |
057f943f | 19 | |
d35a3b07 | 20 | #endif/*CYCRIPT_HPP*/ |