Displaying 7 results from an estimated 7 matches for "swfdecrootexportdata".
2007 Jun 06
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_root_sprite.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h libswfdec/swfdec_tag.c
...gt;n_frames; i++) {
- GArray *array = root->root_actions[i];
- if (array) {
- for (j = 0; j < array->len; j++) {
- SwfdecSpriteAction *action = &g_array_index (array, SwfdecSpriteAction, j);
-
- switch (action->type) {
- case SWFDEC_ROOT_ACTION_EXPORT:
- {
- SwfdecRootExportData *data = action->data;
- g_free (data->name);
- g_object_unref (data->character);
- g_free (data);
- }
- break;
- case SWFDEC_ROOT_ACTION_INIT_SCRIPT:
- swfdec_script_unref (action->data);
- break;
- default:
- g_assert_not_reached ();
- bre...
2007 Mar 09
0
libswfdec/swfdec_root_sprite.c libswfdec/swfdec_root_sprite.h
...gt;n_frames; i++) {
+ GArray *array = root->root_actions[i];
+ if (array) {
+ for (j = 0; j < array->len; j++) {
+ SwfdecSpriteAction *action = &g_array_index (array, SwfdecSpriteAction, j);
+
+ switch (action->type) {
+ case SWFDEC_ROOT_ACTION_EXPORT:
+ {
+ SwfdecRootExportData *data = action->data;
+ g_free (data->name);
+ g_object_unref (data->character);
+ g_free (data);
+ }
+ break;
+ case SWFDEC_ROOT_ACTION_INIT_SCRIPT:
+ swfdec_script_unref (action->data);
+ break;
+ default:
+ g_assert_not_reached ();
+ bre...
2007 Apr 20
0
8 commits - libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_root_sprite.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c NEWS test/parse.c
...rt_assets (SwfdecSwfDecoder
if (object == NULL) {
SWFDEC_ERROR ("cannot export id %u as %s, id wasn't found", id, name);
g_free (name);
+ } else if (name == NULL) {
+ SWFDEC_ERROR ("cannot export id %u, no name was given", id);
} else {
SwfdecRootExportData *data = g_new (SwfdecRootExportData, 1);
data->name = name;
diff-tree c6976c653468bdd720f0d765781247e7625255f6 (from 15ed4a69b4ffc265fe103ba79a0b60af7e42a9fa)
Author: Benjamin Otte <otte@gnome.org>
Date: Fri Apr 20 10:03:09 2007 +0200
update NEWS
diff --git a/NEWS b/NEWS
ind...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c
...y_index (array, SwfdecRootAction, i);
- switch (action->type) {
- case SWFDEC_ROOT_ACTION_INIT_SCRIPT:
- swfdec_as_object_run_with_security (SWFDEC_AS_OBJECT (instance->movie),
- action->data, SWFDEC_SECURITY (instance));
- break;
- case SWFDEC_ROOT_ACTION_EXPORT:
- {
- SwfdecRootExportData *data = action->data;
- swfdec_resource_add_export (instance, data->character, data->name);
- }
- break;
- default:
- g_assert_not_reached ();
- }
- }
-}
-
diff --git a/libswfdec/swfdec_resource.h b/libswfdec/swfdec_resource.h
index c5fd4e2..1a38ea0 100644
--- a/libswfdec/swfdec...
2007 Jun 15
0
Branch 'as' - 5 commits - libswfdec/swfdec_as_native_function.c libswfdec/swfdec_edittext.c libswfdec/swfdec_edittext.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_morphshape.h
...ec/swfdec_swf_decoder.h
@@ -34,7 +34,7 @@ G_BEGIN_DECLS
//typedef struct _SwfdecSwfDecoder SwfdecSwfDecoder;
typedef struct _SwfdecSwfDecoderClass SwfdecSwfDecoderClass;
-typedef int SwfdecTagFunc (SwfdecSwfDecoder *);
+typedef int (* SwfdecTagFunc) (SwfdecSwfDecoder *, guint);
typedef struct _SwfdecRootExportData SwfdecRootExportData;
typedef enum {
@@ -98,7 +98,7 @@ void swfdec_swf_decoder_add_root_action
SwfdecRootActionType type,
gpointer data);
-SwfdecTagFunc *swfdec_swf_decoder_get_tag_func (int tag);
+SwfdecTagFunc swfdec_swf_decoder_get_tag_func (int tag);
const char *swfdec...
2007 Mar 07
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...vie_init (SwfdecRootMovie *root)
{
+ root->exports = g_hash_table_new (g_str_hash, g_str_equal);
}
void
@@ -240,9 +242,22 @@ swfdec_root_movie_perform_root_actions (
swfdec_script_execute (action->data, SWFDEC_SCRIPTABLE (root));
break;
case SWFDEC_ROOT_ACTION_EXPORT:
+ {
+ SwfdecRootExportData *data = action->data;
+ g_hash_table_insert (root->exports, data->name, data->character);
+ }
break;
default:
g_assert_not_reached ();
}
}
}
+
+gpointer
+swfdec_root_movie_get_export (SwfdecRootMovie *root, const char *name)
+{
+ g_return_val_if_fail (SWFDEC_IS_RO...
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
...++) {
+ SwfdecRootAction *action = &g_array_index (array, SwfdecRootAction, i);
+ switch (action->type) {
+ case SWFDEC_ROOT_ACTION_INIT_SCRIPT:
+ swfdec_as_object_run (SWFDEC_AS_OBJECT (instance->movie), action->data);
+ break;
+ case SWFDEC_ROOT_ACTION_EXPORT:
+ {
+ SwfdecRootExportData *data = action->data;
+ swfdec_resource_add_export (instance, data->character, data->name);
+ }
+ break;
+ default:
+ g_assert_not_reached ();
+ }
+ }
+}
+
diff --git a/libswfdec/swfdec_resource.h b/libswfdec/swfdec_resource.h
new file mode 100644
index 0000000..2c456a0
--- /dev...