introspection: add Value annotations for GST_SECOND, GST_MSECOND, GST_USECOND, GST_NS...
authorPeteris Krisjanis <pecisk@gmail.com>
Sat, 15 Oct 2011 19:52:25 +0000 (22:52 +0300)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 4 Nov 2011 00:19:56 +0000 (00:19 +0000)
gobject-introspection won't parse them properly otherwise.

Still need to force the right type though (either GstClockTime or
guint64), but Type: xyz has no effect for me here, so someone with
a newer g-i needs to test this.

Some other defines are also missing, e.g. GST_CLOCK_TIME_NONE.

gst/gstclock.h

index 230e190..0af622b 100644 (file)
@@ -81,28 +81,41 @@ typedef gpointer GstClockID;
  */
 #define GST_CLOCK_TIME_IS_VALID(time)  (((GstClockTime)(time)) != GST_CLOCK_TIME_NONE)
 
+/* FIXME: still need to explicitly force types on the defines below */
 /**
  * GST_SECOND:
  *
  * Constant that defines one GStreamer second.
+ * 
+ * Value: 1000000000
+ *
  */
 #define GST_SECOND  (G_USEC_PER_SEC * G_GINT64_CONSTANT (1000))
 /**
  * GST_MSECOND:
  *
  * Constant that defines one GStreamer millisecond.
+ * 
+ * Value: 1000000
+ * 
  */
 #define GST_MSECOND (GST_SECOND / G_GINT64_CONSTANT (1000))
 /**
  * GST_USECOND:
  *
  * Constant that defines one GStreamer microsecond.
+ * 
+ * Value: 1000
+ * 
  */
 #define GST_USECOND (GST_SECOND / G_GINT64_CONSTANT (1000000))
 /**
  * GST_NSECOND:
  *
  * Constant that defines one GStreamer nanosecond
+ * 
+ * Value: 1
+ * 
  */
 #define GST_NSECOND (GST_SECOND / G_GINT64_CONSTANT (1000000000))