[Swfdec] 9 commits - configure.ac doc/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_keys.h libswfdec/swfdec_pattern.c libswfdec/swfdec_player.c test/trace

Benjamin Otte company at kemper.freedesktop.org
Fri Aug 24 04:34:00 PDT 2007


 configure.ac                                 |    2 
 doc/Makefile.am                              |    3 
 libswfdec/swfdec_as_object.c                 |   17 ++++
 libswfdec/swfdec_as_object.h                 |    5 +
 libswfdec/swfdec_keys.h                      |    1 
 libswfdec/swfdec_pattern.c                   |    5 +
 libswfdec/swfdec_player.c                    |  100 ++++++++++++++++++++++++++-
 test/trace/ASSetPropFlags-ignore-5.swf       |binary
 test/trace/ASSetPropFlags-ignore-5.swf.trace |    5 +
 test/trace/ASSetPropFlags-ignore-6.swf       |binary
 test/trace/ASSetPropFlags-ignore-6.swf.trace |    5 +
 test/trace/ASSetPropFlags-ignore-7.swf       |binary
 test/trace/ASSetPropFlags-ignore-7.swf.trace |    5 +
 test/trace/ASSetPropFlags-ignore-8.swf       |binary
 test/trace/ASSetPropFlags-ignore-8.swf.trace |    5 +
 test/trace/ASSetPropFlags-ignore.as          |   23 ++++++
 test/trace/Makefile.am                       |    9 ++
 17 files changed, 180 insertions(+), 5 deletions(-)

New commits:
diff-tree 728258ea82c104389bddb4730402eeac931e3a14 (from parents)
Merge: c840ad71199d58bf1bde0a4c40430dc08a0832c5 288a73ed26a3f0482519dac1f9db3bd691526386
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Aug 24 13:33:37 2007 +0200

    Merge branch 'master' of ssh://company@git.freedesktop.org/git/swfdec/swfdec

diff-tree c840ad71199d58bf1bde0a4c40430dc08a0832c5 (from 1c499d992dd9ae8420d2e51e42203cfac5376248)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Aug 24 13:32:23 2007 +0200

    add test for the new magic version flags to ASSetPropFlags

