[vala] gstreamer-0.10: Fix Gst.Poll and Gst.PollFD bindings



commit 1ed635d01338df9b3ecf28be1ba649f7518c33c5
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date:   Thu Jun 24 10:35:39 2010 +0200

    gstreamer-0.10: Fix Gst.Poll and Gst.PollFD bindings

 vapi/gstreamer-0.10.vapi                           |   27 +++++++++----------
 .../gstreamer-0.10/gstreamer-0.10-custom.vala      |   13 +++++++++
 .../gstreamer-0.10/gstreamer-0.10.metadata         |    1 +
 3 files changed, 27 insertions(+), 14 deletions(-)
---
diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi
index 0229acb..3c0dd84 100644
--- a/vapi/gstreamer-0.10.vapi
+++ b/vapi/gstreamer-0.10.vapi
@@ -1019,20 +1019,6 @@ namespace Gst {
 		public int wait (Gst.ClockTime timeout);
 		public bool write_control ();
 	}
-	[Compact]
-	[CCode (cheader_filename = "gst/gst.h")]
-	public class PollFD {
-		public int fd;
-		public int idx;
-		public static bool can_read (Gst.Poll @set, Gst.PollFD fd);
-		public static bool can_write (Gst.Poll @set, Gst.PollFD fd);
-		public static bool ctl_read (Gst.Poll @set, Gst.PollFD fd, bool active);
-		public static bool ctl_write (Gst.Poll @set, Gst.PollFD fd, bool active);
-		public static bool has_closed (Gst.Poll @set, Gst.PollFD fd);
-		public static bool has_error (Gst.Poll @set, Gst.PollFD fd);
-		public static void ignored (Gst.Poll @set, Gst.PollFD fd);
-		public void init ();
-	}
 	[CCode (cheader_filename = "gst/gst.h")]
 	public class ProxyPad : Gst.Pad {
 	}
@@ -1548,6 +1534,19 @@ namespace Gst {
 		public weak string origin;
 		public weak void*[] _gst_reserved;
 	}
+	[CCode (type_id = "GST_TYPE_POLL_FD", cheader_filename = "gst/gst.h")]
+	public struct PollFD {
+		public int fd;
+		public int idx;
+		public static bool can_read (Gst.Poll @set, Gst.PollFD fd);
+		public static bool can_write (Gst.Poll @set, Gst.PollFD fd);
+		public static bool ctl_read (Gst.Poll @set, Gst.PollFD fd, bool active);
+		public static bool ctl_write (Gst.Poll @set, Gst.PollFD fd, bool active);
+		public static bool has_closed (Gst.Poll @set, Gst.PollFD fd);
+		public static bool has_error (Gst.Poll @set, Gst.PollFD fd);
+		public static void ignored (Gst.Poll @set, Gst.PollFD fd);
+		public void init ();
+	}
 	[CCode (type_id = "GST_TYPE_STATIC_CAPS", cheader_filename = "gst/gst.h")]
 	public struct StaticCaps {
 		[CCode (cname = "string")]
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
index aa57cc5..4ef399c 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
@@ -504,4 +504,17 @@ namespace Gst {
 		[CCode (instance_pos = -1)]
 		public bool type_name_filter (Gst.PluginFeature feature, Gst.TypeNameData data);
 	}
+
+	public struct PollFD {
+		public int fd;
+		public int idx;
+		public static bool can_read (Gst.Poll @set, Gst.PollFD fd);
+		public static bool can_write (Gst.Poll @set, Gst.PollFD fd);
+		public static bool ctl_read (Gst.Poll @set, Gst.PollFD fd, bool active);
+		public static bool ctl_write (Gst.Poll @set, Gst.PollFD fd, bool active);
+		public static bool has_closed (Gst.Poll @set, Gst.PollFD fd);
+		public static bool has_error (Gst.Poll @set, Gst.PollFD fd);
+		public static void ignored (Gst.Poll @set, Gst.PollFD fd);
+		public void init ();
+	}
 }
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
index 279eb4b..8170efc 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
@@ -634,3 +634,4 @@ gst_*_list_copy hidden="1"
 GstPluginFeature.* hidden="1"
 gst_plugin_feature_type_name_filter hidden="1"
 gst_plugin_feature_load transfer_ownership="1" nullable="1"
+GstPollFD hidden="1"



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