[Swfdec] 3 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h player/swfdec_debug_stack.c

Benjamin Otte company at kemper.freedesktop.org
Fri Jul 13 09:27:19 PDT 2007


 libswfdec/swfdec_as_frame.c |    4 ++--
 libswfdec/swfdec_as_frame.h |    1 +
 player/swfdec_debug_stack.c |    6 ++----
 3 files changed, 5 insertions(+), 6 deletions(-)

New commits:
diff-tree 6748f0ab9c6c1c49667e186bce8dc618cab95ad1 (from 4c337bddaff279da2992532ab99a1f6a2a9d5d1a)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Jul 13 18:27:28 2007 +0200

    This thing can completely work with public headers now

diff --git a/player/swfdec_debug_stack.c b/player/swfdec_debug_stack.c
index aee8f21..fa70b56 100644
--- a/player/swfdec_debug_stack.c
+++ b/player/swfdec_debug_stack.c
@@ -21,9 +21,7 @@
 #include "config.h"
 #endif
 
-#include <libswfdec/swfdec_as_frame.h>
-#include <libswfdec/swfdec_as_types.h>
-#include <libswfdec/swfdec_as_stack.h>
+#include <libswfdec/swfdec.h>
 #include "swfdec_debug_stack.h"
 
 G_DEFINE_TYPE (SwfdecDebugStack, swfdec_debug_stack, GTK_TYPE_TREE_VIEW)
@@ -69,7 +67,7 @@ swfdec_debug_stack_set_model (SwfdecDebu
   char *s;
 
   context= SWFDEC_AS_CONTEXT (debug->manager->player);
-  frame = context->frame;
+  frame = swfdec_as_context_get_frame (context);
   if (frame) {
     SwfdecAsStackIterator siter;
     SwfdecAsValue *val;
diff-tree 4c337bddaff279da2992532ab99a1f6a2a9d5d1a (from 3843036f0aa8a44d19ae43d8ee268dbe6fc851a1)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Jul 13 18:27:13 2007 +0200

    include swfdec_as_object.h so we know what a GType is

diff --git a/libswfdec/swfdec_as_frame.h b/libswfdec/swfdec_as_frame.h
index b5d632e..44caf87 100644
--- a/libswfdec/swfdec_as_frame.h
+++ b/libswfdec/swfdec_as_frame.h
@@ -20,6 +20,7 @@
 #ifndef _SWFDEC_AS_FRAME_H_
 #define _SWFDEC_AS_FRAME_H_
 
+#include <libswfdec/swfdec_as_object.h>
 #include <libswfdec/swfdec_as_types.h>
 
 G_BEGIN_DECLS
diff-tree 3843036f0aa8a44d19ae43d8ee268dbe6fc851a1 (from a3230a81dec4ce19e8113794bf71dcbf2e474c4b)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Jul 13 18:26:57 2007 +0200

    fix docs

diff --git a/libswfdec/swfdec_as_frame.c b/libswfdec/swfdec_as_frame.c
index ede2858..2fdf24f 100644
--- a/libswfdec/swfdec_as_frame.c
+++ b/libswfdec/swfdec_as_frame.c
@@ -95,8 +95,8 @@ swfdec_as_stack_iterator_init_arguments 
  * Initializes @iter to walk the stack of @frame. The first value on the stack
  * will alread be returned. This makes it possible to write a simple loop to 
  * print the whole stack:
- * |[for (value = swfdec_as_stack_iterator_init (&iter, frame); value != NULL;
- *     value = swfdec_as_stack_iterator_next (&iter)) {
+ * |[for (value = swfdec_as_stack_iterator_init (&amp;iter, frame); value != NULL;
+ *     value = swfdec_as_stack_iterator_next (&amp;iter)) {
  *   char *s = swfdec_as_value_to_debug (value);
  *   g_print ("%s\n", s);
  *   g_free (s);


More information about the Swfdec mailing list