From ec3e50fb1f67c5ff283d4c9020c6f21b36fdf519 Mon Sep 17 00:00:00 2001 From: Ali Sabil Date: Sat, 17 Apr 2010 16:14:12 +0200 Subject: Add clutter-gst-1.0 bindings Fixes bug 608336. --- vapi/Makefile.am | 2 ++ vapi/clutter-gst-1.0.deps | 3 +++ vapi/clutter-gst-1.0.vapi | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 vapi/clutter-gst-1.0.deps create mode 100644 vapi/clutter-gst-1.0.vapi diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 2b6def8e8..b1e6ddefa 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -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 index 000000000..266e1b268 --- /dev/null +++ b/vapi/clutter-gst-1.0.deps @@ -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 index 000000000..00df0e485 --- /dev/null +++ b/vapi/clutter-gst-1.0.vapi @@ -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; +} -- cgit v1.2.1