search for: js_propertystub

Displaying 7 results from an estimated 7 matches for "js_propertystub".

2007 Mar 01
0
7 commits - libswfdec/swfdec_connection.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...f1032..1568e64 100644 --- a/libswfdec/swfdec_js_connection.c +++ b/libswfdec/swfdec_js_connection.c @@ -81,7 +81,7 @@ swfdec_js_connection_finalize (JSContext } } -static JSClass connection_class = { +const JSClass connection_class = { "NetConnection", JSCLASS_HAS_PRIVATE, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, swfdec_js_connection_finalize, diff --git a/libswfdec/swfdec_js_net_stream.c b/libswfdec/swfdec_js_net_stream.c index 7b53cfb..9f12dd0 100644 --- a/libswfdec/swfdec_js_net_stream.c +++...
2007 Jun 27
0
Branch 'as' - 16 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_script_function.c
...SwfdecVideo *video; - - video = JS_GetPrivate (cx, obj); - if (video) { - SWFDEC_SCRIPTABLE (video)->jsobj = NULL; - g_object_unref (video); - } -} + SwfdecVideoMovie *video = SWFDEC_VIDEO_MOVIE (obj); -const JSClass video_class = { - "Video", JSCLASS_HAS_PRIVATE, - JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, - JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, swfdec_js_video_finalize, - JSCLASS_NO_OPTIONAL_MEMBERS -}; - -static JSBool -swfdec_js_video_new (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) -{ - return JS...
2007 Mar 01
0
11 commits - libswfdec/Makefile.am libswfdec/swfdec_connection.c libswfdec/swfdec_connection.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js.h libswfdec/swfdec_js_net_stream.c
...(JSContext *cx, JSObject *obj) +{ + SwfdecNetStream *stream; + + stream = JS_GetPrivate (cx, obj); + if (stream) { + SWFDEC_SCRIPTABLE (stream)->jsobj = NULL; + g_object_unref (stream); + } +} + +static JSClass net_stream_class = { + "NetStream", JSCLASS_HAS_PRIVATE, + JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, + JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, swfdec_js_net_stream_finalize, + JSCLASS_NO_OPTIONAL_MEMBERS +}; + +static JSBool +swfdec_js_net_stream_new (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) +{ +...
2007 Jun 21
0
Branch 'as' - 5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_connection.c libswfdec/swfdec_net_stream_as.c libswfdec/swfdec_net_stream.c
...e (JSContext *cx, JSObject *obj) -{ - SwfdecNetStream *stream; - - stream = JS_GetPrivate (cx, obj); - if (stream) { - SWFDEC_SCRIPTABLE (stream)->jsobj = NULL; - g_object_unref (stream); - } -} - -const JSClass net_stream_class = { - "NetStream", JSCLASS_HAS_PRIVATE, - JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, - JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, swfdec_js_net_stream_finalize, - JSCLASS_NO_OPTIONAL_MEMBERS -}; - -static JSBool -swfdec_js_net_stream_new (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) -{ -...
2007 May 23
0
Branch 'as' - 7 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...0, 0 }, - {0,0,0,0,0} -}; - -static void -swfdec_js_color_finalize (JSContext *cx, JSObject *obj) -{ - SwfdecMovie *movie; - - movie = JS_GetPrivate (cx, obj); - if (movie) { - g_object_unref (movie); - } -} - -static JSClass color_class = { - "Color", JSCLASS_HAS_PRIVATE, - JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, - JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, swfdec_js_color_finalize, - JSCLASS_NO_OPTIONAL_MEMBERS -}; - -static JSBool -swfdec_js_color_new (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) -{ - SwfdecMov...
2007 Mar 02
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_js_video.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h
...c_js_video_finalize (JSContext *cx, JSObject *obj) +{ + SwfdecVideo *video; + + video = JS_GetPrivate (cx, obj); + if (video) { + SWFDEC_SCRIPTABLE (video)->jsobj = NULL; + g_object_unref (video); + } +} + +const JSClass video_class = { + "Video", JSCLASS_HAS_PRIVATE, + JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, + JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, swfdec_js_video_finalize, + JSCLASS_NO_OPTIONAL_MEMBERS +}; + +static JSBool +swfdec_js_video_new (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) +{ + return JS...
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
...%p for movie %p", obj, movie); - movie->jsobj = NULL; - g_object_unref (movie); - } else { - SWFDEC_LOG ("destroying JSObject %p", obj); - } -} - -static JSClass movieclip_class = { +const JSClass movieclip_class = { "MovieClip", JSCLASS_HAS_PRIVATE, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_EnumerateStub, JS_ResolveStub, - JS_ConvertStub, movie_finalize, + JS_ConvertStub, swfdec_scriptable_finalize, JSCLASS_NO_OPTIONAL_MEMBERS }; @@ -213,9 +195,9 @@ mc_hitTest (JSContext *cx, JSObject *obj if (...