diff --git a/test/trace/ASSetPropFlags-ignore-5.swf b/test/trace/ASSetPropFlags-ignore-5.swf
new file mode 100644
index 0000000..a82783f
Binary files /dev/null and b/test/trace/ASSetPropFlags-ignore-5.swf differ
diff --git a/test/trace/ASSetPropFlags-ignore-5.swf.trace b/test/trace/ASSetPropFlags-ignore-5.swf.trace
new file mode 100644
index 0000000..420f26b
--- /dev/null
+++ b/test/trace/ASSetPropFlags-ignore-5.swf.trace
@@ -0,0 +1,5 @@
+Check how referencing variables with the 4 magic version flags works
+42
+42
+21
+42
diff --git a/test/trace/ASSetPropFlags-ignore-6.swf b/test/trace/ASSetPropFlags-ignore-6.swf
new file mode 100644
index 0000000..af910b8
Binary files /dev/null and b/test/trace/ASSetPropFlags-ignore-6.swf differ
diff --git a/test/trace/ASSetPropFlags-ignore-6.swf.trace b/test/trace/ASSetPropFlags-ignore-6.swf.trace
new file mode 100644
index 0000000..6c328ea
--- /dev/null
+++ b/test/trace/ASSetPropFlags-ignore-6.swf.trace
@@ -0,0 +1,5 @@
+Check how referencing variables with the 4 magic version flags works
+42
+42
+42
+21
diff --git a/test/trace/ASSetPropFlags-ignore-7.swf b/test/trace/ASSetPropFlags-ignore-7.swf
new file mode 100644
index 0000000..9d92c5f
Binary files /dev/null and b/test/trace/ASSetPropFlags-ignore-7.swf differ
diff --git a/test/trace/ASSetPropFlags-ignore-7.swf.trace b/test/trace/ASSetPropFlags-ignore-7.swf.trace
new file mode 100644
index 0000000..26b5a65
--- /dev/null
+++ b/test/trace/ASSetPropFlags-ignore-7.swf.trace
@@ -0,0 +1,5 @@
+Check how referencing variables with the 4 magic version flags works
+42
+21
+21
+21
diff --git a/test/trace/ASSetPropFlags-ignore-8.swf b/test/trace/ASSetPropFlags-ignore-8.swf
new file mode 100644
index 0000000..5304c9e
Binary files /dev/null and b/test/trace/ASSetPropFlags-ignore-8.swf differ
diff --git a/test/trace/ASSetPropFlags-ignore-8.swf.trace b/test/trace/ASSetPropFlags-ignore-8.swf.trace
new file mode 100644
index 0000000..02117ac
--- /dev/null
+++ b/test/trace/ASSetPropFlags-ignore-8.swf.trace
@@ -0,0 +1,5 @@
+Check how referencing variables with the 4 magic version flags works
+21
+21
+21
+21
diff --git a/test/trace/ASSetPropFlags-ignore.as b/test/trace/ASSetPropFlags-ignore.as
new file mode 100644
index 0000000..0c69fd4
--- /dev/null
+++ b/test/trace/ASSetPropFlags-ignore.as
@@ -0,0 +1,23 @@
+// makeswf -v 7 -s 200x150 -r 1 -o ASSetPropFlags-ignore.swf ASSetPropFlags-ignore.as
+
+trace ("Check how referencing variables with the 4 magic version flags works");
+o = {};
+o.__proto__ = {};
+o.__proto__.a = 42;
+o.__proto__.b = 42;
+o.__proto__.c = 42;
+o.__proto__.d = 42;
+o.a = 21;
+o.b = 21;
+o.c = 21;
+o.d = 21;
+ASSetPropFlags (o, "a", 4096);
+ASSetPropFlags (o, "b", 1024);
+ASSetPropFlags (o, "c", 256);
+ASSetPropFlags (o, "d", 128);
+trace (o.a);
+trace (o.b);
+trace (o.c);
+trace (o.d);
+
+loadMovie ("FSCommand:quit", "");
diff --git a/test/trace/Makefile.am b/test/trace/Makefile.am
index 8bc9273..231d8df 100644
--- a/test/trace/Makefile.am
+++ b/test/trace/Makefile.am
@@ -153,6 +153,15 @@ EXTRA_DIST = \
 	asnative-create-7.swf.trace \
 	asnative-create-8.swf \
 	asnative-create-8.swf.trace \
+	ASSetPropFlags-ignore.as \
+	ASSetPropFlags-ignore-5.swf \
+	ASSetPropFlags-ignore-5.swf.trace \
+	ASSetPropFlags-ignore-6.swf \
+	ASSetPropFlags-ignore-6.swf.trace \
+	ASSetPropFlags-ignore-7.swf \
+	ASSetPropFlags-ignore-7.swf.trace \
+	ASSetPropFlags-ignore-8.swf \
+	ASSetPropFlags-ignore-8.swf.trace \
 	bitwise.as \
 	bitwise-5.swf \
 	bitwise-5.swf.trace \
diff-tree 1c499d992dd9ae8420d2e51e42203cfac5376248 (from a8e02ebed1c08836990dd1e286dacbf5c19833af)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Aug 24 12:46:47 2007 +0200

    up libversion

diff --git a/configure.ac b/configure.ac
index b1e81b0..f01272d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,7 @@ else
 fi
 AC_DEFINE_UNQUOTED(SWFDEC_LEVEL_DEFAULT, $DEFAULT_DEBUG_LEVEL, [Default debug level used])
 
-SWFDEC_LIBVERSION="1:0:0"
+SWFDEC_LIBVERSION="2:0:0"
 AC_SUBST(SWFDEC_LIBVERSION)
 AM_PROG_LIBTOOL
 
