gstreamer/sources/generated/Gst/Meta.cs
Thibault Saunier 2d00f898fb Move generated files to dedicated folders named by namespace
Making it cleaner and simpler to navigate and removing previous
ugly and now useless hack where we were renaming files ourself
to make meson happy.
2018-03-11 21:47:35 -03:00

109 lines
4.1 KiB
C#

// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct Meta : IEquatable<Meta> {
public Gst.MetaFlags Flags;
private IntPtr _info;
public Gst.MetaInfo info {
get { return Gst.MetaInfo.New (_info); }
}
public static Gst.Meta Zero = new Gst.Meta ();
public static Gst.Meta New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Gst.Meta.Zero;
return (Gst.Meta) Marshal.PtrToStructure (raw, typeof (Gst.Meta));
}
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_meta_api_type_get_tags(IntPtr api);
public static string[] ApiTypeGetTags(GLib.GType api) {
IntPtr raw_ret = gst_meta_api_type_get_tags(api.Val);
string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, false);
return ret;
}
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_meta_api_type_has_tag(IntPtr api, uint tag);
public static bool ApiTypeHasTag(GLib.GType api, uint tag) {
bool raw_ret = gst_meta_api_type_has_tag(api.Val, tag);
bool ret = raw_ret;
return ret;
}
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_meta_api_type_register(IntPtr api, IntPtr tags);
public static GLib.GType ApiTypeRegister(string api, string tags) {
IntPtr native_api = GLib.Marshaller.StringToPtrGStrdup (api);
IntPtr native_tags = GLib.Marshaller.StringToPtrGStrdup (tags);
IntPtr raw_ret = gst_meta_api_type_register(native_api, native_tags);
GLib.GType ret = new GLib.GType(raw_ret);
GLib.Marshaller.Free (native_api);
GLib.Marshaller.Free (native_tags);
return ret;
}
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_meta_get_info(IntPtr impl);
public static Gst.MetaInfo GetInfo(string impl) {
IntPtr native_impl = GLib.Marshaller.StringToPtrGStrdup (impl);
IntPtr raw_ret = gst_meta_get_info(native_impl);
Gst.MetaInfo ret = Gst.MetaInfo.New (raw_ret);
GLib.Marshaller.Free (native_impl);
return ret;
}
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_meta_register(IntPtr api, IntPtr impl, UIntPtr size, GstSharp.MetaInitFunctionNative init_func, GstSharp.MetaFreeFunctionNative free_func, GstSharp.MetaTransformFunctionNative transform_func);
public static Gst.MetaInfo Register(GLib.GType api, string impl, ulong size, Gst.MetaInitFunction init_func, Gst.MetaFreeFunction free_func, Gst.MetaTransformFunction transform_func) {
IntPtr native_impl = GLib.Marshaller.StringToPtrGStrdup (impl);
GstSharp.MetaInitFunctionWrapper init_func_wrapper = new GstSharp.MetaInitFunctionWrapper (init_func);
init_func_wrapper.PersistUntilCalled ();
GstSharp.MetaFreeFunctionWrapper free_func_wrapper = new GstSharp.MetaFreeFunctionWrapper (free_func);
free_func_wrapper.PersistUntilCalled ();
GstSharp.MetaTransformFunctionWrapper transform_func_wrapper = new GstSharp.MetaTransformFunctionWrapper (transform_func);
transform_func_wrapper.PersistUntilCalled ();
IntPtr raw_ret = gst_meta_register(api.Val, native_impl, new UIntPtr (size), init_func_wrapper.NativeDelegate, free_func_wrapper.NativeDelegate, transform_func_wrapper.NativeDelegate);
Gst.MetaInfo ret = Gst.MetaInfo.New (raw_ret);
GLib.Marshaller.Free (native_impl);
return ret;
}
public bool Equals (Meta other)
{
return true && Flags.Equals (other.Flags) && info.Equals (other.info);
}
public override bool Equals (object other)
{
return other is Meta && Equals ((Meta) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Flags.GetHashCode () ^ info.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}