5 #include <dpl/shared_ptr.h>
6 #include <JavaScriptCore/JavaScript.h>
7 #include <CommonsJavaScript/JSPendingOperationPrivateObject.h>
8 #include <CommonsJavaScript/PrivateObject.h>
13 typedef WrtDeviceApis::CommonsJavaScript::PrivateObject<VehiclePtr, WrtDeviceApis::CommonsJavaScript::NoOwnership> VehiclePrivObject;
18 static const JSClassDefinition* getClassInfo();
20 static const JSClassRef getClassRef();
24 * The callback invoked when an object is first created.
26 static void initialize(JSContextRef context,
30 * The callback invoked when an object is finalized.
32 static void finalize(JSObjectRef object);
35 * The callback invoked when an object is used as the target of an 'instanceof' expression.
37 static bool hasInstance(JSContextRef ctx,
38 JSObjectRef constructor,
39 JSValueRef possibleInstance,
40 JSValueRef* exception);
42 static JSValueRef get(JSContextRef context,
44 JSObjectRef thisObject,
46 const JSValueRef arguments[],
47 JSValueRef* exception);
50 * This structure contains properties and callbacks that define a type of object.
52 static JSClassDefinition m_classInfo;
55 * This structure describes a statically declared function.
57 static JSStaticFunction m_function[];
59 static JSClassRef m_jsClassRef;