From: Sebastian Dröge Date: Thu, 24 Jun 2010 08:35:39 +0000 (+0200) Subject: gstreamer-0.10: Fix Gst.Poll and Gst.PollFD bindings X-Git-Tag: 0.9.3~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ed635d01338df9b3ecf28be1ba649f7518c33c5;p=thirdparty%2Fvala.git gstreamer-0.10: Fix Gst.Poll and Gst.PollFD bindings --- diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi index 0229acbad..3c0dd84df 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 aa57cc527..4ef399c03 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 279eb4b50..8170efcd1 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"