]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Add clutter-gst-1.0 bindings
authorAli Sabil <ali.sabil@gmail.com>
Sat, 17 Apr 2010 14:14:12 +0000 (16:14 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 21 Apr 2010 12:37:56 +0000 (14:37 +0200)
Fixes bug 608336.

vapi/Makefile.am
vapi/clutter-gst-1.0.deps [new file with mode: 0644]
vapi/clutter-gst-1.0.vapi [new file with mode: 0644]

index 2b6def8e841fc7f6fa02323112a1230f3630e5c6..b1e6ddefae41793edceb31176e3a3740ed4c1512 100644 (file)
@@ -17,6 +17,8 @@ dist_vapi_DATA = \
        ccss-1.vapi \
        clutter-1.0.deps \
        clutter-1.0.vapi \
+       clutter-gst-1.0.deps \
+       clutter-gst-1.0.vapi \
        clutter-gtk-0.10.deps \
        clutter-gtk-0.10.vapi \
        clutter-json-1.0.vapi \
diff --git a/vapi/clutter-gst-1.0.deps b/vapi/clutter-gst-1.0.deps
new file mode 100644 (file)
index 0000000..266e1b2
--- /dev/null
@@ -0,0 +1,3 @@
+clutter-1.0
+gstreamer-0.10
+gstreamer-base-0.10
diff --git a/vapi/clutter-gst-1.0.vapi b/vapi/clutter-gst-1.0.vapi
new file mode 100644 (file)
index 0000000..00df0e4
--- /dev/null
@@ -0,0 +1,32 @@
+[CCode (cprefix = "ClutterGst", lower_case_cprefix = "clutter_gst_", cheader_filename = "clutter-gst/clutter-gst.h")]
+namespace ClutterGst {
+       [CCode (lower_case_cprefix = "")]
+       namespace Version {
+               [CCode (cname = "CLUTTER_GST_MAJOR_VERSION")]
+               public const int MAJOR;
+               [CCode (cname = "CLUTTER_GST_MINOR_VERSION")]
+               public const int MINOR;
+               [CCode (cname = "CLUTTER_GST_MICRO_VERSION")]
+               public const int MICRO;
+               [CCode (cname = "CLUTTER_GST_VERSION_HEX")]
+               public const int HEX;
+               [CCode (cname = "CLUTTER_GST_VERSION_S")]
+               public const string STRING;
+               [CCode (cname = "CLUTTER_GST_CHECK_VERSION")]
+               public bool check(int major, int minor, int micro);
+       }
+       public class VideoSink : Gst.BaseSink {
+               public VideoSink (Clutter.Texture texture);
+               [NoAccessorMethod]
+               public Clutter.Texture texture { get; set; }
+               [NoAccessorMethod]
+               public int update_priority { get; set; }
+       }
+       public class VideoTexture : Clutter.Texture, Clutter.Media {
+               [CCode (type = "ClutterActor*")]
+               public VideoTexture ();
+               public unowned Gst.Element get_pipeline ();
+       }
+       public static Clutter.InitError init ([CCode (array_length_pos = 0.9)] ref unowned string[] argv);
+       public static Clutter.InitError init_with_args ([CCode (array_length_pos = 0.9)] ref unowned string[] argv, string parameter_string, [CCode (array_length = false)] GLib.OptionEntry[] entries, string translation_domain) throws GLib.OptionError;
+}