Back to development
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst / Pipeline.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 Pipeline : Gst.Bin {
13
14                 public Pipeline (IntPtr raw) : base(raw) {}
15
16                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
17                 static extern IntPtr gst_pipeline_new(IntPtr name);
18
19                 public Pipeline (string name) : base (IntPtr.Zero)
20                 {
21                         if (GetType () != typeof (Pipeline)) {
22                                 var vals = new List<GLib.Value> ();
23                                 var names = new List<string> ();
24                                 names.Add ("name");
25                                 vals.Add (new GLib.Value (name));
26                                 CreateNativeObject (names.ToArray (), vals.ToArray ());
27                                 return;
28                         }
29                         IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
30                         Raw = gst_pipeline_new(native_name);
31                         GLib.Marshaller.Free (native_name);
32                 }
33
34                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
35                 static extern bool gst_pipeline_get_auto_flush_bus(IntPtr raw);
36
37                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
38                 static extern void gst_pipeline_set_auto_flush_bus(IntPtr raw, bool auto_flush);
39
40                 [GLib.Property ("auto-flush-bus")]
41                 public bool AutoFlushBus {
42                         get  {
43                                 bool raw_ret = gst_pipeline_get_auto_flush_bus(Handle);
44                                 bool ret = raw_ret;
45                                 return ret;
46                         }
47                         set  {
48                                 gst_pipeline_set_auto_flush_bus(Handle, value);
49                         }
50                 }
51
52                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
53                 static extern ulong gst_pipeline_get_delay(IntPtr raw);
54
55                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
56                 static extern void gst_pipeline_set_delay(IntPtr raw, ulong delay);
57
58                 [GLib.Property ("delay")]
59                 public ulong Delay {
60                         get  {
61                                 ulong raw_ret = gst_pipeline_get_delay(Handle);
62                                 ulong ret = raw_ret;
63                                 return ret;
64                         }
65                         set  {
66                                 gst_pipeline_set_delay(Handle, value);
67                         }
68                 }
69
70                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
71                 static extern ulong gst_pipeline_get_latency(IntPtr raw);
72
73                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
74                 static extern void gst_pipeline_set_latency(IntPtr raw, ulong latency);
75
76                 [GLib.Property ("latency")]
77                 public ulong Latency {
78                         get  {
79                                 ulong raw_ret = gst_pipeline_get_latency(Handle);
80                                 ulong ret = raw_ret;
81                                 return ret;
82                         }
83                         set  {
84                                 gst_pipeline_set_latency(Handle, value);
85                         }
86                 }
87
88                 public Gst.Clock FixedClock {
89                         get {
90                                 unsafe {
91                                         IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("fixed_clock"));
92                                         return GLib.Object.GetObject((*raw_ptr)) as Gst.Clock;
93                                 }
94                         }
95                 }
96
97                 public ulong StreamTime {
98                         get {
99                                 unsafe {
100                                         ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("stream_time"));
101                                         return (*raw_ptr);
102                                 }
103                         }
104                 }
105
106                 public ulong DelayField {
107                         get {
108                                 unsafe {
109                                         ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("delay"));
110                                         return (*raw_ptr);
111                                 }
112                         }
113                 }
114
115
116                 // Internal representation of the wrapped structure ABI.
117                 static GLib.AbiStruct _class_abi = null;
118                 static public new GLib.AbiStruct class_abi {
119                         get {
120                                 if (_class_abi == null)
121                                         _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{ 
122                                                 new GLib.AbiField("_gst_reserved"
123                                                         , Gst.Bin.class_abi.Fields
124                                                         , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
125                                                         , null
126                                                         , null
127                                                         , (uint) Marshal.SizeOf(typeof(IntPtr))
128                                                         , 0
129                                                         ),
130                                         });
131
132                                 return _class_abi;
133                         }
134                 }
135
136
137                 // End of the ABI representation.
138
139                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
140                 static extern IntPtr gst_pipeline_get_type();
141
142                 public static new GLib.GType GType { 
143                         get {
144                                 IntPtr raw_ret = gst_pipeline_get_type();
145                                 GLib.GType ret = new GLib.GType(raw_ret);
146                                 return ret;
147                         }
148                 }
149
150                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
151                 static extern void gst_pipeline_auto_clock(IntPtr raw);
152
153                 public void AutoClock() {
154                         gst_pipeline_auto_clock(Handle);
155                 }
156
157                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
158                 static extern IntPtr gst_pipeline_get_pipeline_clock(IntPtr raw);
159
160                 public Gst.Clock PipelineClock { 
161                         get {
162                                 IntPtr raw_ret = gst_pipeline_get_pipeline_clock(Handle);
163                                 Gst.Clock ret = GLib.Object.GetObject(raw_ret, true) as Gst.Clock;
164                                 return ret;
165                         }
166                 }
167
168                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
169                 static extern void gst_pipeline_use_clock(IntPtr raw, IntPtr clock);
170
171                 public void UseClock(Gst.Clock clock) {
172                         gst_pipeline_use_clock(Handle, clock == null ? IntPtr.Zero : clock.Handle);
173                 }
174
175                 public void UseClock() {
176                         UseClock (null);
177                 }
178
179
180                 // Internal representation of the wrapped structure ABI.
181                 static GLib.AbiStruct _abi_info = null;
182                 static public new GLib.AbiStruct abi_info {
183                         get {
184                                 if (_abi_info == null)
185                                         _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{ 
186                                                 new GLib.AbiField("fixed_clock"
187                                                         , Gst.Bin.abi_info.Fields
188                                                         , (uint) Marshal.SizeOf(typeof(IntPtr)) // fixed_clock
189                                                         , null
190                                                         , "stream_time"
191                                                         , (uint) Marshal.SizeOf(typeof(IntPtr))
192                                                         , 0
193                                                         ),
194                                                 new GLib.AbiField("stream_time"
195                                                         , -1
196                                                         , (uint) Marshal.SizeOf(typeof(ulong)) // stream_time
197                                                         , "fixed_clock"
198                                                         , "delay"
199                                                         , (long) Marshal.OffsetOf(typeof(GstPipeline_stream_timeAlign), "stream_time")
200                                                         , 0
201                                                         ),
202                                                 new GLib.AbiField("delay"
203                                                         , -1
204                                                         , (uint) Marshal.SizeOf(typeof(ulong)) // delay
205                                                         , "stream_time"
206                                                         , "priv"
207                                                         , (long) Marshal.OffsetOf(typeof(GstPipeline_delayAlign), "delay")
208                                                         , 0
209                                                         ),
210                                                 new GLib.AbiField("priv"
211                                                         , -1
212                                                         , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
213                                                         , "delay"
214                                                         , "_gst_reserved"
215                                                         , (uint) Marshal.SizeOf(typeof(IntPtr))
216                                                         , 0
217                                                         ),
218                                                 new GLib.AbiField("_gst_reserved"
219                                                         , -1
220                                                         , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
221                                                         , "priv"
222                                                         , null
223                                                         , (uint) Marshal.SizeOf(typeof(IntPtr))
224                                                         , 0
225                                                         ),
226                                         });
227
228                                 return _abi_info;
229                         }
230                 }
231
232                 [StructLayout(LayoutKind.Sequential)]
233                 public struct GstPipeline_stream_timeAlign
234                 {
235                         sbyte f1;
236                         private ulong stream_time;
237                 }
238
239                 [StructLayout(LayoutKind.Sequential)]
240                 public struct GstPipeline_delayAlign
241                 {
242                         sbyte f1;
243                         private ulong delay;
244                 }
245
246
247                 // End of the ABI representation.
248
249 #endregion
250         }
251 }