Move files from gstreamer-sharp into the "subprojects/gstreamer-sharp/" subdir
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst / ProtectionMeta.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Gst {
5
6         using System;
7         using System.Collections;
8         using System.Collections.Generic;
9         using System.Runtime.InteropServices;
10
11 #region Autogenerated code
12         [StructLayout(LayoutKind.Sequential)]
13         public partial struct ProtectionMeta : IEquatable<ProtectionMeta> {
14
15                 public Gst.Meta Meta;
16                 private IntPtr _info;
17                 public Gst.Structure Info {
18                         get {
19                                 return _info == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (_info, typeof (Gst.Structure), false);
20                         }
21                         set {
22                                 _info = value == null ? IntPtr.Zero : value.Handle;
23                         }
24                 }
25
26                 public static Gst.ProtectionMeta Zero = new Gst.ProtectionMeta ();
27
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));
32                 }
33
34                 public bool Equals (ProtectionMeta other)
35                 {
36                         return true && Meta.Equals (other.Meta) && Info.Equals (other.Info);
37                 }
38
39                 public override bool Equals (object other)
40                 {
41                         return other is ProtectionMeta && Equals ((ProtectionMeta) other);
42                 }
43
44                 public override int GetHashCode ()
45                 {
46                         return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ Info.GetHashCode ();
47                 }
48
49                 private static GLib.GType GType {
50                         get { return GLib.GType.Pointer; }
51                 }
52 #endregion
53         }
54 }