File: jsvalueref.pyi

package info (click to toggle)
python-jswebkit 0.0.3-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 472 kB
  • ctags: 718
  • sloc: python: 69; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 994 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cdef extern from "JavaScriptCore/JSValueRef.h":
    cdef enum JSType :
         kJSTypeUndefined,kJSTypeNull,kJSTypeBoolean,kJSTypeNumber,kJSTypeString,kJSTypeObject
    JSType JSValueGetType(JSContextRef ctx, JSValueRef value)
    bool JSValueToBoolean(JSContextRef ctx, JSValueRef value)
    double JSValueToNumber(JSContextRef ctx, JSValueRef value, JSValueRef* exception)
    JSStringRef JSValueToStringCopy(JSContextRef ctx, JSValueRef value, JSValueRef* exception)
    JSObjectRef JSValueToObject(JSContextRef ctx, JSValueRef value, JSValueRef* exception)
    
    JSValueRef JSValueMakeUndefined(JSContextRef ctx)
    JSValueRef JSValueMakeNull(JSContextRef ctx)
    JSValueRef JSValueMakeBoolean(JSContextRef ctx, bool boolean)
    JSValueRef JSValueMakeNumber(JSContextRef ctx, double number)
    JSValueRef JSValueMakeString(JSContextRef ctx, JSStringRef string)
    void JSValueProtect(JSContextRef ctx, JSValueRef value)
    void JSValueUnprotect(JSContextRef ctx, JSValueRef value)