Displaying 2 results from an estimated 2 matches for "swfdecasframeblockfunc".
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
...a/libswfdec/swfdec_as_frame.c
+++ b/libswfdec/swfdec_as_frame.c
@@ -203,16 +203,28 @@ swfdec_as_stack_iterator_next (SwfdecAsStackIterator *iter)
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 */
+ 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;
+/**
+...
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
...ext (SwfdecAsS
return iter->current;
}
+/*** BLOCK HANDLING ***/
-G_DEFINE_TYPE (SwfdecAsFrame, swfdec_as_frame, SWFDEC_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, Swfd...