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 AtomicQueue : GLib.Opaque {
14 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
15 static extern IntPtr gst_atomic_queue_get_type();
17 public static GLib.GType GType {
19 IntPtr raw_ret = gst_atomic_queue_get_type();
20 GLib.GType ret = new GLib.GType(raw_ret);
25 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
26 static extern uint gst_atomic_queue_length(IntPtr raw);
28 public uint Length() {
29 uint raw_ret = gst_atomic_queue_length(Handle);
34 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
35 static extern IntPtr gst_atomic_queue_peek(IntPtr raw);
37 public IntPtr Peek() {
38 IntPtr raw_ret = gst_atomic_queue_peek(Handle);
43 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
44 static extern IntPtr gst_atomic_queue_pop(IntPtr raw);
47 IntPtr raw_ret = gst_atomic_queue_pop(Handle);
52 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
53 static extern void gst_atomic_queue_push(IntPtr raw, IntPtr data);
55 public void Push(IntPtr data) {
56 gst_atomic_queue_push(Handle, data);
59 public AtomicQueue(IntPtr raw) : base(raw) {}
61 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
62 static extern IntPtr gst_atomic_queue_new(uint initial_size);
64 public AtomicQueue (uint initial_size)
66 Raw = gst_atomic_queue_new(initial_size);
69 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
70 static extern void gst_atomic_queue_ref(IntPtr raw);
72 protected override void Ref (IntPtr raw)
75 gst_atomic_queue_ref (raw);
80 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
81 static extern void gst_atomic_queue_unref(IntPtr raw);
83 protected override void Unref (IntPtr raw)
86 gst_atomic_queue_unref (raw);
91 protected override Action<IntPtr> DisposeUnmanagedFunc {
93 return gst_atomic_queue_unref;
98 // Internal representation of the wrapped structure ABI.
99 static GLib.AbiStruct _abi_info = null;
100 static public GLib.AbiStruct abi_info {
102 if (_abi_info == null)
103 _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
111 // End of the ABI representation.