Displaying 9 results from an estimated 9 matches for "as_object_class".
2007 Aug 14
0
Branch 'vivi' - 11 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am libswfdec/swfdec.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h vivified/core
...) {
+ if (!breakpoint->handlers[i])
+ breakpoint->handlers[i] = g_signal_connect (debugger, events[i].signal,
+ events[i].handler, object);
+ } else {
+ if (breakpoint->handlers[i])
+ g_signal_handler_disconnect (debugger, breakpoint->handlers[i]);
+ }
+ }
+ SWFDEC_AS_OBJECT_CLASS (vivi_breakpoint_parent_class)->set (object, variable, val);
+}
+
+static gboolean
+vivi_breakpoint_delete (SwfdecAsObject *object, const char *variable)
+{
+ ViviBreakpoint *breakpoint = VIVI_BREAKPOINT (object);
+ guint i;
+
+ i = vivi_breakpoint_find_event (variable);
+ if (i && b...
2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
...8a51a7 100644
--- a/libswfdec/swfdec_load_object.c
+++ b/libswfdec/swfdec_load_object.c
@@ -148,6 +148,14 @@ swfdec_load_object_reset (SwfdecLoadObje
}
static void
+swfdec_load_object_mark (SwfdecAsObject *object)
+{
+ swfdec_as_object_mark (SWFDEC_LOAD_OBJECT (object)->target);
+
+ SWFDEC_AS_OBJECT_CLASS (swfdec_load_object_parent_class)->mark (object);
+}
+
+static void
swfdec_load_object_dispose (GObject *object)
{
SwfdecLoadObject *load_object = SWFDEC_LOAD_OBJECT (object);
@@ -161,8 +169,11 @@ static void
swfdec_load_object_class_init (SwfdecLoadObjectClass *klass)
{
GObjectClass *...
2007 Jun 18
2
as branch progress report
...rything gets freed. This has been done forever. The
new thing is that since commit
40a2b740ee548eeed3bcbe19f80e3d4590cb4451 a full GC is done after every
frame when more than 8MB have been allocated since the last GC.
Marking objects is done from as_context_class->mark. If an object gets
marked, as_object_class->mark is called on that object. The object
will then call swfdec_as_(value|object|string)_mark() on all objects
it still references. If you implement a custom object, you might need
to override this. (for example the NetStream object will need to
reference its NetConnection).
The second thing...
2008 Jan 08
0
4 commits - configure.ac test/compiler.c test/.gitignore test/Makefile.am test/swfdec_test.c test/swfdec_test_function.c test/swfdec_test_function.h test/swfdec_test_global.c test/swfdec_test_initialize.as test/swfdec_test_initialize.h
...ce_filename; /* file we're parsing */
+ SwfdecBuffer * trace_buffer; /* buffer containing the file */
+ guchar * trace_offset; /* how far we've parsed the trace data */
+ gboolean trace_failed; /* TRUE if the tacing failed */
+};
+
+struct _SwfdecTestTestClass
+{
+ SwfdecAsObjectClass as_object_class;
+};
+
+GType swfdec_test_test_get_type (void);
+
+
+G_END_DECLS
+#endif
diff --git a/test/test/.gitignore b/test/test/.gitignore
deleted file mode 100644
index 34dad19..0000000
--- a/test/test/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-swfdec_test_function_list.h
-
-compiler
-test
diff --git a/tes...
2008 Jan 08
0
4 commits - test/.gitignore test/image test/Makefile.am test/swfdec_test_function.c test/swfdec_test_image.c test/swfdec_test_image.h test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
..._GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFDEC_TYPE_TEST_IMAGE, SwfdecTestImageClass))
+
+struct _SwfdecTestImage
+{
+ SwfdecAsObject as_object;
+
+ cairo_surface_t * surface; /* surface or NULL when broken image */
+};
+
+struct _SwfdecTestImageClass
+{
+ SwfdecAsObjectClass as_object_class;
+};
+
+GType swfdec_test_image_get_type (void);
+
+SwfdecAsObject *swfdec_test_image_new (SwfdecAsContext * context,
+ guint width,
+ guint height);
+
+G_END_DECLS
+#endif
diff --git a/test/swfdec_test_initialize.as b/test/swfdec_test_initialize.as
index 6d72d9b..debff41 100644
-...
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
...VALUE_IS_OBJECT (val) &&
+ SWFDEC_IS_AS_FUNCTION (SWFDEC_AS_VALUE_GET_OBJECT (val))) {
+ if (!breakpoint->handlers[i])
+ vivi_breakpoint_add (breakpoint, i);
+ } else {
+ if (breakpoint->handlers[i])
+ vivi_breakpoint_remove (breakpoint, i);
+ }
+ }
- SWFDEC_AS_OBJECT_CLASS (vivi_breakpoint_parent_class)->set (object, variable, val);
++ SWFDEC_AS_OBJECT_CLASS (vivi_breakpoint_parent_class)->set (object, variable, val, flags);
+}
+
- static gboolean
++static SwfdecAsDeleteReturn
+vivi_breakpoint_delete (SwfdecAsObject *object, const char *variable)
+{
+ Vi...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...+0200
implement debug-printing for SwfdecAsString
diff --git a/libswfdec/swfdec_as_string.c b/libswfdec/swfdec_as_string.c
index 720bc5c..96f311d 100644
--- a/libswfdec/swfdec_as_string.c
+++ b/libswfdec/swfdec_as_string.c
@@ -43,12 +43,21 @@ swfdec_as_string_do_mark (SwfdecAsObject
SWFDEC_AS_OBJECT_CLASS (swfdec_as_string_parent_class)->mark (object);
}
+static char *
+swfdec_as_string_debug (SwfdecAsObject *object)
+{
+ SwfdecAsString *string = SWFDEC_AS_STRING (object);
+
+ return g_strdup (string->string);
+}
+
static void
swfdec_as_string_class_init (SwfdecAsStringClass *klass)
{...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...bject);
+
+ swfdec_url_free (sandbox->url);
+
+ G_OBJECT_CLASS (swfdec_sandbox_parent_class)->dispose (object);
+}
+
+static void
swfdec_sandbox_class_init (SwfdecSandboxClass *klass)
{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
+ object_class->dispose = swfdec_sandbox_dispose;
+
asobject_class->mark = swfdec_sandbox_mark;
}
@@ -168,6 +181,7 @@ swfdec_sandbox_get_for_url (SwfdecPlayer *player, const SwfdecURL *url,
SwfdecSandbox *sandbox;
SwfdecURL *real;
guint as_version;
+ GSList *walk;...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...cTestTest
+{
+ SwfdecAsObject as_object;
+
+ char * filename; /* file the player should be loaded from */
+ SwfdecPlayer * player; /* the player or %NULL if none */
+ gboolean player_quit; /* the player has called fscommand:quit */
+};
+
+struct _SwfdecTestTestClass
+{
+ SwfdecAsObjectClass as_object_class;
+};
+
+GType swfdec_test_test_get_type (void);
+
+
+G_END_DECLS
+#endif
commit 97d89d8dc0605f5d42c4bf56039822c22e2eaaa8
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Jan 7 17:20:52 2008 +0100
fix typo
diff --git a/vivified/core/Makefile.am b/vivified/core/Makefile.am
index 125...