[vala/staging] gstreamer-1.0: Bind GST_TIME_ARGS, GST_STIME_ARGS formatting macros



commit 0ad7c0bafa91d509450ec5c583dec8550017ffab
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Nov 20 14:03:55 2017 +0100

    gstreamer-1.0: Bind GST_TIME_ARGS, GST_STIME_ARGS formatting macros
    
    Gst.ClockTime ts = 0ULL;
    print ("%" + Gst.TIME_FORMAT + "\n", Gst.TIME_ARGS (ts));
    
    https://bugzilla.gnome.org/show_bug.cgi?id=750840

 vapi/gstreamer-1.0.vapi           |    4 ++++
 vapi/metadata/Gst-1.0-custom.vala |    5 +++++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index ef1932d..95cae47 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -3969,6 +3969,10 @@ namespace Gst {
        public const int VERSION_MINOR;
        [CCode (cheader_filename = "gst/gst.h", cname = "GST_VERSION_NANO")]
        public const int VERSION_NANO;
+       [CCode (cheader_filename = "gst/gst.h", cname = "GST_STIME_ARGS", use_inplace = true)]
+       public static uint STIME_ARGS (Gst.ClockTimeDiff t);
+       [CCode (cheader_filename = "gst/gst.h", cname = "GST_TIME_ARGS", use_inplace = true)]
+       public static uint TIME_ARGS (Gst.ClockTime t);
        [CCode (cheader_filename = "gst/gst.h")]
        public static void deinit ();
        [CCode (cheader_filename = "gst/gst.h")]
diff --git a/vapi/metadata/Gst-1.0-custom.vala b/vapi/metadata/Gst-1.0-custom.vala
index f467c7d..f5518ac 100644
--- a/vapi/metadata/Gst-1.0-custom.vala
+++ b/vapi/metadata/Gst-1.0-custom.vala
@@ -126,4 +126,9 @@ namespace Gst {
                public T pop ();
                public void push (owned T data);
        }
+
+       [CCode (cheader_filename = "gst/gst.h", cname = "GST_TIME_ARGS", use_inplace = true)]
+       public static uint TIME_ARGS (Gst.ClockTime t);
+       [CCode (cheader_filename = "gst/gst.h", cname = "GST_STIME_ARGS", use_inplace = true)]
+       public static uint STIME_ARGS (Gst.ClockTimeDiff t);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]