]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-0.10: add bindings for some GstClockTime methods
authorThijs Vermeir <thijsvermeir@gmail.com>
Thu, 23 Jul 2009 21:49:15 +0000 (23:49 +0200)
committerThijs Vermeir <thijsvermeir@gmail.com>
Thu, 23 Jul 2009 21:55:46 +0000 (23:55 +0200)
Add bindings for GST_TIME_ARGS and GST_CLOCK_TIME_IS_VALID

vapi/gstreamer-0.10.vapi
vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala

index 216a3c085be87e787e3ac879d096dade01138d31..c96c940068e7af1af5be14bf289fcb1619dca100 100644 (file)
@@ -1340,6 +1340,10 @@ namespace Gst {
        [SimpleType]
        [IntegerType (rank = 0)]
        public struct ClockTime : uint64 {
+               [CCode (cname = "GST_TIME_ARGS")]
+               public unowned string args ();
+               [CCode (cname = "GST_CLOCK_TIME_IS_VALID")]
+               public bool is_valid ();
        }
        [CCode (cheader_filename = "gst/gst.h")]
        [SimpleType]
index 11560ca43df4af82d3d110f09da7f8c8bd0a9a94..335a6a661e517941ed7a0659160ae81b3f6bdbaa 100644 (file)
@@ -23,6 +23,10 @@ namespace Gst {
        public extern void init ([CCode (array_length_pos = 0.9)] ref weak string[] args);
 
        public struct ClockTime : uint64 {
+               [CCode (cname="GST_TIME_ARGS")]
+               public weak string args ();
+               [CCode (cname="GST_CLOCK_TIME_IS_VALID")]
+               public bool is_valid ();
        }
 
        public struct ClockTimeDiff : int64 {