more docs and two more inlined
authorStefan Kost <ensonic@users.sourceforge.net>
Tue, 30 Aug 2005 17:23:19 +0000 (17:23 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Tue, 30 Aug 2005 17:23:19 +0000 (17:23 +0000)
Original commit message from CVS:
* docs/gst/tmpl/.cvsignore:
* docs/gst/tmpl/gstformat.sgml:
* docs/gst/tmpl/gstversion.sgml:
* gst/gstbus.h:
* gst/gstformat.c:
* gst/gstformat.h:
* gst/gstversion.h.in:
more docs and two more inlined

ChangeLog
docs/gst/tmpl/.gitignore
docs/gst/tmpl/gstformat.sgml [deleted file]
docs/gst/tmpl/gstversion.sgml [deleted file]
gst/gstbus.h
gst/gstformat.c
gst/gstformat.h
gst/gstversion.h.in

index c3c58c8..a3a95c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2005-08-30  Stefan Kost  <ensonic@users.sf.net>
+
+       * docs/gst/tmpl/.cvsignore:
+       * docs/gst/tmpl/gstformat.sgml:
+       * docs/gst/tmpl/gstversion.sgml:
+       * gst/gstbus.h:
+       * gst/gstformat.c:
+       * gst/gstformat.h:
+       * gst/gstversion.h.in:
+          more docs and two more inlined
+
 2005-08-30  Wim Taymans  <wim@fluendo.com>
 
        * gst/elements/gstfilesink.c: (gst_file_sink_class_init):
index 9ac1756..12cb4b1 100644 (file)
@@ -19,10 +19,13 @@ gstfakesrc.sgml
 gstfakesink.sgml
 gstfilesrc.sgml
 gstfilesink.sgml
+gstformat.sgml
 gstmessage.sgml
 gstminiobject.sgml
 gstprobe.sgml
 gstpushsrc.sgml
 gstquery.sgml
 gsttask.sgml
+gstversion.sgml
 gstxmlregistry.sgml
+
diff --git a/docs/gst/tmpl/gstformat.sgml b/docs/gst/tmpl/gstformat.sgml
deleted file mode 100644 (file)
index 8878345..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-<!-- ##### SECTION Title ##### -->
-GstFormat
-
-<!-- ##### SECTION Short_Description ##### -->
-Dynamically register new formats
-
-<!-- ##### SECTION Long_Description ##### -->
-<para>
-GstFormats functions are used to register a new format to the gstreamer core.
-formats can be used to perform seeking or conversions/query operations.
-</para>
-
-<!-- ##### SECTION See_Also ##### -->
-<para>
-#GstPad, #GstElement
-</para>
-
-<!-- ##### SECTION Stability_Level ##### -->
-
-
-<!-- ##### ENUM GstFormat ##### -->
-<para>
-Standard predefined formats
-</para>
-
-@GST_FORMAT_UNDEFINED: undefined format
-@GST_FORMAT_DEFAULT: the default format of the pad/element
-@GST_FORMAT_BYTES: bytes
-@GST_FORMAT_TIME: time in nanoseconds
-@GST_FORMAT_BUFFERS: buffers
-@GST_FORMAT_PERCENT: percentage of stream
-
-<!-- ##### MACRO GST_FORMAT_PERCENT_MAX ##### -->
-<para>
-The PERCENT format is between 0 and this value
-</para>
-
-
-
-<!-- ##### MACRO GST_FORMAT_PERCENT_SCALE ##### -->
-<para>
-The value used to scale down the reported PERCENT format value to
-its real value.
-</para>
-
-
-
-<!-- ##### STRUCT GstFormatDefinition ##### -->
-<para>
-A format definition
-</para>
-
-@value: The unique id of this format
-@nick: A short nick of the format
-@description: A longer description of the format
-
-<!-- ##### FUNCTION gst_format_register ##### -->
-<para>
-
-</para>
-
-@nick: 
-@description: 
-@Returns: 
-
-
-<!-- ##### FUNCTION gst_format_get_by_nick ##### -->
-<para>
-
-</para>
-
-@nick: 
-@Returns: 
-
-
-<!-- ##### FUNCTION gst_formats_contains ##### -->
-<para>
-
-</para>
-
-@formats: 
-@format: 
-@Returns: 
-
-
-<!-- ##### FUNCTION gst_format_get_details ##### -->
-<para>
-
-</para>
-
-@format: 
-@Returns: 
-
-
-<!-- ##### FUNCTION gst_format_iterate_definitions ##### -->
-<para>
-
-</para>
-
-@Returns: 
-
-
diff --git a/docs/gst/tmpl/gstversion.sgml b/docs/gst/tmpl/gstversion.sgml
deleted file mode 100644 (file)
index 4a17d3c..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<!-- ##### SECTION Title ##### -->
-GstVersion
-
-<!-- ##### SECTION Short_Description ##### -->
-GStreamer version macros.
-
-<!-- ##### SECTION Long_Description ##### -->
-<para>
-Use these macros e.g. when defining own plugins.
-The version macros get defined by including "gst/gst.h".
-</para>
-
-<!-- ##### SECTION See_Also ##### -->
-<para>
-
-</para>
-
-<!-- ##### SECTION Stability_Level ##### -->
-
-
-<!-- ##### MACRO GST_VERSION_MAJOR ##### -->
-<para>
-The major version of GStreamer at compile time
-</para>
-
-
-
-<!-- ##### MACRO GST_VERSION_MINOR ##### -->
-<para>
-The minor version of GStreamer at compile time
-</para>
-
-
-
-<!-- ##### MACRO GST_VERSION_MICRO ##### -->
-<para>
-The micro version of GStreamer at compile time
-</para>
-
-
-
-<!-- ##### FUNCTION gst_version ##### -->
-<para>
-
-</para>
-
-@major: 
-@minor: 
-@micro: 
-
-
index f57430d..54eb2c6 100644 (file)
@@ -71,7 +71,8 @@ typedef GstBusSyncReply (*GstBusSyncHandler)  (GstBus * bus, GstMessage * messag
  * @data: user data that has been given, when registering the handler
  *
  * Handler will be invoked asynchronously, after a new message has been injected
- * into the bus.
+ * into the bus. Return %TRUE if the message has been handled. It will then be
+ * taken from the bus and _unref()'ed.
  *
  * Returns: %TRUE if message should be taken from the bus
  */
index 975be25..2ffb77b 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  */
+/**
+ * SECTION:gstformat
+ * @short_description: Dynamically register new data formats
+ * @see_also: #GstPad, #GstElement
+ *
+ * GstFormats functions are used to register a new format to the gstreamer core.
+ * Formats can be used to perform seeking or conversions/query operations.
+ */
 
 #include <string.h>
 
index 909f9d9..f38f3d4 100644 (file)
 
 G_BEGIN_DECLS
 
+/**
+ * GstFormat:
+ * @GST_FORMAT_UNDEFINED: undefined format
+ * @GST_FORMAT_DEFAULT: the default format of the pad/element
+ * @GST_FORMAT_BYTES: bytes
+ * @GST_FORMAT_TIME: time in nanoseconds
+ * @GST_FORMAT_BUFFERS: buffers
+ * @GST_FORMAT_PERCENT: percentage of stream
+ *
+ * Standard predefined formats
+ */
 typedef enum {
   GST_FORMAT_UNDEFINED         =  0, /* must be first in list */
   GST_FORMAT_DEFAULT           =  1, /* samples for audio, frames/fields for video */
@@ -41,11 +52,30 @@ typedef enum {
 } GstFormat;
 
 /* a percentage is always relative to 1000000 */
+/**
+ * GST_FORMAT_PERCENT_MAX:
+ *
+ * The PERCENT format is between 0 and this value
+ */
 #define        GST_FORMAT_PERCENT_MAX          G_GINT64_CONSTANT (1000000)
+/**
+ * GST_FORMAT_PERCENT_SCALE:
+ *
+ * The value used to scale down the reported PERCENT format value to
+ * its real value.
+ */
 #define        GST_FORMAT_PERCENT_SCALE        G_GINT64_CONSTANT (10000)
 
 typedef struct _GstFormatDefinition GstFormatDefinition;
 
+/**
+ * GstFormatDefinition:
+ * @value: The unique id of this format
+ * @nick: A short nick of the format
+ * @description: A longer description of the format
+ *
+ * A format definition
+ */
 struct _GstFormatDefinition 
 {
   GstFormat  value;
index 048a2c3..5424073 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  */
-
+/**
+ * SECTION:gstversion
+ * @short_description: GStreamer version macros.
+ *
+ * Use the GST_VERSION_* macros e.g. when defining own plugins. The GStreamer
+ * runtime checks if these plugin and core version match and refuses to use a
+ * plugin compiled against a different version of GStreamer.
+ * You can also use the macros to keep the GStreamer version information in your
+ * application.
+ *
+ * Use the gst_version() function if you want to know which version of 
+ * GStreamer you are currently linked against.
+ *
+ * The version macros get defined by including "gst/gst.h".
+ */
 
 #ifndef __GST_VERSION_H__
 #define __GST_VERSION_H__
 
 G_BEGIN_DECLS
 
-/*
- * Use these only when you want to know what GStreamer version your stuff was
- * compiled against.
- * Use the #gst_version function if you want to know which version of 
- * GStreamer you are currently linked against.
+/**
+ * GST_VERSION_MAJOR:
+ *
+ * The major version of GStreamer at compile time:
  */
 #define GST_VERSION_MAJOR (@GST_VERSION_MAJOR@)
+/**
+ * GST_VERSION_MINOR:
+ *
+ * The minor version of GStreamer at compile time:
+ */
 #define GST_VERSION_MINOR (@GST_VERSION_MINOR@)
+/**
+ * GST_VERSION_MICRO:
+ *
+ * The micro version of GStreamer at compile time:
+ */
 #define GST_VERSION_MICRO (@GST_VERSION_MICRO@)
 
 void    gst_version     (guint *major, guint *minor, guint *micro);