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 ValueArray : GLib.Opaque {
14 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
15 static extern IntPtr gst_value_array_get_type();
17 public static GLib.GType GType {
19 IntPtr raw_ret = gst_value_array_get_type();
20 GLib.GType ret = new GLib.GType(raw_ret);
25 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
26 static extern void gst_value_array_append_and_take_value(IntPtr value, IntPtr append_value);
28 public static void AppendAndTakeValue(GLib.Value value, GLib.Value append_value) {
29 IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
30 IntPtr native_append_value = GLib.Marshaller.StructureToPtrAlloc (append_value);
31 gst_value_array_append_and_take_value(native_value, native_append_value);
32 Marshal.FreeHGlobal (native_value);
33 Marshal.FreeHGlobal (native_append_value);
36 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
37 static extern void gst_value_array_append_value(IntPtr value, IntPtr append_value);
39 public static void AppendValue(GLib.Value value, GLib.Value append_value) {
40 IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
41 IntPtr native_append_value = GLib.Marshaller.StructureToPtrAlloc (append_value);
42 gst_value_array_append_value(native_value, native_append_value);
43 Marshal.FreeHGlobal (native_value);
44 Marshal.FreeHGlobal (native_append_value);
47 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
48 static extern uint gst_value_array_get_size(IntPtr value);
50 public static uint GetSize(GLib.Value value) {
51 IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
52 uint raw_ret = gst_value_array_get_size(native_value);
54 Marshal.FreeHGlobal (native_value);
58 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
59 static extern IntPtr gst_value_array_get_value(IntPtr value, uint index);
61 public static GLib.Value GetValue(GLib.Value value, uint index) {
62 IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
63 IntPtr raw_ret = gst_value_array_get_value(native_value, index);
64 GLib.Value ret = (GLib.Value) Marshal.PtrToStructure (raw_ret, typeof (GLib.Value));
65 Marshal.FreeHGlobal (native_value);
69 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
70 static extern IntPtr gst_value_array_init(IntPtr value, uint prealloc);
72 public static GLib.Value Init(GLib.Value value, uint prealloc) {
73 IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
74 IntPtr raw_ret = gst_value_array_init(native_value, prealloc);
75 GLib.Value ret = (GLib.Value) Marshal.PtrToStructure (raw_ret, typeof (GLib.Value));
76 Marshal.FreeHGlobal (native_value);
80 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
81 static extern void gst_value_array_prepend_value(IntPtr value, IntPtr prepend_value);
83 public static void PrependValue(GLib.Value value, GLib.Value prepend_value) {
84 IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
85 IntPtr native_prepend_value = GLib.Marshaller.StructureToPtrAlloc (prepend_value);
86 gst_value_array_prepend_value(native_value, native_prepend_value);
87 Marshal.FreeHGlobal (native_value);
88 Marshal.FreeHGlobal (native_prepend_value);
91 public ValueArray(IntPtr raw) : base(raw) {}
94 // Internal representation of the wrapped structure ABI.
95 static GLib.AbiStruct _abi_info = null;
96 static public GLib.AbiStruct abi_info {
98 if (_abi_info == null)
99 _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
107 // End of the ABI representation.