Back to development
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst / Poll.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Gst {
5
6         using System;
7         using System.Collections;
8         using System.Collections.Generic;
9         using System.Runtime.InteropServices;
10
11 #region Autogenerated code
12         public partial class Poll : GLib.Opaque {
13
14                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
15                 static extern bool gst_poll_add_fd(IntPtr raw, IntPtr fd);
16
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);
20                         bool ret = raw_ret;
21                         Marshal.FreeHGlobal (native_fd);
22                         return ret;
23                 }
24
25                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
26                 static extern bool gst_poll_fd_can_read(IntPtr raw, IntPtr fd);
27
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);
31                         bool ret = raw_ret;
32                         Marshal.FreeHGlobal (native_fd);
33                         return ret;
34                 }
35
36                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
37                 static extern bool gst_poll_fd_can_write(IntPtr raw, IntPtr fd);
38
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);
42                         bool ret = raw_ret;
43                         Marshal.FreeHGlobal (native_fd);
44                         return ret;
45                 }
46
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);
49
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);
53                         bool ret = raw_ret;
54                         Marshal.FreeHGlobal (native_fd);
55                         return ret;
56                 }
57
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);
60
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);
64                         bool ret = raw_ret;
65                         Marshal.FreeHGlobal (native_fd);
66                         return ret;
67                 }
68
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);
71
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);
75                         bool ret = raw_ret;
76                         Marshal.FreeHGlobal (native_fd);
77                         return ret;
78                 }
79
80                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
81                 static extern bool gst_poll_fd_has_closed(IntPtr raw, IntPtr fd);
82
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);
86                         bool ret = raw_ret;
87                         Marshal.FreeHGlobal (native_fd);
88                         return ret;
89                 }
90
91                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
92                 static extern bool gst_poll_fd_has_error(IntPtr raw, IntPtr fd);
93
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);
97                         bool ret = raw_ret;
98                         Marshal.FreeHGlobal (native_fd);
99                         return ret;
100                 }
101
102                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
103                 static extern bool gst_poll_fd_has_pri(IntPtr raw, IntPtr fd);
104
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);
108                         bool ret = raw_ret;
109                         Marshal.FreeHGlobal (native_fd);
110                         return ret;
111                 }
112
113                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
114                 static extern void gst_poll_fd_ignored(IntPtr raw, IntPtr fd);
115
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);
120                 }
121
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);
124
125                 public GLib.PollFD ReadGpollfd { 
126                         get {
127                                 GLib.PollFD fd;
128                                 gst_poll_get_read_gpollfd(Handle, out fd);
129                                 return fd;
130                         }
131                 }
132
133                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
134                 static extern bool gst_poll_read_control(IntPtr raw);
135
136                 public bool ReadControl() {
137                         bool raw_ret = gst_poll_read_control(Handle);
138                         bool ret = raw_ret;
139                         return ret;
140                 }
141
142                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
143                 static extern bool gst_poll_remove_fd(IntPtr raw, IntPtr fd);
144
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);
148                         bool ret = raw_ret;
149                         Marshal.FreeHGlobal (native_fd);
150                         return ret;
151                 }
152
153                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
154                 static extern void gst_poll_restart(IntPtr raw);
155
156                 public void Restart() {
157                         gst_poll_restart(Handle);
158                 }
159
160                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
161                 static extern bool gst_poll_set_controllable(IntPtr raw, bool controllable);
162
163                 public bool SetControllable(bool controllable) {
164                         bool raw_ret = gst_poll_set_controllable(Handle, controllable);
165                         bool ret = raw_ret;
166                         return ret;
167                 }
168
169                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
170                 static extern void gst_poll_set_flushing(IntPtr raw, bool flushing);
171
172                 public bool Flushing { 
173                         set {
174                                 gst_poll_set_flushing(Handle, value);
175                         }
176                 }
177
178                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
179                 static extern int gst_poll_wait(IntPtr raw, ulong timeout);
180
181                 public int Wait(ulong timeout) {
182                         int raw_ret = gst_poll_wait(Handle, timeout);
183                         int ret = raw_ret;
184                         return ret;
185                 }
186
187                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
188                 static extern bool gst_poll_write_control(IntPtr raw);
189
190                 public bool WriteControl() {
191                         bool raw_ret = gst_poll_write_control(Handle);
192                         bool ret = raw_ret;
193                         return ret;
194                 }
195
196                 public Poll(IntPtr raw) : base(raw) {}
197
198                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
199                 static extern void gst_poll_free(IntPtr raw);
200
201                 protected override void Free (IntPtr raw)
202                 {
203                         gst_poll_free (raw);
204                 }
205
206                 protected override Action<IntPtr> DisposeUnmanagedFunc {
207                         get {
208                                 return gst_poll_free;
209                         }
210                 }
211
212
213                 // Internal representation of the wrapped structure ABI.
214                 static GLib.AbiStruct _abi_info = null;
215                 static public GLib.AbiStruct abi_info {
216                         get {
217                                 if (_abi_info == null)
218                                         _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{ 
219                                         });
220
221                                 return _abi_info;
222                         }
223                 }
224
225
226                 // End of the ABI representation.
227
228 #endregion
229         }
230 }