[Swfdec-commits] Branch '0.6' - doc/Makefile.am doc/swfdec-sections.txt swfdec/swfdec_player.c swfdec/swfdec_script.c
Benjamin Otte
company at kemper.freedesktop.org
Fri Mar 21 14:30:23 PDT 2008
doc/Makefile.am | 1 -
doc/swfdec-sections.txt | 4 ++++
swfdec/swfdec_player.c | 1 +
swfdec/swfdec_script.c | 15 +++++++++++++++
4 files changed, 20 insertions(+), 1 deletion(-)
New commits:
commit 9a85d379f1a2a45fe2ef23468970739dca4ceed7
Author: Benjamin Otte <otte at gnome.org>
Date: Fri Mar 21 22:01:14 2008 +0100
include swfdec_script.h in the documentation
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 371c562..1c54ba9 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -122,7 +122,6 @@ IGNORE_HFILES= \
swfdec_root_movie.h \
swfdec_root_sprite.h \
swfdec_sandbox.h \
- swfdec_script.h \
swfdec_script_internal.h \
swfdec_shape.h \
swfdec_shape_parser.h \
diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt
index e0f6649..67bb023 100644
--- a/doc/swfdec-sections.txt
+++ b/doc/swfdec-sections.txt
@@ -542,7 +542,11 @@ SWFDEC_TYPE_AS_FRAME
<TITLE>SwfdecAsDebugger</TITLE>
SwfdecAsDebugger
SwfdecAsDebuggerClass
+<SUBSECTION SwfdecScript>
SwfdecScript
+swfdec_script_new
+swfdec_script_ref
+swfdec_script_unref
<SUBSECTION Standard>
swfdec_as_debugger_get_type
SWFDEC_AS_DEBUGGER
diff --git a/swfdec/swfdec_player.c b/swfdec/swfdec_player.c
index e0e8ff9..5a50c52 100644
--- a/swfdec/swfdec_player.c
+++ b/swfdec/swfdec_player.c
@@ -241,6 +241,7 @@
/**
* SWFDEC_TYPE_TIME_VAL:
+ *
* This type wraps a @GTimeVal object as a boxed type and makes it available
* for use in object properties.
*/
diff --git a/swfdec/swfdec_script.c b/swfdec/swfdec_script.c
index 852b799..66eeed0 100644
--- a/swfdec/swfdec_script.c
+++ b/swfdec/swfdec_script.c
@@ -255,6 +255,14 @@ swfdec_script_new_from_bits (SwfdecBits *bits, const char *name, guint version)
return script;
}
+/**
+ * swfdec_script_ref:
+ * @script: a script
+ *
+ * Increases the reference count of the given @script by one.
+ *
+ * Returns: The @script given as an argument
+ **/
SwfdecScript *
swfdec_script_ref (SwfdecScript *script)
{
@@ -265,6 +273,13 @@ swfdec_script_ref (SwfdecScript *script)
return script;
}
+/**
+ * swfdec_script_unref:
+ * @script: a script
+ *
+ * Decreases the reference count of the given @script by one. If the count
+ * reaches zero, it will automatically be destroyed.
+ **/
void
swfdec_script_unref (SwfdecScript *script)
{
More information about the Swfdec-commits
mailing list