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 [StructLayout(LayoutKind.Sequential)]
13 public partial struct ProtectionMeta : IEquatable<ProtectionMeta> {
17 public Gst.Structure Info {
19 return _info == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (_info, typeof (Gst.Structure), false);
22 _info = value == null ? IntPtr.Zero : value.Handle;
26 public static Gst.ProtectionMeta Zero = new Gst.ProtectionMeta ();
28 public static Gst.ProtectionMeta New(IntPtr raw) {
29 if (raw == IntPtr.Zero)
30 return Gst.ProtectionMeta.Zero;
31 return (Gst.ProtectionMeta) Marshal.PtrToStructure (raw, typeof (Gst.ProtectionMeta));
34 public bool Equals (ProtectionMeta other)
36 return true && Meta.Equals (other.Meta) && Info.Equals (other.Info);
39 public override bool Equals (object other)
41 return other is ProtectionMeta && Equals ((ProtectionMeta) other);
44 public override int GetHashCode ()
46 return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ Info.GetHashCode ();
49 private static GLib.GType GType {
50 get { return GLib.GType.Pointer; }