1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
7 using System.Collections;
8 using System.Collections.Generic;
9 using System.Runtime.InteropServices;
11 #region Autogenerated code
12 public partial class Poll : GLib.Opaque {
14 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
15 static extern bool gst_poll_add_fd(IntPtr raw, IntPtr fd);
17 public bool AddFd(Gst.PollFD fd) {
18 IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc (fd);
19 bool raw_ret = gst_poll_add_fd(Handle, native_fd);
21 Marshal.FreeHGlobal (native_fd);
25 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
26 static extern bool gst_poll_fd_can_read(IntPtr raw, IntPtr fd);
28 public bool FdCanRead(Gst.PollFD fd) {
29 IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc (fd);
30 bool raw_ret = gst_poll_fd_can_read(Handle, native_fd);
32 Marshal.FreeHGlobal (native_fd);
36 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
37 static extern bool gst_poll_fd_can_write(IntPtr raw, IntPtr fd);
39 public bool FdCanWrite(Gst.PollFD fd) {
40 IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc (fd);
41 bool raw_ret = gst_poll_fd_can_write(Handle, native_fd);
43 Marshal.FreeHGlobal (native_fd);
47 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
48 static extern bool gst_poll_fd_ctl_pri(IntPtr raw, IntPtr fd, bool active);
50 public bool FdCtlPri(Gst.PollFD fd, bool active) {
51 IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc (fd);
52 bool raw_ret = gst_poll_fd_ctl_pri(Handle, native_fd, active);
54 Marshal.FreeHGlobal (native_fd);
58 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
59 static extern bool gst_poll_fd_ctl_read(IntPtr raw, IntPtr fd, bool active);
61 public bool FdCtlRead(Gst.PollFD fd, bool active) {
62 IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc (fd);
63 bool raw_ret = gst_poll_fd_ctl_read(Handle, native_fd, active);
65 Marshal.FreeHGlobal (native_fd);
69 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
70 static extern bool gst_poll_fd_ctl_write(IntPtr raw, IntPtr fd, bool active);
72 public bool FdCtlWrite(Gst.PollFD fd, bool active) {
73 IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc (fd);
74 bool raw_ret = gst_poll_fd_ctl_write(Handle, native_fd, active);
76 Marshal.FreeHGlobal (native_fd);
80 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
81 static extern bool gst_poll_fd_has_closed(IntPtr raw, IntPtr fd);
83 public bool FdHasClosed(Gst.PollFD fd) {
84 IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc (fd);
85 bool raw_ret = gst_poll_fd_has_closed(Handle, native_fd);
87 Marshal.FreeHGlobal (native_fd);
91 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
92 static extern bool gst_poll_fd_has_error(IntPtr raw, IntPtr fd);
94 public bool FdHasError(Gst.PollFD fd) {
95 IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc (fd);
96 bool raw_ret = gst_poll_fd_has_error(Handle, native_fd);
98 Marshal.FreeHGlobal (native_fd);
102 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
103 static extern bool gst_poll_fd_has_pri(IntPtr raw, IntPtr fd);
105 public bool FdHasPri(Gst.PollFD fd) {
106 IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc (fd);
107 bool raw_ret = gst_poll_fd_has_pri(Handle, native_fd);
109 Marshal.FreeHGlobal (native_fd);
113 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
114 static extern void gst_poll_fd_ignored(IntPtr raw, IntPtr fd);
116 public void FdIgnored(Gst.PollFD fd) {
117 IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc (fd);
118 gst_poll_fd_ignored(Handle, native_fd);
119 Marshal.FreeHGlobal (native_fd);
122 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
123 static extern void gst_poll_get_read_gpollfd(IntPtr raw, out GLib.PollFD fd);
125 public GLib.PollFD ReadGpollfd {
128 gst_poll_get_read_gpollfd(Handle, out fd);
133 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
134 static extern bool gst_poll_read_control(IntPtr raw);
136 public bool ReadControl() {
137 bool raw_ret = gst_poll_read_control(Handle);
142 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
143 static extern bool gst_poll_remove_fd(IntPtr raw, IntPtr fd);
145 public bool RemoveFd(Gst.PollFD fd) {
146 IntPtr native_fd = GLib.Marshaller.StructureToPtrAlloc (fd);
147 bool raw_ret = gst_poll_remove_fd(Handle, native_fd);
149 Marshal.FreeHGlobal (native_fd);
153 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
154 static extern void gst_poll_restart(IntPtr raw);
156 public void Restart() {
157 gst_poll_restart(Handle);
160 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
161 static extern bool gst_poll_set_controllable(IntPtr raw, bool controllable);
163 public bool SetControllable(bool controllable) {
164 bool raw_ret = gst_poll_set_controllable(Handle, controllable);
169 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
170 static extern void gst_poll_set_flushing(IntPtr raw, bool flushing);
172 public bool Flushing {
174 gst_poll_set_flushing(Handle, value);
178 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
179 static extern int gst_poll_wait(IntPtr raw, ulong timeout);
181 public int Wait(ulong timeout) {
182 int raw_ret = gst_poll_wait(Handle, timeout);
187 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
188 static extern bool gst_poll_write_control(IntPtr raw);
190 public bool WriteControl() {
191 bool raw_ret = gst_poll_write_control(Handle);
196 public Poll(IntPtr raw) : base(raw) {}
198 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
199 static extern void gst_poll_free(IntPtr raw);
201 protected override void Free (IntPtr raw)
206 protected override Action<IntPtr> DisposeUnmanagedFunc {
208 return gst_poll_free;
213 // Internal representation of the wrapped structure ABI.
214 static GLib.AbiStruct _abi_info = null;
215 static public GLib.AbiStruct abi_info {
217 if (_abi_info == null)
218 _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
226 // End of the ABI representation.