// This file was generated by the Gtk# code generator. // Any changes made will be lost if regenerated. namespace Gst.WebRTC { using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; #region Autogenerated code [StructLayout(LayoutKind.Sequential)] public partial struct WebRTCICECandidateStats : IEquatable { public string Ipaddr; public uint Port; public uint StreamId; public string Type; public string Proto; public string RelayProto; public uint Prio; public string Url; [MarshalAs (UnmanagedType.ByValArray, SizeConst=20)] public IntPtr[] _gstGstReserved; public static Gst.WebRTC.WebRTCICECandidateStats Zero = new Gst.WebRTC.WebRTCICECandidateStats (); public static Gst.WebRTC.WebRTCICECandidateStats New(IntPtr raw) { if (raw == IntPtr.Zero) return Gst.WebRTC.WebRTCICECandidateStats.Zero; return (Gst.WebRTC.WebRTCICECandidateStats) Marshal.PtrToStructure (raw, typeof (Gst.WebRTC.WebRTCICECandidateStats)); } [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gst_webrtc_ice_candidate_stats_get_type(); public static GLib.GType GType { get { IntPtr raw_ret = gst_webrtc_ice_candidate_stats_get_type(); GLib.GType ret = new GLib.GType(raw_ret); return ret; } } public bool Equals (WebRTCICECandidateStats other) { return true && Ipaddr.Equals (other.Ipaddr) && Port.Equals (other.Port) && StreamId.Equals (other.StreamId) && Type.Equals (other.Type) && Proto.Equals (other.Proto) && RelayProto.Equals (other.RelayProto) && Prio.Equals (other.Prio) && Url.Equals (other.Url); } public override bool Equals (object other) { return other is WebRTCICECandidateStats && Equals ((WebRTCICECandidateStats) other); } public override int GetHashCode () { return this.GetType ().FullName.GetHashCode () ^ Ipaddr.GetHashCode () ^ Port.GetHashCode () ^ StreamId.GetHashCode () ^ Type.GetHashCode () ^ Proto.GetHashCode () ^ RelayProto.GetHashCode () ^ Prio.GetHashCode () ^ Url.GetHashCode (); } public static explicit operator GLib.Value (Gst.WebRTC.WebRTCICECandidateStats boxed) { GLib.Value val = GLib.Value.Empty; val.Init (Gst.WebRTC.WebRTCICECandidateStats.GType); val.Val = boxed; return val; } public static explicit operator Gst.WebRTC.WebRTCICECandidateStats (GLib.Value val) { return (Gst.WebRTC.WebRTCICECandidateStats) val.Val; } #endregion } }