mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-04 10:51:13 +00:00
74 lines
2.1 KiB
C#
74 lines
2.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 MetaInfo : IEquatable<MetaInfo> {
|
||
|
|
||
|
public GLib.GType Api;
|
||
|
public GLib.GType Type;
|
||
|
private UIntPtr size;
|
||
|
public ulong Size {
|
||
|
get {
|
||
|
return (ulong) size;
|
||
|
}
|
||
|
set {
|
||
|
size = new UIntPtr (value);
|
||
|
}
|
||
|
}
|
||
|
private GstSharp.MetaInitFunctionNative _init_func;
|
||
|
public Gst.MetaInitFunction InitFunc {
|
||
|
get {
|
||
|
return GstSharp.MetaInitFunctionWrapper.GetManagedDelegate (_init_func);
|
||
|
}
|
||
|
}
|
||
|
private GstSharp.MetaFreeFunctionNative _free_func;
|
||
|
public Gst.MetaFreeFunction FreeFunc {
|
||
|
get {
|
||
|
return GstSharp.MetaFreeFunctionWrapper.GetManagedDelegate (_free_func);
|
||
|
}
|
||
|
}
|
||
|
private GstSharp.MetaTransformFunctionNative _transform_func;
|
||
|
public Gst.MetaTransformFunction TransformFunc {
|
||
|
get {
|
||
|
return GstSharp.MetaTransformFunctionWrapper.GetManagedDelegate (_transform_func);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static Gst.MetaInfo Zero = new Gst.MetaInfo ();
|
||
|
|
||
|
public static Gst.MetaInfo New(IntPtr raw) {
|
||
|
if (raw == IntPtr.Zero)
|
||
|
return Gst.MetaInfo.Zero;
|
||
|
return (Gst.MetaInfo) Marshal.PtrToStructure (raw, typeof (Gst.MetaInfo));
|
||
|
}
|
||
|
|
||
|
public bool Equals (MetaInfo other)
|
||
|
{
|
||
|
return true && Api.Equals (other.Api) && Type.Equals (other.Type) && Size.Equals (other.Size) && InitFunc.Equals (other.InitFunc) && FreeFunc.Equals (other.FreeFunc) && TransformFunc.Equals (other.TransformFunc);
|
||
|
}
|
||
|
|
||
|
public override bool Equals (object other)
|
||
|
{
|
||
|
return other is MetaInfo && Equals ((MetaInfo) other);
|
||
|
}
|
||
|
|
||
|
public override int GetHashCode ()
|
||
|
{
|
||
|
return this.GetType ().FullName.GetHashCode () ^ Api.GetHashCode () ^ Type.GetHashCode () ^ Size.GetHashCode () ^ InitFunc.GetHashCode () ^ FreeFunc.GetHashCode () ^ TransformFunc.GetHashCode ();
|
||
|
}
|
||
|
|
||
|
private static GLib.GType GType {
|
||
|
get { return GLib.GType.Pointer; }
|
||
|
}
|
||
|
#endregion
|
||
|
}
|
||
|
}
|