gst/: add the nano
authorThomas Vander Stichele <thomas@apestaart.org>
Sun, 16 Oct 2005 09:10:17 +0000 (09:10 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Sun, 16 Oct 2005 09:10:17 +0000 (09:10 +0000)
Original commit message from CVS:
* gst/gst.c: (gst_version):
* gst/gstversion.h.in:
add the nano

ChangeLog
gst/gst.c
gst/gstversion.h.in

index ecd0f24..4b8fe67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * gst/gst.c: (gst_version):
+       * gst/gstversion.h.in:
+         add the nano
+
 2005-10-15  Tim-Philipp Müller  <tim at centricular dot net>
 
        * gst/gstevent.h:
index a15cba5..c664db3 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -853,17 +853,20 @@ gst_deinit (void)
  * @major: pointer to a guint to store the major version number
  * @minor: pointer to a guint to store the minor version number
  * @micro: pointer to a guint to store the micro version number
+ * @nano:  pointer to a guint to store the nano version number
  *
  * Gets the version number of the GStreamer library.
  */
 void
-gst_version (guint * major, guint * minor, guint * micro)
+gst_version (guint * major, guint * minor, guint * micro, guint * nano)
 {
   g_return_if_fail (major);
   g_return_if_fail (minor);
   g_return_if_fail (micro);
+  g_return_if_fail (nano);
 
   *major = GST_VERSION_MAJOR;
   *minor = GST_VERSION_MINOR;
   *micro = GST_VERSION_MICRO;
+  *nano = GST_VERSION_NANO;
 }
index 5424073..a7cd4fd 100644 (file)
  * 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.
+ * 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 
+ * 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".
@@ -58,8 +58,15 @@ G_BEGIN_DECLS
  * The micro version of GStreamer at compile time:
  */
 #define GST_VERSION_MICRO (@GST_VERSION_MICRO@)
+/**
+ * GST_VERSION_NANO:
+ *
+ * The nano version of GStreamer at compile time:
+ * Actual releases have 0, CVS versions have 1, prerelease versions have 2-...
+ */
+#define GST_VERSION_NANO (@GST_VERSION_NANO@)
 
-void    gst_version     (guint *major, guint *minor, guint *micro);
+void    gst_version     (guint *major, guint *minor, guint *micro, guint *nano);
 
 G_END_DECLS