Displaying 1 result from an estimated 1 matches for "swfdecasvariablegetter".
2007 Apr 16
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...+ * the value is not managed by the script engine, but the @set and @get
+ * function are used to access the value. The variable will not be enumerated
+ * and cannot be deleted.
+ **/
+void
+swfdec_as_object_add_variable (SwfdecAsObject *object, const char *name,
+ SwfdecAsVariableSetter set, SwfdecAsVariableGetter get)
+{
+ SwfdecAsVariable *var;
+ SwfdecAsValue variable;
+
+ g_return_if_fail (SWFDEC_IS_AS_OBJECT (object));
+ g_return_if_fail (name != NULL);
+ g_return_if_fail (get != NULL);
+
+ name = swfdec_as_context_get_string (object->context, name);
+ SWFDEC_AS_VALUE_SET_STRING (&variable...