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 NetControlMessageMeta : IEquatable<NetControlMessageMeta> {
16 private IntPtr _message;
17 public GLib.SocketControlMessage Message {
19 return GLib.Object.GetObject(_message) as GLib.SocketControlMessage;
22 _message = value == null ? IntPtr.Zero : value.Handle;
26 public static Gst.Net.NetControlMessageMeta Zero = new Gst.Net.NetControlMessageMeta ();
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));
34 [DllImport("gstnet-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
35 static extern IntPtr gst_net_control_message_meta_get_info();
37 public static Gst.MetaInfo Info {
39 IntPtr raw_ret = gst_net_control_message_meta_get_info();
40 Gst.MetaInfo ret = Gst.MetaInfo.New (raw_ret);
45 public bool Equals (NetControlMessageMeta other)
47 return true && Meta.Equals (other.Meta) && Message.Equals (other.Message);
50 public override bool Equals (object other)
52 return other is NetControlMessageMeta && Equals ((NetControlMessageMeta) other);
55 public override int GetHashCode ()
57 return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ Message.GetHashCode ();
60 private static GLib.GType GType {
61 get { return GLib.GType.Pointer; }