Displaying 20 results from an estimated 27 matches for "asobject_class".
2007 Jul 12
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie_as.c test/trace
...;
}
+static char *
+swfdec_movie_get_debug (SwfdecAsObject *object)
+{
+ SwfdecMovie *movie = SWFDEC_MOVIE (object);
+
+ return swfdec_movie_get_path (movie);
+}
+
static gboolean
swfdec_movie_iterate_end (SwfdecMovie *movie)
{
@@ -855,6 +863,7 @@ swfdec_movie_class_init (SwfdecMovieClas
asobject_class->mark = swfdec_movie_mark;
asobject_class->get = swfdec_movie_get_variable;
asobject_class->set = swfdec_movie_set_variable;
+ asobject_class->debug = swfdec_movie_get_debug;
movie_class->iterate_end = swfdec_movie_iterate_end;
}
diff-tree b7672f1e4e0ee0a598397080589d6a2...
2008 Jan 02
0
3 commits - libswfdec/swfdec_movie.c test/trace
...+ SWFDEC_AS_VALUE_SET_OBJECT (&val, walk->data);
+ ret &= func (object, cur->name, &val, 0, data);
+ }
+
+ return ret;
+}
+
static char *
swfdec_movie_get_debug (SwfdecAsObject *object)
{
@@ -1434,6 +1455,7 @@ swfdec_movie_class_init (SwfdecMovieClass * movie_class)
asobject_class->mark = swfdec_movie_mark;
asobject_class->get = swfdec_movie_get_variable;
asobject_class->set = swfdec_movie_set_variable;
+ asobject_class->foreach = swfdec_movie_foreach_variable;
asobject_class->debug = swfdec_movie_get_debug;
g_object_class_install_property (obje...
2007 Sep 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_scope.c libswfdec/swfdec_as_scope.h libswfdec/swfdec_as_script_function.c
...- swfdec_as_object_mark (SWFDEC_AS_OBJECT (scope->next));
-
- SWFDEC_AS_OBJECT_CLASS (swfdec_as_scope_parent_class)->mark (object);
-}
-
-static void
-swfdec_as_scope_class_init (SwfdecAsScopeClass *klass)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
- SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
-
- object_class->dispose = swfdec_as_scope_dispose;
-
- asobject_class->mark = swfdec_as_scope_mark;
-}
-
-static void
-swfdec_as_scope_init (SwfdecAsScope *scope)
-{
-}
-
diff --git a/libswfdec/swfdec_as_scope.h b/libswfdec/swfdec_as_scope.h
deleted file...
2007 Aug 21
0
Branch 'vivi' - 4 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_string.c vivified/core
...t_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)
{
SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
asobject_class->mark = swfdec_as_string_do_mark;
+ asobject_class->debug = swfdec_as_string_debug;
}
static void
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
...turns FALSE */
gboolean (* foreach) (SwfdecAsObject * object,
diff --git a/libswfdec/swfdec_as_super.c b/libswfdec/swfdec_as_super.c
index f093638..41a58f2 100644
--- a/libswfdec/swfdec_as_super.c
+++ b/libswfdec/swfdec_as_super.c
@@ -122,7 +122,7 @@ swfdec_as_super_class_init (SwfdecAsSupe
asobject_class->get = swfdec_as_super_get;
asobject_class->set = swfdec_as_super_set;
asobject_class->set_flags = swfdec_as_super_set_flags;
- asobject_class->delete = swfdec_as_super_delete;
+ asobject_class->del = swfdec_as_super_delete;
asobject_class->resolve = swfdec_as_super_res...
2007 May 24
0
Branch 'as' - 11 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c
...{
+ /* if we have no variables, we also can't set its flags... */
+}
+
+static void
+swfdec_as_super_delete (SwfdecAsObject *object, const char *variable)
+{
+ /* if we have no variables... */
+}
+
static void
swfdec_as_super_class_init (SwfdecAsSuperClass *klass)
{
+ SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
SwfdecAsFunctionClass *function_class = SWFDEC_AS_FUNCTION_CLASS (klass);
+ asobject_class->get = swfdec_as_super_get;
+ asobject_class->set = swfdec_as_super_set;
+ asobject_class->set_flags = swfdec_as_super_set_flags;
+ asobject_class->delet...
2007 Aug 07
0
5 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_keys.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c player/swfdebug.c player/swfdec_debug_movies.c player/swfdec_debug_movies.h test/trace
...k;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+ break;
+ }
+}
+
+static void
swfdec_movie_dispose (GObject *object)
{
SwfdecMovie * movie = SWFDEC_MOVIE (object);
@@ -873,12 +908,18 @@ swfdec_movie_class_init (SwfdecMovieClas
SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (movie_class);
object_class->dispose = swfdec_movie_dispose;
+ object_class->get_property = swfdec_movie_get_property;
+ object_class->set_property = swfdec_movie_set_property;
asobject_class->mark = swfdec_movie_mark;
asobject_class->get = swf...
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
...;
-
- SWFDEC_AS_OBJECT_CLASS (swfdec_as_array_parent_class)->add (object);
-}
-
-static void
swfdec_as_array_set (SwfdecAsObject *object, const char *variable,
const SwfdecAsValue *val, guint flags)
{
@@ -367,7 +359,6 @@ swfdec_as_array_class_init (SwfdecAsArra
{
SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
- asobject_class->add = swfdec_as_array_add;
asobject_class->set = swfdec_as_array_set;
}
@@ -401,6 +392,7 @@ swfdec_as_array_new (SwfdecAsContext *co
ret = g_object_new (SWFDEC_TYPE_AS_ARRAY, NULL);
swfdec_as_object_add (ret, context, sizeof (...
2007 Jun 27
0
Branch 'as' - libswfdec/swfdec_as_strings.c libswfdec/swfdec_net_stream_as.c libswfdec/swfdec_net_stream.c
...er);
+ SWFDEC_AS_VALUE_SET_INT (val, bytes);
+ *flags = 0;
+ return TRUE;
+ }
+ return FALSE;
+}
+
static void
swfdec_net_stream_mark (SwfdecAsObject *object)
{
@@ -345,6 +388,7 @@ swfdec_net_stream_class_init (SwfdecNetS
object_class->dispose = swfdec_net_stream_dispose;
+ asobject_class->get = swfdec_net_stream_get_variable;
asobject_class->mark = swfdec_net_stream_mark;
}
diff --git a/libswfdec/swfdec_net_stream_as.c b/libswfdec/swfdec_net_stream_as.c
index 6496c68..69dd38c 100644
--- a/libswfdec/swfdec_net_stream_as.c
+++ b/libswfdec/swfdec_net_stream_as.c
@@ -74,76...
2007 Jul 12
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_with.c libswfdec/swfdec_sprite_movie.c test/trace
...olve (SwfdecAsObject *object)
+{
+ SwfdecAsWith *with = SWFDEC_AS_WITH (object);
+
+ return with->object;
+}
+
static gboolean
swfdec_as_with_get (SwfdecAsObject *object, const char *variable,
SwfdecAsValue *val, guint *flags)
@@ -96,6 +104,7 @@ swfdec_as_with_class_init (SwfdecAsWithC
asobject_class->set_flags = swfdec_as_with_set_flags;
asobject_class->delete = swfdec_as_with_delete;
asobject_class->foreach = swfdec_as_with_foreach;
+ asobject_class->resolve = swfdec_as_with_resolve;
}
static void
diff-tree 786973ef96469eef042e077378889e1303453930 (from b26104d4c260fa0f...
2007 Jun 05
0
Branch 'as' - 8 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_number.c libswfdec/swfdec_as_scope.h
...ter data)
+{
+ SwfdecAsWith *with = SWFDEC_AS_WITH (object);
+ SwfdecAsObjectClass *klass = SWFDEC_AS_OBJECT_GET_CLASS (with->object);
+
+ return klass->foreach (with->object, func, data);
+}
+
+static void
+swfdec_as_with_class_init (SwfdecAsWithClass *klass)
+{
+ SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
+
+ asobject_class->mark = swfdec_as_with_mark;
+ asobject_class->get = swfdec_as_with_get;
+ asobject_class->set = swfdec_as_with_set;
+ asobject_class->set_flags = swfdec_as_with_set_flags;
+ asobject_class->delete = swfdec_as_with_delete;
+...
2007 May 18
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_native_function.h
...wfdec_as_function_parent_class)->mark (object);
-}
+G_DEFINE_ABSTRACT_TYPE (SwfdecAsFunction, swfdec_as_function, SWFDEC_TYPE_AS_OBJECT)
static void
swfdec_as_function_class_init (SwfdecAsFunctionClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
- SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
-
- object_class->dispose = swfdec_as_function_dispose;
-
- asobject_class->mark = swfdec_as_function_mark;
}
static void
swfdec_as_function_init (SwfdecAsFunction *function)
{
- function->type = SWFDEC_TYPE_AS_OBJECT;
- function->type_size =...
2007 Jun 01
0
Branch 'as' - 2 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c libswfdec/swfdec_interval.c libswfdec/swfdec_interval.h libswfdec/swfdec_player_as.c libswfdec/swfdec_player.c
...terval->timeout);
+ interval->timeout.callback = NULL;
+ }
+
+ G_OBJECT_CLASS (swfdec_interval_parent_class)->dispose (object);
+}
+
+static void
+swfdec_interval_class_init (SwfdecIntervalClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
+
+ object_class->dispose = swfdec_interval_dispose;
+
+ asobject_class->mark = swfdec_interval_mark;
+}
+
+static void
+swfdec_interval_init (SwfdecInterval *array)
+{
+}
+
+static void
+swfdec_interval_trigger (SwfdecTimeout *timeout)
+{
+ SwfdecAsValue...
2007 Sep 06
0
3 commits - libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...LSE;
-
- SWFDEC_AS_VALUE_SET_OBJECT (val, SWFDEC_AS_OBJECT (movie));
- *flags = 0;
- return TRUE;
-}
-
static void
swfdec_sprite_movie_mark (SwfdecAsObject *object)
{
@@ -696,7 +660,6 @@ swfdec_sprite_movie_class_init (SwfdecSp
object_class->dispose = swfdec_sprite_movie_dispose;
- asobject_class->get = swfdec_sprite_movie_get_variable;
asobject_class->mark = swfdec_sprite_movie_mark;
movie_class->init_movie = swfdec_sprite_movie_init_movie;
diff-tree bef93cc3654b365ede21b7620ea309292d6a0a1d (from 49049ba4180c1ee8491bb69c395cc2c5e8fff09e)
Author: Benjamin Otte <otte at g...
2007 Aug 17
0
2 commits - libswfdec/swfdec_as_array.c test/trace
...if (indexvar) {
+ if (++l > swfdec_as_array_get_length_as_integer (object))
swfdec_as_array_set_length (object, l);
- }
}
}
static void
swfdec_as_array_class_init (SwfdecAsArrayClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
- object_class->dispose = swfdec_as_array_dispose;
-
asobject_class->add = swfdec_as_array_add;
asobject_class->set = swfdec_as_array_set;
}
@@ -374,7 +395,7 @@ swfdec_as_array_new (SwfdecAsContext *co
g_return_val_if_fail (SWFDEC_IS_AS_CONT...
2007 Mar 28
0
Branch 'as' - 3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_types.c
...+) {
+ swfdec_as_value_mark (&frame->registers[i]);
+ }
+ SWFDEC_AS_OBJECT_CLASS (swfdec_as_frame_parent_class)->mark (object);
+}
+
+static void
+swfdec_as_frame_class_init (SwfdecAsFrameClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
+
+ object_class->dispose = swfdec_as_frame_dispose;
+
+ asobject_class->mark = swfdec_as_frame_mark;
+}
+
+static void
+swfdec_as_frame_init (SwfdecAsFrame *frame)
+{
+}
+
+SwfdecAsFrame *
+swfdec_as_frame_new (SwfdecAsContext *context, SwfdecAsObject *thi...
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
...vie is already dead */
+ if (color->movie)
+ swfdec_as_object_mark (SWFDEC_AS_OBJECT (color->movie));
+
+ SWFDEC_AS_OBJECT_CLASS (swfdec_movie_color_parent_class)->mark (object);
+}
+
+static void
+swfdec_movie_color_class_init (SwfdecMovieColorClass *klass)
+{
+ SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
+
+ asobject_class->mark = swfdec_movie_color_mark;
+}
+
+static void
+swfdec_movie_color_init (SwfdecMovieColor *color)
+{
+}
+
+/*** AS CODE ***/
+
+static void
+swfdec_movie_color_getRGB (SwfdecAsObject *obj, guint argc, SwfdecAsValue *argv, SwfdecAsValue *r...
2007 Oct 17
0
4 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_movie.c libswfdec/swfdec_system_as.c libswfdec/swfdec_text_field_movie.c test/trace
...text_field_movie_set_listen_variable (text, NULL);
+}
+
+static void
swfdec_text_field_movie_class_init (SwfdecTextFieldMovieClass * g_class)
{
GObjectClass *object_class = G_OBJECT_CLASS (g_class);
@@ -629,6 +636,7 @@ swfdec_text_field_movie_class_init (SwfdecTextFieldMovieClass * g_class)
asobject_class->mark = swfdec_text_field_movie_mark;
movie_class->init_movie = swfdec_text_field_movie_init_movie;
+ movie_class->finish_movie = swfdec_text_field_movie_finish_movie;
movie_class->update_extents = swfdec_text_field_movie_update_extents;
movie_class->render = swfdec_text_...
2007 Aug 17
0
Branch 'vivi' - 9 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c
...if (indexvar) {
+ if (++l > swfdec_as_array_get_length_as_integer (object))
swfdec_as_array_set_length (object, l);
- }
}
}
static void
swfdec_as_array_class_init (SwfdecAsArrayClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
- object_class->dispose = swfdec_as_array_dispose;
-
asobject_class->add = swfdec_as_array_add;
asobject_class->set = swfdec_as_array_set;
}
@@ -374,7 +395,7 @@ swfdec_as_array_new (SwfdecAsContext *co
g_return_val_if_fail (SWFDEC_IS_AS_CONT...
2007 Jul 04
0
Branch 'as' - 25 commits - libswfdec/Makefile.am libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...quot;%s ()", native->name);
+}
+
static void
swfdec_as_native_function_dispose (GObject *object)
{
@@ -74,10 +82,13 @@ static void
swfdec_as_native_function_class_init (SwfdecAsNativeFunctionClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
SwfdecAsFunctionClass *function_class = SWFDEC_AS_FUNCTION_CLASS (klass);
object_class->dispose = swfdec_as_native_function_dispose;
+ asobject_class->debug = swfdec_as_native_function_debug;
+
function_class->call = swfdec_as_native_function...