diff-tree a8e02ebed1c08836990dd1e286dacbf5c19833af (from d6c0c77e1140c6524346fea1d9ff7374cce55d7d)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Aug 24 12:46:25 2007 +0200

    comment why we use the NONE extend pattern

diff --git a/libswfdec/swfdec_pattern.c b/libswfdec/swfdec_pattern.c
index 82963bc..ae74a93 100644
--- a/libswfdec/swfdec_pattern.c
+++ b/libswfdec/swfdec_pattern.c
@@ -335,7 +335,12 @@ swfdec_pattern_do_parse (SwfdecSwfDecode
       if (paint_style_type == 0x40 || paint_style_type == 0x42) {
 	SWFDEC_IMAGE_PATTERN (pattern)->extend = CAIRO_EXTEND_REPEAT;
       } else {
+#if 0
+	/* not implemented yet in cairo */
+	SWFDEC_IMAGE_PATTERN (pattern)->extend = CAIRO_EXTEND_PAD;
+#else
 	SWFDEC_IMAGE_PATTERN (pattern)->extend = CAIRO_EXTEND_NONE;
+#endif
       }
       if (paint_style_type == 0x40 || paint_style_type == 0x41) {
 	SWFDEC_IMAGE_PATTERN (pattern)->filter = CAIRO_FILTER_BILINEAR;
diff-tree d6c0c77e1140c6524346fea1d9ff7374cce55d7d (from 04b625c254edf3468ca3d463c24d4fe47789d98b)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Aug 24 12:45:26 2007 +0200

    add the magic ASSetPropFlags flags

diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 7ad3802..28a1dd7 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -67,6 +67,14 @@
  *                                to delete this variable.
  * @SWFDEC_AS_VARIABLE_CONSTANT: Do not allow changing the value with
  *                               swfdec_as_object_set_variable().
+ * @SWFDEC_AS_VARIABLE_VERSION_6_UP: This symbol is only visible in version 6 
+ *                                   and above.
+ * @SWFDEC_AS_VARIABLE_VERSION_NOT_6: This symbols is visible in all versions 
+ *                                    but version 6.
+ * @SWFDEC_AS_VARIABLE_VERSION_7_UP: This symbol is only visible in version 7 
+ *                                   and above.
+ * @SWFDEC_AS_VARIABLE_VERSION_8_UP: This symbol is only visible in version 8 
+ *                                   and above.
  *
  * These flags are used to describe various properties of a variable inside
  * Swfdec. You can manually set them with swfdec_as_object_set_variable_flags().
@@ -193,7 +201,14 @@ swfdec_as_object_do_get (SwfdecAsObject 
   if (var == NULL)
     return FALSE;
 
-  if (var->flags & SWFDEC_AS_VARIABLE_FLASH6_UP && object->context->version < 6)
+  /* variable flag checks */
+  if (var->flags & SWFDEC_AS_VARIABLE_VERSION_6_UP && object->context->version < 6)
+    return FALSE;
+  if (var->flags & SWFDEC_AS_VARIABLE_VERSION_NOT_6 && object->context->version == 6)
+    return FALSE;
+  if (var->flags & SWFDEC_AS_VARIABLE_VERSION_7_UP && object->context->version < 7)
+    return FALSE;
+  if (var->flags & SWFDEC_AS_VARIABLE_VERSION_8_UP && object->context->version < 8)
     return FALSE;
 
   if (var->get) {
diff --git a/libswfdec/swfdec_as_object.h b/libswfdec/swfdec_as_object.h
index 0079e2d..a61bc4b 100644
--- a/libswfdec/swfdec_as_object.h
+++ b/libswfdec/swfdec_as_object.h
@@ -31,7 +31,10 @@ typedef enum {
   SWFDEC_AS_VARIABLE_PERMANENT = (1 << 1),
   SWFDEC_AS_VARIABLE_CONSTANT = (1 << 2),
 
-  SWFDEC_AS_VARIABLE_FLASH6_UP = (1 << 7)
+  SWFDEC_AS_VARIABLE_VERSION_6_UP = (1 << 7),
+  SWFDEC_AS_VARIABLE_VERSION_NOT_6 = (1 << 8),
+  SWFDEC_AS_VARIABLE_VERSION_7_UP = (1 << 10),
+  SWFDEC_AS_VARIABLE_VERSION_8_UP = (1 << 12),
 } SwfdecAsVariableFlag;
 
 typedef enum {
diff-tree 04b625c254edf3468ca3d463c24d4fe47789d98b (from 18ed2b92be3a6166c64087069d59ac5afa1b2a17)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Aug 24 12:44:27 2007 +0200

    add new test method from gtk-doc
    
    It is currently not realeased yet and only available from svn

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 8f36b20..de001b0 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -170,3 +170,6 @@ include $(top_srcdir)/gtk-doc.make
 # Other files to distribute
 # e.g. EXTRA_DIST += version.xml.in
 EXTRA_DIST += 
+
+# Comment this out if you want your docs-status tested during 'make check'
+TESTS = $(GTKDOC_CHECK)
diff-tree 18ed2b92be3a6166c64087069d59ac5afa1b2a17 (from 8ee574f9bbf7ef0eec20ede40249f5bd515f639e)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Aug 24 12:00:35 2007 +0200

    Add missing underscore in docs
    
    I'm not a regexp master...

diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 4abf578..7c70cf8 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -130,103 +130,103 @@
 
 /**
  * SwfdecKey:
- * @SWFDEC_KEYBACKSPACE: the backspace key
- * @SWFDEC_KEYTAB: the tab key
- * @SWFDEC_KEYCLEAR: the clear key
- * @SWFDEC_KEYENTER: the enter key
- * @SWFDEC_KEYSHIFT: the shift key
- * @SWFDEC_KEYCONTROL: the control key
- * @SWFDEC_KEYALT: the alt key
- * @SWFDEC_KEYCAPS_LOCK: the caps lock key
- * @SWFDEC_KEYESCAPE: the escape key
- * @SWFDEC_KEYSPACE: the space key
- * @SWFDEC_KEYPAGE_UP: the page up key
- * @SWFDEC_KEYPAGE_DOWN: the page down key
- * @SWFDEC_KEYEND: the end key
- * @SWFDEC_KEYHOME: the home key
- * @SWFDEC_KEYLEFT: the left key
- * @SWFDEC_KEYUP: the up key
- * @SWFDEC_KEYRIGHT: the right key
- * @SWFDEC_KEYDOWN: the down key
- * @SWFDEC_KEYINSERT: the insert key
- * @SWFDEC_KEYDELETE: the delete key
- * @SWFDEC_KEYHELP: the help key
- * @SWFDEC_KEY0: the 0 key
- * @SWFDEC_KEY1: the 1 key
- * @SWFDEC_KEY2: the 2 key
- * @SWFDEC_KEY3: the 3 key
- * @SWFDEC_KEY4: the 4 key
- * @SWFDEC_KEY5: the 5 key
- * @SWFDEC_KEY6: the 6 key
- * @SWFDEC_KEY7: the 7 key
- * @SWFDEC_KEY8: the 8 key
- * @SWFDEC_KEY9: the 9 key
- * @SWFDEC_KEYA: the ! key
- * @SWFDEC_KEYB: the B key
- * @SWFDEC_KEYC: the C key
- * @SWFDEC_KEYD: the D key
- * @SWFDEC_KEYE: the E key
- * @SWFDEC_KEYF: the F key
- * @SWFDEC_KEYG: the G key
- * @SWFDEC_KEYH: the H key
- * @SWFDEC_KEYI: the I key
- * @SWFDEC_KEYJ: the J key
- * @SWFDEC_KEYK: the K key
- * @SWFDEC_KEYL: the L key
- * @SWFDEC_KEYM: the M key
- * @SWFDEC_KEYN: the N key
- * @SWFDEC_KEYO: the O key
- * @SWFDEC_KEYP: the P key
- * @SWFDEC_KEYQ: the Q key
- * @SWFDEC_KEYR: the R key
- * @SWFDEC_KEYS: the S key
- * @SWFDEC_KEYT: the T key
- * @SWFDEC_KEYU: the U key
- * @SWFDEC_KEYV: the V key
- * @SWFDEC_KEYW: the W key
- * @SWFDEC_KEYX: the X key
- * @SWFDEC_KEYY: the Y key
- * @SWFDEC_KEYZ: the Z key
- * @SWFDEC_KEYNUMPAD_0: the 0 key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_1: the 1 key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_2: the 2 key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_3: the 3 key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_4: the 4 key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_5: the 5 key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_6: the 6 key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_7: the 7 key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_8: the 8 key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_9: the 9 key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_MULTIPLY: the multiply key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_ADD: the add key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_SUBTRACT: the subtract key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_DECIMAL: the decimal key on the numeric keypad
- * @SWFDEC_KEYNUMPAD_DIVIDE: the divide key on the numeric keypad
- * @SWFDEC_KEYF1: the F1 key
- * @SWFDEC_KEYF2: the F2 key
- * @SWFDEC_KEYF3: the F3 key
- * @SWFDEC_KEYF4: the F4 key
- * @SWFDEC_KEYF5: the F5 key
- * @SWFDEC_KEYF6: the F6 key
- * @SWFDEC_KEYF7: the F7 key
- * @SWFDEC_KEYF8: the F8 key
- * @SWFDEC_KEYF9: the F9 key
- * @SWFDEC_KEYF10: the F10 key
- * @SWFDEC_KEYF11: the F11 key
- * @SWFDEC_KEYF12: the F12 key
- * @SWFDEC_KEYF13: the F13 key
- * @SWFDEC_KEYF14: the F14 key
- * @SWFDEC_KEYF15: the F15 key
- * @SWFDEC_KEYNUM_LOCK: the num lock key
- * @SWFDEC_KEYSEMICOLON: the semicolon key (on English keyboards)
- * @SWFDEC_KEYEQUAL: the equal key (on English keyboards)
- * @SWFDEC_KEYMINUS: the minus key (on English keyboards)
- * @SWFDEC_KEYSLASH: the slash key (on English keyboards)
- * @SWFDEC_KEYGRAVE: the grave key (on English keyboards)
- * @SWFDEC_KEYLEFT_BRACKET: the left bracket key (on English keyboards)
- * @SWFDEC_KEYBACKSLASH: the backslash key (on English keyboards)
- * @SWFDEC_KEYRIGHT_BRACKET: the right bracket key (on English keyboards)
- * @SWFDEC_KEYAPOSTROPHE: the apostrophe key (on English keyboards)
+ * @SWFDEC_KEY_BACKSPACE: the backspace key
+ * @SWFDEC_KEY_TAB: the tab key
+ * @SWFDEC_KEY_CLEAR: the clear key
+ * @SWFDEC_KEY_ENTER: the enter key
+ * @SWFDEC_KEY_SHIFT: the shift key
+ * @SWFDEC_KEY_CONTROL: the control key
+ * @SWFDEC_KEY_ALT: the alt key
+ * @SWFDEC_KEY_CAPS_LOCK: the caps lock key
+ * @SWFDEC_KEY_ESCAPE: the escape key
+ * @SWFDEC_KEY_SPACE: the space key
+ * @SWFDEC_KEY_PAGE_UP: the page up key
+ * @SWFDEC_KEY_PAGE_DOWN: the page down key
+ * @SWFDEC_KEY_END: the end key
+ * @SWFDEC_KEY_HOME: the home key
+ * @SWFDEC_KEY_LEFT: the left key
+ * @SWFDEC_KEY_UP: the up key
+ * @SWFDEC_KEY_RIGHT: the right key
+ * @SWFDEC_KEY_DOWN: the down key
+ * @SWFDEC_KEY_INSERT: the insert key
+ * @SWFDEC_KEY_DELETE: the delete key
+ * @SWFDEC_KEY_HELP: the help key
+ * @SWFDEC_KEY_0: the 0 key
+ * @SWFDEC_KEY_1: the 1 key
+ * @SWFDEC_KEY_2: the 2 key
+ * @SWFDEC_KEY_3: the 3 key
+ * @SWFDEC_KEY_4: the 4 key
+ * @SWFDEC_KEY_5: the 5 key
+ * @SWFDEC_KEY_6: the 6 key
+ * @SWFDEC_KEY_7: the 7 key
+ * @SWFDEC_KEY_8: the 8 key
+ * @SWFDEC_KEY_9: the 9 key
+ * @SWFDEC_KEY_A: the ! key
+ * @SWFDEC_KEY_B: the B key
+ * @SWFDEC_KEY_C: the C key
+ * @SWFDEC_KEY_D: the D key
+ * @SWFDEC_KEY_E: the E key
+ * @SWFDEC_KEY_F: the F key
+ * @SWFDEC_KEY_G: the G key
+ * @SWFDEC_KEY_H: the H key
+ * @SWFDEC_KEY_I: the I key
+ * @SWFDEC_KEY_J: the J key
+ * @SWFDEC_KEY_K: the K key
+ * @SWFDEC_KEY_L: the L key
+ * @SWFDEC_KEY_M: the M key
+ * @SWFDEC_KEY_N: the N key
+ * @SWFDEC_KEY_O: the O key
+ * @SWFDEC_KEY_P: the P key
+ * @SWFDEC_KEY_Q: the Q key
+ * @SWFDEC_KEY_R: the R key
+ * @SWFDEC_KEY_S: the S key
+ * @SWFDEC_KEY_T: the T key
+ * @SWFDEC_KEY_U: the U key
+ * @SWFDEC_KEY_V: the V key
+ * @SWFDEC_KEY_W: the W key
+ * @SWFDEC_KEY_X: the X key
+ * @SWFDEC_KEY_Y: the Y key
+ * @SWFDEC_KEY_Z: the Z key
+ * @SWFDEC_KEY_NUMPAD_0: the 0 key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_1: the 1 key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_2: the 2 key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_3: the 3 key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_4: the 4 key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_5: the 5 key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_6: the 6 key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_7: the 7 key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_8: the 8 key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_9: the 9 key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_MULTIPLY: the multiply key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_ADD: the add key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_SUBTRACT: the subtract key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_DECIMAL: the decimal key on the numeric keypad
+ * @SWFDEC_KEY_NUMPAD_DIVIDE: the divide key on the numeric keypad
+ * @SWFDEC_KEY_F1: the F1 key
+ * @SWFDEC_KEY_F2: the F2 key
+ * @SWFDEC_KEY_F3: the F3 key
+ * @SWFDEC_KEY_F4: the F4 key
+ * @SWFDEC_KEY_F5: the F5 key
+ * @SWFDEC_KEY_F6: the F6 key
+ * @SWFDEC_KEY_F7: the F7 key
+ * @SWFDEC_KEY_F8: the F8 key
+ * @SWFDEC_KEY_F9: the F9 key
+ * @SWFDEC_KEY_F10: the F10 key
+ * @SWFDEC_KEY_F11: the F11 key
+ * @SWFDEC_KEY_F12: the F12 key
+ * @SWFDEC_KEY_F13: the F13 key
+ * @SWFDEC_KEY_F14: the F14 key
+ * @SWFDEC_KEY_F15: the F15 key
+ * @SWFDEC_KEY_NUM_LOCK: the num lock key
+ * @SWFDEC_KEY_SEMICOLON: the semicolon key (on English keyboards)
+ * @SWFDEC_KEY_EQUAL: the equal key (on English keyboards)
+ * @SWFDEC_KEY_MINUS: the minus key (on English keyboards)
+ * @SWFDEC_KEY_SLASH: the slash key (on English keyboards)
+ * @SWFDEC_KEY_GRAVE: the grave key (on English keyboards)
+ * @SWFDEC_KEY_LEFT_BRACKET: the left bracket key (on English keyboards)
+ * @SWFDEC_KEY_BACKSLASH: the backslash key (on English keyboards)
+ * @SWFDEC_KEY_RIGHT_BRACKET: the right bracket key (on English keyboards)
+ * @SWFDEC_KEY_APOSTROPHE: the apostrophe key (on English keyboards)
  *
  * Lists all known key codes in Swfdec and their meanings on an English 
  * keyboard.
diff-tree 8ee574f9bbf7ef0eec20ede40249f5bd515f639e (from b60b2014dec369e668b104b58060690fce952f65)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Aug 24 11:48:29 2007 +0200

    document SwfdecKey

diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 74128c1..4abf578 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -130,8 +130,106 @@
 
 /**
  * SwfdecKey:
+ * @SWFDEC_KEYBACKSPACE: the backspace key
+ * @SWFDEC_KEYTAB: the tab key
+ * @SWFDEC_KEYCLEAR: the clear key
+ * @SWFDEC_KEYENTER: the enter key
+ * @SWFDEC_KEYSHIFT: the shift key
+ * @SWFDEC_KEYCONTROL: the control key
+ * @SWFDEC_KEYALT: the alt key
+ * @SWFDEC_KEYCAPS_LOCK: the caps lock key
+ * @SWFDEC_KEYESCAPE: the escape key
+ * @SWFDEC_KEYSPACE: the space key
+ * @SWFDEC_KEYPAGE_UP: the page up key
+ * @SWFDEC_KEYPAGE_DOWN: the page down key
+ * @SWFDEC_KEYEND: the end key
+ * @SWFDEC_KEYHOME: the home key
+ * @SWFDEC_KEYLEFT: the left key
+ * @SWFDEC_KEYUP: the up key
+ * @SWFDEC_KEYRIGHT: the right key
+ * @SWFDEC_KEYDOWN: the down key
+ * @SWFDEC_KEYINSERT: the insert key
+ * @SWFDEC_KEYDELETE: the delete key
+ * @SWFDEC_KEYHELP: the help key
+ * @SWFDEC_KEY0: the 0 key
+ * @SWFDEC_KEY1: the 1 key
+ * @SWFDEC_KEY2: the 2 key
+ * @SWFDEC_KEY3: the 3 key
+ * @SWFDEC_KEY4: the 4 key
+ * @SWFDEC_KEY5: the 5 key
+ * @SWFDEC_KEY6: the 6 key
+ * @SWFDEC_KEY7: the 7 key
+ * @SWFDEC_KEY8: the 8 key
+ * @SWFDEC_KEY9: the 9 key
+ * @SWFDEC_KEYA: the ! key
+ * @SWFDEC_KEYB: the B key
+ * @SWFDEC_KEYC: the C key
+ * @SWFDEC_KEYD: the D key
+ * @SWFDEC_KEYE: the E key
+ * @SWFDEC_KEYF: the F key
+ * @SWFDEC_KEYG: the G key
+ * @SWFDEC_KEYH: the H key
+ * @SWFDEC_KEYI: the I key
+ * @SWFDEC_KEYJ: the J key
+ * @SWFDEC_KEYK: the K key
+ * @SWFDEC_KEYL: the L key
+ * @SWFDEC_KEYM: the M key
+ * @SWFDEC_KEYN: the N key
+ * @SWFDEC_KEYO: the O key
+ * @SWFDEC_KEYP: the P key
+ * @SWFDEC_KEYQ: the Q key
+ * @SWFDEC_KEYR: the R key
+ * @SWFDEC_KEYS: the S key
+ * @SWFDEC_KEYT: the T key
+ * @SWFDEC_KEYU: the U key
+ * @SWFDEC_KEYV: the V key
+ * @SWFDEC_KEYW: the W key
+ * @SWFDEC_KEYX: the X key
+ * @SWFDEC_KEYY: the Y key
+ * @SWFDEC_KEYZ: the Z key
+ * @SWFDEC_KEYNUMPAD_0: the 0 key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_1: the 1 key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_2: the 2 key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_3: the 3 key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_4: the 4 key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_5: the 5 key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_6: the 6 key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_7: the 7 key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_8: the 8 key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_9: the 9 key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_MULTIPLY: the multiply key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_ADD: the add key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_SUBTRACT: the subtract key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_DECIMAL: the decimal key on the numeric keypad
+ * @SWFDEC_KEYNUMPAD_DIVIDE: the divide key on the numeric keypad
+ * @SWFDEC_KEYF1: the F1 key
+ * @SWFDEC_KEYF2: the F2 key
+ * @SWFDEC_KEYF3: the F3 key
+ * @SWFDEC_KEYF4: the F4 key
+ * @SWFDEC_KEYF5: the F5 key
+ * @SWFDEC_KEYF6: the F6 key
+ * @SWFDEC_KEYF7: the F7 key
+ * @SWFDEC_KEYF8: the F8 key
+ * @SWFDEC_KEYF9: the F9 key
+ * @SWFDEC_KEYF10: the F10 key
+ * @SWFDEC_KEYF11: the F11 key
+ * @SWFDEC_KEYF12: the F12 key
+ * @SWFDEC_KEYF13: the F13 key
+ * @SWFDEC_KEYF14: the F14 key
+ * @SWFDEC_KEYF15: the F15 key
+ * @SWFDEC_KEYNUM_LOCK: the num lock key
+ * @SWFDEC_KEYSEMICOLON: the semicolon key (on English keyboards)
+ * @SWFDEC_KEYEQUAL: the equal key (on English keyboards)
+ * @SWFDEC_KEYMINUS: the minus key (on English keyboards)
+ * @SWFDEC_KEYSLASH: the slash key (on English keyboards)
+ * @SWFDEC_KEYGRAVE: the grave key (on English keyboards)
+ * @SWFDEC_KEYLEFT_BRACKET: the left bracket key (on English keyboards)
+ * @SWFDEC_KEYBACKSLASH: the backslash key (on English keyboards)
+ * @SWFDEC_KEYRIGHT_BRACKET: the right bracket key (on English keyboards)
+ * @SWFDEC_KEYAPOSTROPHE: the apostrophe key (on English keyboards)
  *
- * Lists all known key codes in Swfdec.
+ * Lists all known key codes in Swfdec and their meanings on an English 
+ * keyboard.
  */
 
 /*** Timeouts ***/
diff-tree b60b2014dec369e668b104b58060690fce952f65 (from a4cff82bfaa611278733b34cd71138ae444664d4)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Aug 24 11:04:30 2007 +0200

    remove SWFDEC_KEY_MAX

diff --git a/libswfdec/swfdec_keys.h b/libswfdec/swfdec_keys.h
index a97d5d0..2916792 100644
--- a/libswfdec/swfdec_keys.h
+++ b/libswfdec/swfdec_keys.h
@@ -118,7 +118,6 @@ typedef enum {
   SWFDEC_KEY_BACKSLASH = 220,
   SWFDEC_KEY_RIGHT_BRACKET = 221,
   SWFDEC_KEY_APOSTROPHE = 222,
-  SWFDEC_KEY_MAX = 255
 } SwfdecKey;
 
 G_END_DECLS


More information about the Swfdec mailing list