Displaying 18 results from an estimated 18 matches for "swfdec_as_object_set_variable_flag".
Did you mean:
swfdec_as_object_set_variable_flags
2007 Aug 17
0
4 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h test/trace
...WFDEC_AS_VALUE_IS_OBJECT (&val)) {
proto = SWFDEC_AS_VALUE_GET_OBJECT (&val);
} else {
@@ -959,8 +961,15 @@ swfdec_as_object_set_constructor (Swfdec
}
SWFDEC_AS_VALUE_SET_OBJECT (&val, proto);
swfdec_as_object_set_variable (object, SWFDEC_AS_STR___proto__, &val);
+ swfdec_as_object_set_variable_flags (object, SWFDEC_AS_STR___proto__,
+ SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT);
SWFDEC_AS_VALUE_SET_OBJECT (&val, construct);
- swfdec_as_object_set_variable (object, scripted ? SWFDEC_AS_STR_constructor : SWFDEC_AS_STR___constructor__, &val);
+ swfdec_as_object_se...
2007 Aug 17
1
libswfdec/swfdec_as_object.c
libswfdec/swfdec_as_object.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
diff-tree af55385468269795f5f4d14cb8746dfd3d7be245 (from 616cfc32ab9acfa67d4d3c9c963ae76d29ac5835)
Author: Benjamin Otte <otte at gnome.org>
Date: Fri Aug 17 23:38:48 2007 +0200
fix docs
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index a5e4b08..8d4df41
2007 Aug 19
0
2 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie.c
...bject_set_constructor (SwfdecAsObject *object,
- SwfdecAsObject *construct, gboolean scripted)
+swfdec_as_object_set_constructor (SwfdecAsObject *object, SwfdecAsObject *construct)
{
SwfdecAsValue val;
SwfdecAsObject *proto;
@@ -964,12 +960,8 @@ swfdec_as_object_set_constructor (Swfdec
swfdec_as_object_set_variable_flags (object, SWFDEC_AS_STR___proto__,
SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT);
SWFDEC_AS_VALUE_SET_OBJECT (&val, construct);
- swfdec_as_object_set_variable (object,
- scripted ? SWFDEC_AS_STR_constructor : SWFDEC_AS_STR___constructor__,
- &val);
- swfde...
2007 Apr 12
0
Branch 'as' - 14 commits - libswfdec-gtk/swfdec_playback_alsa.c 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 libswfdec/swfdec_as_function.h
...min Otte <otte@gnome.org>
Date: Thu Apr 12 19:15:17 2007 +0200
That return_if_fail was wrong
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index a064716..ff9abbd 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -310,7 +310,7 @@ swfdec_as_object_set_variable_flags (Swf
SwfdecAsVariable *var;
g_return_if_fail (SWFDEC_IS_AS_OBJECT (object));
- g_return_if_fail ((flags & SWFDEC_AS_VARIABLE_NATIVE) != 0);
+ g_return_if_fail ((flags & SWFDEC_AS_VARIABLE_NATIVE) == 0);
var = swfdec_as_object_lookup (object, variable, FALSE);
g_return_if_...
2007 Dec 17
0
2 commits - doc/Makefile.am doc/swfdec-sections.txt NEWS
...DEC_AS_VALUE_SET_OBJECT
swfdec_as_value_to_primitive
swfdec_as_value_to_debug
swfdec_as_double_to_string
+swfdec_as_integer_to_string
swfdec_as_str_concat
<SUBSECTION Standard>
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 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
...ct_get_variable_a
SwfdecAsValue * value,
guint * flags,
SwfdecAsObject ** pobject);
-gboolean swfdec_as_object_delete_variable(SwfdecAsObject * object,
+SwfdecAsDeleteReturn
+ swfdec_as_object_delete_variable(SwfdecAsObject * object,
const char * variable);
void swfdec_as_object_set_variable_flags
(SwfdecAsObject * object,
diff --git a/libswfdec/swfdec_as_super.c b/libswfdec/swfdec_as_super.c
index aa75a0b..c66d93b 100644
--- a/libswfdec/swfdec_as_super.c
+++ b/libswfdec/swfdec_as_super.c
@@ -99,11 +99,11 @@ swfdec_as_super_set_flags (SwfdecAsObjec
/* if we have no variables...
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
...Array {
+ /*< private >*/
SwfdecAsObject object;
};
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...
2007 Jun 06
0
Branch 'as' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h 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
...oolean swfdec_as_object_get_variable_a
const char * variable,
SwfdecAsValue * value,
guint * flags);
-void swfdec_as_object_delete_variable(SwfdecAsObject * object,
+gboolean swfdec_as_object_delete_variable(SwfdecAsObject * object,
const char * variable);
void swfdec_as_object_set_variable_flags
(SwfdecAsObject * object,
diff --git a/libswfdec/swfdec_as_super.c b/libswfdec/swfdec_as_super.c
index 6f5902f..72dc8d2 100644
--- a/libswfdec/swfdec_as_super.c
+++ b/libswfdec/swfdec_as_super.c
@@ -94,10 +94,11 @@ swfdec_as_super_set_flags (SwfdecAsObjec
/* if we have no variables...
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
...3:20 2007 +0100
s/swfdec_as_object_clear_variables/swfdec_as_object_delete_all_variables/
diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.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
-...
2007 Aug 05
0
7 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec.h libswfdec/swfdec_key.h libswfdec/swfdec_marshal.list libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...: Do not allow changing the value with
* swfdec_as_object_set_variable().
- * @SWFDEC_AS_VARIABLE_NATIVE: The variable is implemented natively.
*
* These flags are used to describe various properties of a variable inside
* Swfdec. You can manually set them with swfdec_as_object_set_variable_flags().
diff-tree d9c4918cbf14898f7aeedd6111d5005da9f6c171 (from e6a06ac5bf092521506a046c1624e8f6f1a45248)
Author: Benjamin Otte <otte at gnome.org>
Date: Fri Aug 3 13:00:12 2007 +0200
make documentation key function aware
diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt
ind...
2007 Jul 26
0
5 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_player_as.c
...ons.txt b/doc/swfdec-sections.txt
index 9c9eb75..3048a95 100644
--- a/doc/swfdec-sections.txt
+++ b/doc/swfdec-sections.txt
@@ -266,6 +266,7 @@ SwfdecAsVariableFlag
swfdec_as_object_get_variable
swfdec_as_object_get_variable_and_flags
swfdec_as_object_set_variable
+swfdec_as_object_add_variable
swfdec_as_object_set_variable_flags
swfdec_as_object_unset_variable_flags
swfdec_as_object_delete_variable
diff-tree 79a46534730bb6e1d19ce2ba5f54a43acdb8a303 (from 272b75f217c4ed1ff99d597007caea376790857b)
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Jul 26 21:32:38 2007 +0200
add swfdec_as_object_add_variable(...
2007 Aug 24
0
9 commits - configure.ac doc/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_keys.h libswfdec/swfdec_pattern.c libswfdec/swfdec_player.c test/trace
...* and above.
+ * @SWFDEC_AS_VARIABLE_VERSION_8_UP: This symbol is only visible in version 8
+ * and above.
*
* These flags are used to describe various properties of a variable inside
* Swfdec. You can manually set them with swfdec_as_object_set_variable_flags().
@@ -193,7 +201,14 @@ swfdec_as_object_do_get (SwfdecAsObject
if (var == NULL)
return FALSE;
- if (var->flags & SWFDEC_AS_VARIABLE_FLASH6_UP && object->context->version < 6)
+ /* variable flag checks */
+ if (var->flags & SWFDEC_AS_VARIABLE_VERSION_6_...
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
...ct_get_variable_a
SwfdecAsValue * value,
guint * flags,
SwfdecAsObject ** pobject);
-gboolean swfdec_as_object_delete_variable(SwfdecAsObject * object,
+SwfdecAsDeleteReturn
+ swfdec_as_object_delete_variable(SwfdecAsObject * object,
const char * variable);
void swfdec_as_object_set_variable_flags
(SwfdecAsObject * object,
diff --git a/libswfdec/swfdec_as_super.c b/libswfdec/swfdec_as_super.c
index aa75a0b..c66d93b 100644
--- a/libswfdec/swfdec_as_super.c
+++ b/libswfdec/swfdec_as_super.c
@@ -99,11 +99,11 @@ swfdec_as_super_set_flags (SwfdecAsObjec
/* if we have no variables...
2007 Jul 12
0
15 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt INSTALL libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.h
...g
+swfdec_as_object_get_variable
+swfdec_as_object_get_variable_and_flags
+swfdec_as_object_has_function
+swfdec_as_object_init_context
+swfdec_as_object_new
+swfdec_as_object_new_empty
+swfdec_as_object_resolve
+swfdec_as_object_run
+swfdec_as_object_set_constructor
+swfdec_as_object_set_variable
+swfdec_as_object_set_variable_flags
+swfdec_as_object_unset_variable_flags
+<SUBSECTION Standard>
+swfdec_as_object_get_type
+SwfdecAsObjectClass
+SWFDEC_AS_OBJECT
+SWFDEC_AS_OBJECT_CLASS
+SWFDEC_AS_OBJECT_GET_CLASS
+SWFDEC_IS_AS_OBJECT
+SWFDEC_IS_AS_OBJECT_CLASS
+SWFDEC_TYPE_AS_OBJECT
+</SECTION>
diff-tree dc507c661ecef...
2007 Jul 07
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_super.h libswfdec/swfdec_as_with.c test/trace
..._and_flags
(SwfdecAsObject * object,
const char * variable,
SwfdecAsValue * value,
- guint * flags);
+ guint * flags,
+ SwfdecAsObject ** pobject);
gboolean swfdec_as_object_delete_variable(SwfdecAsObject * object,
const char * variable);
void swfdec_as_object_set_variable_flags
diff --git a/libswfdec/swfdec_as_with.c b/libswfdec/swfdec_as_with.c
index fa02b0d..9ef6c2e 100644
--- a/libswfdec/swfdec_as_with.c
+++ b/libswfdec/swfdec_as_with.c
@@ -44,7 +44,7 @@ swfdec_as_with_get (SwfdecAsObject *obje
{
SwfdecAsWith *with = SWFDEC_AS_WITH (object);
- return swfdec_as_...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...he given object.
+ **/
+void
+swfdec_as_object_clear_variables (SwfdecAsObject *object)
+{
+ g_return_if_fail (SWFDEC_IS_AS_OBJECT (object));
+
+ g_hash_table_foreach (object->properties, swfdec_as_object_free_property, object);
+ g_hash_table_remove_all (object->properties);
+}
+
+/**
* swfdec_as_object_set_variable_flags:
* @object: a #SwfdecAsObject
* @variable: the variable to modify
diff --git a/libswfdec/swfdec_as_object.h b/libswfdec/swfdec_as_object.h
index 8fec190..8952b72 100644
--- a/libswfdec/swfdec_as_object.h
+++ b/libswfdec/swfdec_as_object.h
@@ -146,6 +146,7 @@ gboolean swfdec_as_object_get_varia...
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
...ode
<SUBSECTION Standard>
swfdec_gtk_widget_get_type
SwfdecGtkWidgetClass
@@ -298,6 +300,7 @@ SwfdecAsVariableFlag
swfdec_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_ob...
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
.../* deleting it later on is easier than duplicating swfdec_as_object_add_function() */
- swfdec_as_object_unset_variable_flags (context->global, SWFDEC_AS_STR_Function, SWFDEC_AS_VARIABLE_PERMANENT);
- swfdec_as_object_delete_variable (context->global, SWFDEC_AS_STR_Function);
- }
+ swfdec_as_object_set_variable_flags (context->global, SWFDEC_AS_STR_Function, SWFDEC_AS_VARIABLE_VERSION_6_UP);
context->Function = function;
SWFDEC_AS_VALUE_SET_OBJECT (&val, function);
swfdec_as_object_set_variable_and_flags (function, SWFDEC_AS_STR_constructor,
@@ -283,21 +277,3 @@ swfdec_as_function_init_conte...