Back to development
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst.Net / NetControlMessageMeta.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Gst.Net {
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 NetControlMessageMeta : IEquatable<NetControlMessageMeta> {
14
15                 public Gst.Meta Meta;
16                 private IntPtr _message;
17                 public GLib.SocketControlMessage Message {
18                         get {
19                                 return GLib.Object.GetObject(_message) as GLib.SocketControlMessage;
20                         }
21                         set {
22                                 _message = value == null ? IntPtr.Zero : value.Handle;
23                         }
24                 }
25
26                 public static Gst.Net.NetControlMessageMeta Zero = new Gst.Net.NetControlMessageMeta ();
27
28                 public static Gst.Net.NetControlMessageMeta New(IntPtr raw) {
29                         if (raw == IntPtr.Zero)
30                                 return Gst.Net.NetControlMessageMeta.Zero;
31                         return (Gst.Net.NetControlMessageMeta) Marshal.PtrToStructure (raw, typeof (Gst.Net.NetControlMessageMeta));
32                 }
33
34                 [DllImport("gstnet-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
35                 static extern IntPtr gst_net_control_message_meta_get_info();
36
37                 public static Gst.MetaInfo Info { 
38                         get {
39                                 IntPtr raw_ret = gst_net_control_message_meta_get_info();
40                                 Gst.MetaInfo ret = Gst.MetaInfo.New (raw_ret);
41                                 return ret;
42                         }
43                 }
44
45                 public bool Equals (NetControlMessageMeta other)
46                 {
47                         return true && Meta.Equals (other.Meta) && Message.Equals (other.Message);
48                 }
49
50                 public override bool Equals (object other)
51                 {
52                         return other is NetControlMessageMeta && Equals ((NetControlMessageMeta) other);
53                 }
54
55                 public override int GetHashCode ()
56                 {
57                         return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ Message.GetHashCode ();
58                 }
59
60                 private static GLib.GType GType {
61                         get { return GLib.GType.Pointer; }
62                 }
63 #endregion
64         }
65 }