Displaying 19 results from an estimated 19 matches for "swfdecasvariableforeach".
2007 Apr 16
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
.../libswfdec/swfdec_as_object.c
index ff9abbd..9a90393 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -92,6 +92,34 @@ swfdec_as_object_do_delete (SwfdecAsObje
swfdec_as_object_free_property (NULL, var, object);
}
+typedef struct {
+ SwfdecAsObject * object;
+ SwfdecAsVariableForeach func;
+ gpointer data;
+ gboolean retval;
+} ForeachData;
+
+static void
+swfdec_as_object_hash_foreach (gpointer key, gpointer value, gpointer data)
+{
+ ForeachData *fdata = data;
+
+ if (!fdata->retval)
+ return;
+
+ fdata->retval = fdata->func (fdata->object, key, value,...
2007 Jul 13
0
12 commits - AUTHORS doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h
...ct;
};
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 4193fdf..1284bea 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -76,6 +76,19 @@
* Swfdec. You can manually set them with swfdec_as_object_set_variable_flags().
*/
+/**
+ * SwfdecAsVariableForeach:
+ * @object: The object this function is run on
+ * @variable: garbage-collected name of the current variables
+ * @value: value of the current variable
+ * @flags: Flags associated with the current variable
+ * @data: User dta passed to swfdec_as_object_foreach()
+ *
+ * Function prototype for th...
2007 Oct 23
0
6 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_flash_security.c
...Tue Oct 23 14:58:22 2007 +0200
add swfdec_as_object_call_with_security() and use it
diff --git a/libswfdec/swfdec_as_internal.h b/libswfdec/swfdec_as_internal.h
index 98cb9ee..155cf3e 100644
--- a/libswfdec/swfdec_as_internal.h
+++ b/libswfdec/swfdec_as_internal.h
@@ -52,6 +52,13 @@ typedef SwfdecAsVariableForeach SwfdecAsVariableForeachRemove;
typedef const char *(* SwfdecAsVariableForeachRename) (SwfdecAsObject *object,
const char *variable, SwfdecAsValue *value, guint flags, gpointer data);
+void swfdec_as_object_call_with_security
+ (SwfdecAsObject * object,
+ SwfdecSecurity * sec,
+...
2007 Dec 17
0
2 commits - doc/Makefile.am doc/swfdec-sections.txt NEWS
...ard>
SWFDEC_IS_AS_VALUE
@@ -344,6 +348,7 @@ swfdec_as_object_set_variable_and_flags
swfdec_as_object_add_variable
swfdec_as_object_set_variable_flags
swfdec_as_object_unset_variable_flags
+swfdec_as_object_has_variable
swfdec_as_object_delete_variable
swfdec_as_object_delete_all_variables
SwfdecAsVariableForeach
2007 Jul 13
0
4 commits - configure.ac libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.h libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h NEWS
...decScript is not exported, so it cannot be public
diff --git a/libswfdec/swfdec_as_internal.h b/libswfdec/swfdec_as_internal.h
index 00d56db..ca6ab2d 100644
--- a/libswfdec/swfdec_as_internal.h
+++ b/libswfdec/swfdec_as_internal.h
@@ -41,6 +41,7 @@ void swfdec_as_function_init_context (S
typedef SwfdecAsVariableForeach SwfdecAsVariableForeachRemove;
typedef const char *(* SwfdecAsVariableForeachRename) (SwfdecAsObject *object,
const char *variable, SwfdecAsValue *value, guint flags, gpointer data);
+
void swfdec_as_object_collect (SwfdecAsObject * object);
guint swfdec_as_object_foreach_remove (Sw...
2008 Jan 02
0
3 commits - libswfdec/swfdec_movie.c test/trace
...+++ b/libswfdec/swfdec_movie.c
@@ -1227,6 +1227,27 @@ swfdec_movie_set_variable (SwfdecAsObject *object, const char *variable,
SWFDEC_AS_OBJECT_CLASS (swfdec_movie_parent_class)->set (object, variable, val, flags);
}
+static gboolean
+swfdec_movie_foreach_variable (SwfdecAsObject *object, SwfdecAsVariableForeach func, gpointer data)
+{
+ SwfdecMovie *movie = SWFDEC_MOVIE (object);
+ SwfdecAsValue val;
+ GList *walk;
+ gboolean ret;
+
+ ret = SWFDEC_AS_OBJECT_CLASS (swfdec_movie_parent_class)->foreach (object, func, data);
+
+ for (walk = movie->list; walk && ret; walk = walk->next) {...
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
...le was deleted.
+ * @SWFDEC_AS_DELETE_NOT_DELETED: The variable was found but could not be
+ * deleted.
+ *
+ * This is the return value used by swfdec_as_object_delete_variable(). It
+ * describes the various outcomes of trying to delete a variable.
+ */
+
+/**
* SwfdecAsVariableForeach:
* @object: The object this function is run on
* @variable: garbage-collected name of the current variables
@@ -266,22 +278,22 @@ swfdec_as_object_free_property (gpointer
g_slice_free (SwfdecAsVariable, value);
}
-static gboolean
+static SwfdecAsDeleteReturn
swfdec_as_object_do_delete (S...
2007 Sep 08
0
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_video_movie_as.c
....h
@@ -44,7 +44,8 @@ void swfdec_as_function_init_context (S
/* swfdec_as_context.c */
void swfdec_as_context_run_init_script (SwfdecAsContext * context,
const guint8 * data,
- gsize length);
+ gsize length,
+ guint version);
/* swfdec_as_object.c */
typedef SwfdecAsVariableForeach SwfdecAsVariableForeachRemove;
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 7babf41..3d54325 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -1240,7 +1240,9 @@ swfdec_player_unlock (SwfdecPlayer *play
g_return_if_fail (SWFDEC_IS_PLAYER (playe...
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
...solve (object);
+}
diff --git a/libswfdec/swfdec_as_object.h b/libswfdec/swfdec_as_object.h
index 2c5c1c3..ef818fb 100644
--- a/libswfdec/swfdec_as_object.h
+++ b/libswfdec/swfdec_as_object.h
@@ -90,6 +90,9 @@ struct _SwfdecAsObjectClass {
gboolean (* foreach) (SwfdecAsObject * object,
SwfdecAsVariableForeach func,
gpointer data);
+ /* get the real object referenced by this object (useful for internal objects) */
+ SwfdecAsObject * (* resolve) (SwfdecAsObject * object);
+ /* get a debug string representation for this object */
char * (* debug) (SwfdecAsObject * object);
};
@@ -104,6...
2007 Nov 09
0
10 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_loader.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie_clip_loader.c libswfdec/swfdec_movie.h
...tions.txt
index 0916f16..4a5e12a 100644
--- a/doc/swfdec-sections.txt
+++ b/doc/swfdec-sections.txt
@@ -345,6 +345,7 @@ swfdec_as_object_add_variable
swfdec_as_object_set_variable_flags
swfdec_as_object_unset_variable_flags
swfdec_as_object_delete_variable
+swfdec_as_object_delete_all_variables
SwfdecAsVariableForeach
swfdec_as_object_foreach
swfdec_as_object_has_function
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 877f6e4..bb4adcc 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -921,13 +921,13 @@ swfdec_as_object_delete_variable (SwfdecAsObjec...
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
...}
-
-static SwfdecAsDeleteReturn
-swfdec_as_with_delete (SwfdecAsObject *object, const char *variable)
-{
- SwfdecAsWith *with = SWFDEC_AS_WITH (object);
-
- return swfdec_as_object_delete_variable (with->object, variable);
-}
-
-static gboolean
-swfdec_as_with_foreach (SwfdecAsObject *object, SwfdecAsVariableForeach func,
- gpointer 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)
-{
- Swfd...
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
...(SwfdecAsObject *object, const char *variable)
+{
+ SwfdecAsWith *with = SWFDEC_AS_WITH (object);
+ SwfdecAsObjectClass *klass = SWFDEC_AS_OBJECT_GET_CLASS (with->object);
+
+ klass->delete (with->object, variable);
+}
+
+static gboolean
+swfdec_as_with_foreach (SwfdecAsObject *object, SwfdecAsVariableForeach func,
+ gpointer 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)
+{
+ Swfd...
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
...swfdec_gtk_widget_new
swfdec_gtk_widget_get_player
swfdec_gtk_widget_set_player
-swfdec_gtk_widget_get_current_scale
-swfdec_gtk_widget_get_scale
-swfdec_gtk_widget_set_scale
swfdec_gtk_widget_get_interactive
swfdec_gtk_widget_set_interactive
swfdec_gtk_widget_get_renderer
@@ -270,7 +267,6 @@ SwfdecAsVariableForeach
swfdec_as_object_foreach
swfdec_as_object_has_function
swfdec_as_object_call
-swfdec_as_object_run
swfdec_as_object_add_function
swfdec_as_object_get_debug
swfdec_as_object_resolve
diff-tree be6ee2e99eaa4a2a58cdf8f217048641fd1e9511 (from c45ceb30a4a9c438c89423e277d8684b2e66c65c)
Author: Benja...
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
...bug (object);
+}
+
diff --git a/libswfdec/swfdec_as_object.h b/libswfdec/swfdec_as_object.h
index 8a51021..73f28e2 100644
--- a/libswfdec/swfdec_as_object.h
+++ b/libswfdec/swfdec_as_object.h
@@ -87,6 +87,7 @@ struct _SwfdecAsObjectClass {
gboolean (* foreach) (SwfdecAsObject * object,
SwfdecAsVariableForeach func,
gpointer data);
+ char * (* debug) (SwfdecAsObject * object);
};
GType swfdec_as_object_get_type (void);
@@ -99,6 +100,7 @@ SwfdecAsObject *swfdec_as_object_create
void swfdec_as_object_set_constructor(SwfdecAsObject * object,
SwfdecAsObject * construct,
gb...
2007 Sep 03
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_number.c
..._set_constructor
void swfdec_as_function_init_context (SwfdecAsContext * context,
guint version);
+/* swfdec_as_context.c */
+void swfdec_as_context_run_init_script (SwfdecAsContext * context,
+ const guint8 * data,
+ gsize length);
+
/* swfdec_as_object.c */
typedef SwfdecAsVariableForeach SwfdecAsVariableForeachRemove;
typedef const char *(* SwfdecAsVariableForeachRename) (SwfdecAsObject *object,
diff --git a/libswfdec/swfdec_as_number.c b/libswfdec/swfdec_as_number.c
index 8a44733..f047165 100644
--- a/libswfdec/swfdec_as_number.c
+++ b/libswfdec/swfdec_as_number.c
@@ -72,10 +72,...
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
...le was deleted.
+ * @SWFDEC_AS_DELETE_NOT_DELETED: The variable was found but could not be
+ * deleted.
+ *
+ * This is the return value used by swfdec_as_object_delete_variable(). It
+ * describes the various outcomes of trying to delete a variable.
+ */
+
+/**
* SwfdecAsVariableForeach:
* @object: The object this function is run on
* @variable: garbage-collected name of the current variables
@@ -266,22 +278,22 @@ swfdec_as_object_free_property (gpointer
g_slice_free (SwfdecAsVariable, value);
}
-static gboolean
+static SwfdecAsDeleteReturn
swfdec_as_object_do_delete (S...
2007 Aug 23
0
23 commits - doc/.gitignore doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_keys.c libswfdec-gtk/swfdec_gtk_keys.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am
...c_as_object_get_variable
swfdec_as_object_get_variable_and_flags
swfdec_as_object_set_variable
+swfdec_as_object_set_variable_and_flags
swfdec_as_object_add_variable
swfdec_as_object_set_variable_flags
swfdec_as_object_unset_variable_flags
@@ -305,8 +308,10 @@ swfdec_as_object_delete_variable
SwfdecAsVariableForeach
swfdec_as_object_foreach
swfdec_as_object_has_function
+swfdec_as_object_run
swfdec_as_object_call
swfdec_as_object_add_function
+swfdec_as_object_add_constructor
swfdec_as_object_get_debug
swfdec_as_object_resolve
<SUBSECTION Standard>
@@ -392,3 +397,19 @@ SWFDEC_IS_AS_FRAME
SWFDEC_I...
2008 Jan 01
0
4 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h libswfdec/swfdec_sprite_movie_as.c test/trace
...* argv,
SwfdecAsValue * return_value);
+SwfdecAsValue * swfdec_as_object_peek_variable (SwfdecAsObject * object,
+ const char * name);
void swfdec_as_object_collect (SwfdecAsObject * object);
guint swfdec_as_object_foreach_remove (SwfdecAsObject * object,
SwfdecAsVariableForeach func,
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 194f858..b3c220a 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -862,6 +862,34 @@ swfdec_as_object_set_variable_and_flags (SwfdecAsObject *object,
}
/**
+ * swfdec_as_object_pee...
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
...ontext (SwfdecAsContext * context,
- guint version);
+void swfdec_as_function_init_context (SwfdecAsContext * context);
SwfdecAsFrame * swfdec_as_function_call_no_preload (SwfdecAsFunction * function,
SwfdecAsObject * thisp,
guint n_args,
@@ -58,13 +54,6 @@ typedef SwfdecAsVariableForeach SwfdecAsVariableForeachRemove;
typedef const char *(* SwfdecAsVariableForeachRename) (SwfdecAsObject *object,
const char *variable, SwfdecAsValue *value, guint flags, gpointer data);
-void swfdec_as_object_call_with_security
- (SwfdecAsObject * object,
- SwfdecSecurity * sec,
-...