]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-0.10: Fix Gst.Poll and Gst.PollFD bindings
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 24 Jun 2010 08:35:39 +0000 (10:35 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 24 Jun 2010 16:02:08 +0000 (18:02 +0200)
vapi/gstreamer-0.10.vapi
vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata

index 0229acbad91673bb5b1049059871a7f6415535de..3c0dd84df3fba034f4df40d67ff1e4555bd4f917 100644 (file)
@@ -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")]
index aa57cc527c6ac380ea791f62594e9ecb7e7b6bf6..4ef399c03df26ef1e64bbf8dff7dbd948c4df995 100644 (file)
@@ -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 ();
+       }
 }
index 279eb4b501c0fe4f257fbf60276bcb5836e64902..8170efcd1e1e57e7adfb9d431d652c5873626010 100644 (file)
@@ -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"