Displaying 20 results from an estimated 22 matches for "gdestroynotify".
2007 Oct 28
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_load_object.c
...* end; /* end of block (hitting this address will exit the block) */
- SwfdecAsFrameBlockFunc func; /* function to call when block is exited */
+ SwfdecAsFrameBlockFunc func; /* function to call when block is exited (or frame is destroyed) */
gpointer data; /* data to pass to function */
- GDestroyNotify destroy;/* destroy function called for data */
} SwfdecAsFrameBlock;
+/**
+ * swfdec_as_frame_push_block:
+ * @frame: a #SwfdecAsFrame
+ * @start: start of block
+ * @end: byte after end of block
+ * @func: function to call when block gets exited
+ * @data: data to pass to @func
+ *
+ * Registe...
2007 Mar 05
0
11 commits - configure.ac libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_swf_decoder.c
...character_data);
+ root->character_data = NULL;
+ }
G_OBJECT_CLASS (swfdec_root_movie_parent_class)->dispose (object);
}
@@ -209,3 +214,56 @@ swfdec_root_movie_load (SwfdecRootMovie
swfdec_player_launch (root->player, url, target);
}
+typedef struct {
+ gpointer data;
+ GDestroyNotify free;
+} CharacterData;
+
+static void
+character_data_free (gpointer datap)
+{
+ CharacterData *data = datap;
+
+ if (data->free)
+ data->free (data->data);
+
+ g_free (data);
+}
+
+void
+swfdec_root_movie_set_character_data (SwfdecRootMovie *movie,
+ SwfdecCharacter *character,...
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
...character_data);
- root->character_data = NULL;
- }
G_OBJECT_CLASS (swfdec_root_movie_parent_class)->dispose (object);
}
@@ -214,60 +210,6 @@ swfdec_root_movie_load (SwfdecRootMovie
swfdec_player_launch (root->player, url, target);
}
-typedef struct {
- gpointer data;
- GDestroyNotify free;
-} CharacterData;
-
-static void
-character_data_free (gpointer datap)
-{
- CharacterData *data = datap;
-
- if (data->free)
- data->free (data->data);
-
- g_free (data);
-}
-
-void
-swfdec_root_movie_set_character_data (SwfdecRootMovie *movie,
- SwfdecCharacter *character,...
2007 Nov 01
0
3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...er);
+ g_slist_free (player->resource_requests);
+ player->resource_requests = NULL;
+}
+
+void
+swfdec_player_request_resource (SwfdecPlayer *player, SwfdecSecurity *security,
+ const char *url, SwfdecLoaderRequest req, SwfdecBuffer *buffer,
+ SwfdecResourceFunc func, gpointer data, GDestroyNotify destroy)
+{
+ SwfdecResourceRequest *request;
+
+ g_return_if_fail (SWFDEC_IS_PLAYER (player));
+ g_return_if_fail (SWFDEC_IS_SECURITY (security));
+ g_return_if_fail (url != NULL);
+ g_return_if_fail (func != NULL);
+
+ request = g_slice_new0 (SwfdecResourceRequest);
+ request->security...
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
...DEC_TYPE_AS_SCOPE)
+typedef struct {
+ const guint8 * start; /* start of block */
+ const guint8 * end; /* end of block (hitting this address will exit the block) */
+ SwfdecAsFrameBlockFunc func; /* function to call when block is exited */
+ gpointer data; /* data to pass to function */
+ GDestroyNotify destroy;/* destroy function called for data */
+} SwfdecAsFrameBlock;
+
+void
+swfdec_as_frame_push_block (SwfdecAsFrame *frame, const guint8 *start,
+ const guint8 *end, SwfdecAsFrameBlockFunc func, gpointer data, GDestroyNotify destroy)
+{
+ SwfdecAsFrameBlock block = { start, end, func, da...
2007 Oct 28
1
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_codec_gst.c test/trace
...ecAsFrame
diff --git a/libswfdec/swfdec_as_frame_internal.h b/libswfdec/swfdec_as_frame_internal.h
index b09fb9c..1e2075d 100644
--- a/libswfdec/swfdec_as_frame_internal.h
+++ b/libswfdec/swfdec_as_frame_internal.h
@@ -105,6 +105,7 @@ void swfdec_as_frame_push_block (SwfdecAsFrame * frame,
GDestroyNotify destroy);
void swfdec_as_frame_pop_block (SwfdecAsFrame * frame);
void swfdec_as_frame_check_block (SwfdecAsFrame * frame);
+void swfdec_as_frame_handle_exception(SwfdecAsFrame * frame);
G_END_DECLS
commit 2068cff060c579a7b11aaffd36f7f1613a828934
Author: Benjamin Otte <otte at gnome.o...
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
...value; /* value to pass to fscommand */
+
+ /* UNLOAD */
+ char * target; /* the target to unload */
};
/* public api for swfdec */
@@ -63,14 +66,16 @@ void swfdec_player_request_resource (SwfdecPlayer * player,
SwfdecResourceFunc func,
gpointer data,
GDestroyNotify destroy);
-gboolean swfdec_player_request_fscommand (SwfdecPlayer * player,
- const char * command,
- const char * value);
SwfdecLoader * swfdec_player_request_resource_now (SwfdecPlayer * player,
SwfdecSecurity * security,
const char * url,
SwfdecLo...
2007 Sep 10
0
3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...if (!SWFDEC_IS_AS_FUNCTION (SWFDEC_AS_VALUE_GET_OBJECT (&argv[1])))
return;
- var->watch = SWFDEC_AS_FUNCTION (SWFDEC_AS_VALUE_GET_OBJECT (&argv[1]));
+ if (object->watches == NULL) {
+ object->watches = g_hash_table_new_full (g_direct_hash, g_direct_equal,
+ NULL, (GDestroyNotify) swfdec_as_watch_unref);
+ watch = NULL;
+ } else {
+ watch = g_hash_table_lookup (object->watches, name);
+ }
+ if (watch == NULL) {
+ watch = swfdec_as_watch_new (SWFDEC_AS_FUNCTION (SWFDEC_AS_VALUE_GET_OBJECT (&argv[1])));
+ if (watch == NULL)
+ return;
+ g_hash_tab...
2007 Nov 08
0
11 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c libswfdec/swfdec_resource_request.c
...ading or NULL for fscommand */
char * url; /* URL we're gonna load */
SwfdecLoaderRequest request; /* how are we goona load this URL? */
@@ -51,6 +51,9 @@ void swfdec_player_request_resource (SwfdecPlayer * player,
SwfdecResourceFunc func,
gpointer data,
GDestroyNotify destroy);
+gboolean swfdec_player_request_fscommand (SwfdecPlayer * player,
+ const char * command,
+ const char * value);
SwfdecLoader * swfdec_player_request_resource_now (SwfdecPlayer * player,
SwfdecSecurity * security,
const char * url,
commit e543f15352...
2007 Nov 10
0
10 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie_clip_loader.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c
...9,20 +212,20 @@ swfdec_player_request_fscommand (SwfdecPlayer *player, const char *command,
}
void
-swfdec_player_request_unload (SwfdecPlayer *player, const char *target)
+swfdec_player_request_unload (SwfdecPlayer *player, const char *target,
+ SwfdecResourceUnloadFunc func, gpointer data, GDestroyNotify destroy)
{
SwfdecResourceRequest *request;
- SwfdecMovie *movie;
g_return_if_fail (SWFDEC_IS_PLAYER (player));
g_return_if_fail (target != NULL);
- movie = swfdec_player_get_movie_from_string (player, target);
- if (!SWFDEC_IS_SPRITE_MOVIE (movie))
- return;
request = g_slice...
2007 Feb 13
0
9 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c
...gpointer (* new) (void);
gboolean (* from_string) (const char *s, gpointer *);
char * (* to_string) (gconstpointer value);
void (* free) (gpointer value);
} converters[SWFEDIT_N_TOKENS] = {
- { NULL, NULL, g_object_unref },
- { swfedit_binary_from_string, swfedit_binary_to_string, (GDestroyNotify) swfdec_buffer_unref },
- { swfedit_uint8_from_string, swfedit_to_string_unsigned, NULL },
- { swfedit_uint16_from_string, swfedit_to_string_unsigned, NULL },
- { swfedit_uint32_from_string, swfedit_to_string_unsigned, NULL },
- { swfedit_rect_from_string, swfedit_rect_to_string, g_free },
- {...
2007 Jan 22
0
Branch 'interpreter' - 3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_swf_decoder.c test/Makefile.am test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_tag.c test/swfedit_tag.h test/swfedit_token.c test/swfedit_token.h
...quot;, GPOINTER_TO_UINT (value));
+}
+
+struct {
+ gboolean (* read) (const char *s, gpointer *);
+ char * (* write) (gconstpointer value);
+ void (* free) (gpointer value);
+} converters[SWFEDIT_N_TOKENS] = {
+ { NULL, NULL, g_object_unref },
+ { swfedit_binary_read, swfedit_binary_write, (GDestroyNotify) swfdec_buffer_unref },
+ { swfedit_uint8_read, swfedit_write_unsigned, NULL },
+ { swfedit_uint16_read, swfedit_write_unsigned, NULL },
+ { swfedit_uint32_read, swfedit_write_unsigned, NULL },
+};
+
+/*** STRUCTS ***/
+
+typedef struct {
+ char * name;
+ SwfeditTokenType type;
+ gpointer v...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...ar * (* write) (gconstpointer value);
+ gboolean (* from_string) (const char *s, gpointer *);
+ char * (* to_string) (gconstpointer value);
void (* free) (gpointer value);
} converters[SWFEDIT_N_TOKENS] = {
{ NULL, NULL, g_object_unref },
- { swfedit_binary_read, swfedit_binary_write, (GDestroyNotify) swfdec_buffer_unref },
- { swfedit_uint8_read, swfedit_write_unsigned, NULL },
- { swfedit_uint16_read, swfedit_write_unsigned, NULL },
- { swfedit_uint32_read, swfedit_write_unsigned, NULL },
+ { swfedit_binary_from_string, swfedit_binary_to_string, (GDestroyNotify) swfdec_buffer_unref },
+...
2017 Sep 22
3
gtk3 update causing havoc
On my lab systems, the automatic updates were failing because of the
problems with ipod libraries from EPEL being in the way. It turns out
that was a good thing, because when I "fixed" it, a massive set of
packages was updated, including the new gtk3.
These packages are the ones causing problems, I think.
gtk3-3.22.10-4.el7.x86_64
gtk3-devel-3.22.10-4.el7.x86_64
In the release notes,
2007 Jun 18
0
Branch 'as' - 8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_sprite_movie.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h
...2,6 +393,8 @@ swfdec_swf_decoder_init (SwfdecSwfDecode
s->characters = g_hash_table_new_full (g_direct_hash, g_direct_equal,
NULL, g_object_unref);
s->input_queue = swfdec_buffer_queue_new ();
+ s->scripts = g_hash_table_new_full (g_direct_hash, g_direct_equal,
+ NULL, (GDestroyNotify) swfdec_script_unref);
}
gpointer
@@ -444,7 +447,7 @@ swfdec_swf_decoder_add_root_action (Swfd
{
SwfdecSprite *sprite;
GArray *array;
- SwfdecSpriteAction action;
+ SwfdecRootAction action;
g_return_if_fail (SWFDEC_IS_SWF_DECODER (s));
sprite = s->main_sprite;
@@ -456,7 +459...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...ax size of cache */
+ guint usage; /* current size of cache */
GQueue * queue; /* queue of loaded SwfdecCacheHandle, sorted by most recently used */
};
struct _SwfdecCacheHandle {
- unsigned int size; /* size of this item */
+ guint size; /* size of this item */
GDestroyNotify unload; /* function called when unloading this handle */
};
-SwfdecCache * swfdec_cache_new (unsigned int max_size);
+SwfdecCache * swfdec_cache_new (guint max_size);
void swfdec_cache_ref (SwfdecCache * cache);
void swfdec_cache_unref (SwfdecCache * cache);
-unsigned int swfdec_c...
2007 Feb 06
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c libswfdec/swfdec_sprite.c test/dump.c
...);
+}
+
+struct {
+ gboolean (* from_string) (const char *s, gpointer *);
+ char * (* to_string) (gconstpointer value);
+ void (* free) (gpointer value);
+} converters[SWFEDIT_N_TOKENS] = {
+ { NULL, NULL, g_object_unref },
+ { swfedit_binary_from_string, swfedit_binary_to_string, (GDestroyNotify) swfdec_buffer_unref },
+ { swfedit_uint8_from_string, swfedit_to_string_unsigned, NULL },
+ { swfedit_uint16_from_string, swfedit_to_string_unsigned, NULL },
+ { swfedit_uint32_from_string, swfedit_to_string_unsigned, NULL },
+ { swfedit_rect_from_string, swfedit_rect_to_string, g_free },...
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
...02110-1301 USA
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <string.h>
+#include "swfdec_function_list.h"
+
+typedef struct _SwfdecFunctionListEntry SwfdecFunctionListEntry;
+struct _SwfdecFunctionListEntry {
+ GFunc func;
+ gpointer data;
+ GDestroyNotify destroy;
+};
+
+void
+swfdec_function_list_clear (SwfdecFunctionList *list)
+{
+ GList *walk;
+
+ g_return_if_fail (list != NULL);
+
+ for (walk = list->list; walk; walk = walk->next) {
+ SwfdecFunctionListEntry *entry = walk->data;
+ if (entry->destroy)
+ entry->destro...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js 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_function.c
...ax size of cache */
+ guint usage; /* current size of cache */
GQueue * queue; /* queue of loaded SwfdecCacheHandle, sorted by most recently used */
};
struct _SwfdecCacheHandle {
- unsigned int size; /* size of this item */
+ guint size; /* size of this item */
GDestroyNotify unload; /* function called when unloading this handle */
};
-SwfdecCache * swfdec_cache_new (unsigned int max_size);
+SwfdecCache * swfdec_cache_new (guint max_size);
void swfdec_cache_ref (SwfdecCache * cache);
void swfdec_cache_unref (SwfdecCache * cache);
-unsigned int swfdec_c...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...);
+}
+
+struct {
+ gboolean (* from_string) (const char *s, gpointer *);
+ char * (* to_string) (gconstpointer value);
+ void (* free) (gpointer value);
+} converters[SWFEDIT_N_TOKENS] = {
+ { NULL, NULL, g_object_unref },
+ { swfedit_binary_from_string, swfedit_binary_to_string, (GDestroyNotify) swfdec_buffer_unref },
+ { swfedit_uint8_from_string, swfedit_to_string_unsigned, NULL },
+ { swfedit_uint16_from_string, swfedit_to_string_unsigned, NULL },
+ { swfedit_uint32_from_string, swfedit_to_string_unsigned, NULL },
+ { swfedit_rect_from_string, swfedit_rect_to_string, g_free },...