Back to development
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst / AtomicQueue.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 AtomicQueue : GLib.Opaque {
13
14                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
15                 static extern IntPtr gst_atomic_queue_get_type();
16
17                 public static GLib.GType GType { 
18                         get {
19                                 IntPtr raw_ret = gst_atomic_queue_get_type();
20                                 GLib.GType ret = new GLib.GType(raw_ret);
21                                 return ret;
22                         }
23                 }
24
25                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
26                 static extern uint gst_atomic_queue_length(IntPtr raw);
27
28                 public uint Length() {
29                         uint raw_ret = gst_atomic_queue_length(Handle);
30                         uint ret = raw_ret;
31                         return ret;
32                 }
33
34                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
35                 static extern IntPtr gst_atomic_queue_peek(IntPtr raw);
36
37                 public IntPtr Peek() {
38                         IntPtr raw_ret = gst_atomic_queue_peek(Handle);
39                         IntPtr ret = raw_ret;
40                         return ret;
41                 }
42
43                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
44                 static extern IntPtr gst_atomic_queue_pop(IntPtr raw);
45
46                 public IntPtr Pop() {
47                         IntPtr raw_ret = gst_atomic_queue_pop(Handle);
48                         IntPtr ret = raw_ret;
49                         return ret;
50                 }
51
52                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
53                 static extern void gst_atomic_queue_push(IntPtr raw, IntPtr data);
54
55                 public void Push(IntPtr data) {
56                         gst_atomic_queue_push(Handle, data);
57                 }
58
59                 public AtomicQueue(IntPtr raw) : base(raw) {}
60
61                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
62                 static extern IntPtr gst_atomic_queue_new(uint initial_size);
63
64                 public AtomicQueue (uint initial_size) 
65                 {
66                         Raw = gst_atomic_queue_new(initial_size);
67                 }
68
69                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
70                 static extern void gst_atomic_queue_ref(IntPtr raw);
71
72                 protected override void Ref (IntPtr raw)
73                 {
74                         if (!Owned) {
75                                 gst_atomic_queue_ref (raw);
76                                 Owned = true;
77                         }
78                 }
79
80                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
81                 static extern void gst_atomic_queue_unref(IntPtr raw);
82
83                 protected override void Unref (IntPtr raw)
84                 {
85                         if (Owned) {
86                                 gst_atomic_queue_unref (raw);
87                                 Owned = false;
88                         }
89                 }
90
91                 protected override Action<IntPtr> DisposeUnmanagedFunc {
92                         get {
93                                 return gst_atomic_queue_unref;
94                         }
95                 }
96
97
98                 // Internal representation of the wrapped structure ABI.
99                 static GLib.AbiStruct _abi_info = null;
100                 static public GLib.AbiStruct abi_info {
101                         get {
102                                 if (_abi_info == null)
103                                         _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{ 
104                                         });
105
106                                 return _abi_info;
107                         }
108                 }
109
110
111                 // End of the ABI representation.
112
113 #endregion
114         }
115 }