From: Olivier CrĂȘte Date: Thu, 24 Jun 2021 18:46:47 +0000 (-0400) Subject: Update webrtc bindings X-Git-Tag: 1.19.3~483^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=239320e19042a7633ea3f716bd061f6891f77a9d;p=platform%2Fupstream%2Fgstreamer.git Update webrtc bindings Part-of: --- diff --git a/girs/GstWebRTC-1.0.gir b/girs/GstWebRTC-1.0.gir index c43e3dc..e6712f0 100644 --- a/girs/GstWebRTC-1.0.gir +++ b/girs/GstWebRTC-1.0.gir @@ -113,7 +113,7 @@ and/or use gtk-doc annotations. --> c:identifier="GST_IS_WEBRTC_RTP_TRANSCEIVER" introspectable="0"> + line="32"/> @@ -123,7 +123,7 @@ and/or use gtk-doc annotations. --> c:identifier="GST_IS_WEBRTC_RTP_TRANSCEIVER_CLASS" introspectable="0"> + line="34"/> @@ -156,24 +156,6 @@ and/or use gtk-doc annotations. --> - - - - - - - - - - - - - - @@ -292,7 +274,7 @@ and/or use gtk-doc annotations. --> c:identifier="GST_WEBRTC_RTP_TRANSCEIVER" introspectable="0"> + line="31"/> @@ -302,7 +284,7 @@ and/or use gtk-doc annotations. --> c:identifier="GST_WEBRTC_RTP_TRANSCEIVER_CLASS" introspectable="0"> + line="33"/> @@ -312,7 +294,7 @@ and/or use gtk-doc annotations. --> c:identifier="GST_WEBRTC_RTP_TRANSCEIVER_GET_CLASS" introspectable="0"> + line="35"/> @@ -325,31 +307,39 @@ and/or use gtk-doc annotations. --> c:type="GstWebRTCBundlePolicy"> GST_WEBRTC_BUNDLE_POLICY_NONE: none -GST_WEBRTC_BUNDLE_POLICY_BALANCED: balanced -GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT: max-compat -GST_WEBRTC_BUNDLE_POLICY_MAX_BUNDLE: max-bundle -See https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-24#section-4.1.1 + line="340">See https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-24#section-4.1.1 for more information. + none + balanced + max-compat + max-bundle glib:type-name="GstWebRTCDTLSTransport" glib:get-type="gst_webrtc_dtls_transport_get_type" glib:type-struct="WebRTCDTLSTransportClass"> - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -447,47 +408,12 @@ for more information. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - Close the @channel. - - - - - - - a #GstWebRTCDataChannel - - - - - - Send @data as a data message over @channel. - - - - - - - a #GstWebRTCDataChannel - - - - a #GBytes or %NULL - - - - - - Send @str as a string message over @channel. - - - - - - - a #GstWebRTCDataChannel - - - - a string or %NULL - - - - + Close the @channel. - - - - - - - a #GstWebRTCDataChannel - - - - - - Signal that the data channel reached a low buffered amount. Should only be used by subclasses. - - - - - - - a #GstWebRTCDataChannel - - - - - - Signal that the data channel was closed. Should only be used by subclasses. - - - - - - - a #GstWebRTCDataChannel - - - - - - Signal that the data channel had an error. Should only be used by subclasses. - - - - - - - a #GstWebRTCDataChannel - - - - a #GError - - - - - - Signal that the data channel received a data message. Should only be used by subclasses. - - - - - - - a #GstWebRTCDataChannel - - - - a #GBytes or %NULL - - - - - - Signal that the data channel received a string message. Should only be used by subclasses. - - - - - - - a #GstWebRTCDataChannel - - - - a string or %NULL - - - - - - Signal that the data channel was opened. Should only be used by subclasses. + line="545">Close the @channel. + line="46"/> @@ -764,7 +482,7 @@ for more information. a #GstWebRTCDataChannel + line="547">a #GstWebRTCDataChannel @@ -773,9 +491,9 @@ for more information. c:identifier="gst_webrtc_data_channel_send_data"> Send @data as a data message over @channel. + line="507">Send @data as a data message over @channel. + line="40"/> @@ -783,7 +501,7 @@ for more information. a #GstWebRTCDataChannel + line="509">a #GstWebRTCDataChannel allow-none="1"> a #GBytes or %NULL + line="510">a #GBytes or %NULL @@ -801,9 +519,9 @@ for more information. c:identifier="gst_webrtc_data_channel_send_string"> Send @str as a string message over @channel. + line="526">Send @str as a string message over @channel. + line="43"/> @@ -811,7 +529,7 @@ for more information. a #GstWebRTCDataChannel + line="528">a #GstWebRTCDataChannel allow-none="1"> a string or %NULL + line="529">a string or %NULL @@ -884,55 +602,10 @@ for more information. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Close the data channel + line="353">Close the data channel @@ -955,7 +628,7 @@ for more information. the #GError thrown + line="299">the #GError thrown @@ -971,7 +644,7 @@ for more information. allow-none="1"> a #GBytes of the data received + line="308">a #GBytes of the data received @@ -987,7 +660,7 @@ for more information. allow-none="1"> the data received as a string + line="317">the data received as a string @@ -1008,7 +681,7 @@ for more information. allow-none="1"> a #GBytes with the data + line="334">a #GBytes with the data @@ -1024,7 +697,7 @@ for more information. allow-none="1"> the data to send as a string + line="345">the data to send as a string @@ -1032,86 +705,9 @@ for more information. - - - - - - - - - - - - - a #GstWebRTCDataChannel - - - - a #GBytes or %NULL - - - - - - - - - - - - - - a #GstWebRTCDataChannel - - - - a string or %NULL - - - - - - - - - - - - - - a #GstWebRTCDataChannel - - - - - - - - - - + disguised="1" + glib:is-gtype-struct-for="WebRTCDataChannel"> + c:type="GstWebRTCDataChannelState"> GST_WEBRTC_DATA_CHANNEL_STATE_NEW: new -GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING: connection -GST_WEBRTC_DATA_CHANNEL_STATE_OPEN: open -GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING: closing -GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED: closed -See <http://w3c.github.io/webrtc-pc/#dom-rtcdatachannelstate> + line="319">See <http://w3c.github.io/webrtc-pc/#dom-rtcdatachannelstate> + new + connection + open + closing + closed glib:type-name="GstWebRTCICETransport" glib:get-type="gst_webrtc_ice_transport_get_type" glib:type-struct="WebRTCICETransportClass"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1461,31 +957,9 @@ See <http://w3c.github.io/webrtc-pc/#dom-rtcdatachannelstate> - - - - - - - - - - - - - - - - - - - - - - + c:type="GstWebRTCICETransportPolicy"> GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL: all -GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY: relay -See https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-24#section-4.1.1 + line="360">See https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-24#section-4.1.1 for more information. + all + relay c:type="GstWebRTCPriorityType"> GST_WEBRTC_PRIORITY_TYPE_VERY_LOW: very-low -GST_WEBRTC_PRIORITY_TYPE_LOW: low -GST_WEBRTC_PRIORITY_TYPE_MEDIUM: medium -GST_WEBRTC_PRIORITY_TYPE_HIGH: high -See <http://w3c.github.io/webrtc-pc/#dom-rtcprioritytype> + line="300">See <http://w3c.github.io/webrtc-pc/#dom-rtcprioritytype> + very-low + low + medium + high - An object to track the receiving aspect of the stream - -Mostly matches the WebRTC RTCRtpReceiver interface. - - - - - - - - - - - + + The transport for RTP packets - - - - - - - + filename="gst-libs/gst/webrtc/rtpreceiver.c" + line="107">The DTLS transport for this receiver + + - - - - - - - - - + - An object to track the sending aspect of the stream - -Mostly matches the WebRTC RTCRtpSender interface. - - - - - - - + Sets the content of the IPv4 Type of Service (ToS), also known as DSCP + line="61">Sets the content of the IPv4 Type of Service (ToS), also known as DSCP (Differentiated Services Code Point). This also sets the Traffic Class field of IPv6. - + @@ -1716,13 +1162,13 @@ This also sets the Traffic Class field of IPv6. a #GstWebRTCRTPSender + line="63">a #GstWebRTCRTPSender The priority of this sender + line="64">The priority of this sender @@ -1733,74 +1179,77 @@ This also sets the Traffic Class field of IPv6. transfer-ownership="none"> The priority from which to set the DSCP field on packets + line="143">The priority from which to set the DSCP field on packets - - - - - The transport for RTP packets - - - - Unused - - - - - + The priority of the stream - - - - - - - + filename="gst-libs/gst/webrtc/rtpsender.c" + line="158">The DTLS transport for this sender + + - - - - - - - - - + - Mostly matches the WebRTC RTCRtpTransceiver interface. - + + + Caps representing the codec preferences. + + + + The transceiver's current directionality, or none if the +transceiver is stopped or has never participated in an exchange +of offers and answers. To change the transceiver's +directionality, set the value of the direction property. + + Direction of the transceiver. + line="216">Direction of the transceiver. + + The kind of media this transceiver transports + + + + The media ID of the m-line associated with this transceiver. This +association is established, when possible, whenever either a +local or remote description is applied. This field is null if +neither a local or remote description has been applied, or if its +associated m-line is rejected by either a remote offer or any +answer. + + transfer-ownership="none"> - - - - - the mline number this transceiver corresponds to - - - - The media ID of the m-line associated with this -transceiver. This association is established, when possible, -whenever either a local or remote description is applied. This -field is NULL if neither a local or remote description has been -applied, or if its associated m-line is rejected by either a remote -offer or any answer. - - - - Indicates whether or not sending and receiving using the paired -#GstWebRTCRTPSender and #GstWebRTCRTPReceiver has been permanently disabled, -either due to SDP offer/answer - - - - The #GstWebRTCRTPSender object responsible sending data to the -remote peer - - - - The #GstWebRTCRTPReceiver object responsible for receiver data from -the remote peer. - - - - The transceiver's desired direction. - - - - The transceiver's current direction (read-only) - - - - A caps representing the codec preferences (read-only) - - - - Type of media - - - - - - - - - - - - - - - - + c:type="GstWebRTCSCTPTransportState"> GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW: new -GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTING: connecting -GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTED: connected -GST_WEBRTC_SCTP_TRANSPORT_STATE_CLOSED: closed -See <http://w3c.github.io/webrtc-pc/#dom-rtcsctptransportstate> + line="281">See <http://w3c.github.io/webrtc-pc/#dom-rtcsctptransportstate> + new + connecting + connected + closed (); - var names = new List (); - names.Add ("session_id"); - vals.Add (new GLib.Value (session_id)); - CreateNativeObject (names.ToArray (), vals.ToArray ()); - return; - } - Raw = gst_webrtc_dtls_transport_new(session_id); + CreateNativeObject (new string [0], new GLib.Value [0]); } [GLib.Property ("certificate")] @@ -89,9 +78,6 @@ namespace Gst.WebRTC { } } - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_webrtc_dtls_transport_set_transport(IntPtr raw, IntPtr ice); - [GLib.Property ("transport")] public Gst.WebRTC.WebRTCICETransport Transport { get { @@ -100,63 +86,6 @@ namespace Gst.WebRTC { val.Dispose (); return ret; } - set { - gst_webrtc_dtls_transport_set_transport(Handle, value == null ? IntPtr.Zero : value.Handle); - } - } - - public Gst.WebRTC.WebRTCICETransport TransportField { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("transport")); - return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCICETransport; - } - } - } - - public Gst.WebRTC.WebRTCDTLSTransportState StateField { - get { - unsafe { - int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("state")); - return (Gst.WebRTC.WebRTCDTLSTransportState) (*raw_ptr); - } - } - } - - public bool ClientField { - get { - unsafe { - bool* raw_ptr = (bool*)(((byte*)Handle) + abi_info.GetFieldOffset("client")); - return (*raw_ptr); - } - } - } - - public uint SessionIdField { - get { - unsafe { - uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("session_id")); - return (*raw_ptr); - } - } - } - - public Gst.Element Dtlssrtpenc { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("dtlssrtpenc")); - return GLib.Object.GetObject((*raw_ptr)) as Gst.Element; - } - } - } - - public Gst.Element Dtlssrtpdec { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("dtlssrtpdec")); - return GLib.Object.GetObject((*raw_ptr)) as Gst.Element; - } - } } @@ -165,16 +94,7 @@ namespace Gst.WebRTC { static public new GLib.AbiStruct class_abi { get { if (_class_abi == null) - _class_abi = new GLib.AbiStruct (new List{ - new GLib.AbiField("_padding" - , Gst.Object.class_abi.Fields - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding - , null - , null - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - }); + _class_abi = new GLib.AbiStruct (Gst.Object.class_abi.Fields); return _class_abi; } @@ -205,90 +125,12 @@ namespace Gst.WebRTC { static public new GLib.AbiStruct abi_info { get { if (_abi_info == null) - _abi_info = new GLib.AbiStruct (new List{ - new GLib.AbiField("transport" - , Gst.Object.abi_info.Fields - , (uint) Marshal.SizeOf(typeof(IntPtr)) // transport - , null - , "state" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("state" - , -1 - , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCDTLSTransportState))) // state - , "transport" - , "client" - , (long) Marshal.OffsetOf(typeof(GstWebRTCDTLSTransport_stateAlign), "state") - , 0 - ), - new GLib.AbiField("client" - , -1 - , (uint) Marshal.SizeOf(typeof(bool)) // client - , "state" - , "session_id" - , (long) Marshal.OffsetOf(typeof(GstWebRTCDTLSTransport_clientAlign), "client") - , 0 - ), - new GLib.AbiField("session_id" - , -1 - , (uint) Marshal.SizeOf(typeof(uint)) // session_id - , "client" - , "dtlssrtpenc" - , (long) Marshal.OffsetOf(typeof(GstWebRTCDTLSTransport_session_idAlign), "session_id") - , 0 - ), - new GLib.AbiField("dtlssrtpenc" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // dtlssrtpenc - , "session_id" - , "dtlssrtpdec" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("dtlssrtpdec" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // dtlssrtpdec - , "dtlssrtpenc" - , "_padding" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("_padding" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding - , "dtlssrtpdec" - , null - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - }); + _abi_info = new GLib.AbiStruct (Gst.Object.abi_info.Fields); return _abi_info; } } - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCDTLSTransport_stateAlign - { - sbyte f1; - private Gst.WebRTC.WebRTCDTLSTransportState state; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCDTLSTransport_clientAlign - { - sbyte f1; - private bool client; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCDTLSTransport_session_idAlign - { - sbyte f1; - private uint session_id; - } - // End of the ABI representation. diff --git a/sources/generated/Gst.WebRTC/WebRTCDataChannel.cs b/sources/generated/Gst.WebRTC/WebRTCDataChannel.cs index 24b29d1..d225ae7 100644 --- a/sources/generated/Gst.WebRTC/WebRTCDataChannel.cs +++ b/sources/generated/Gst.WebRTC/WebRTCDataChannel.cs @@ -133,116 +133,58 @@ namespace Gst.WebRTC { } } - public GLib.Mutex Lock { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("lock")); - return new GLib.Mutex((*raw_ptr)); - } - } - } - - public string LabelField { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("label")); - return GLib.Marshaller.Utf8PtrToString ((*raw_ptr)); - } - } - } - - public bool OrderedField { - get { - unsafe { - bool* raw_ptr = (bool*)(((byte*)Handle) + abi_info.GetFieldOffset("ordered")); - return (*raw_ptr); - } + [GLib.Signal("on-error")] + public event Gst.WebRTC.OnErrorHandler OnError { + add { + this.AddSignalHandler ("on-error", value, typeof (Gst.WebRTC.OnErrorArgs)); } - } - - public uint MaxPacketLifetimeField { - get { - unsafe { - uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("max_packet_lifetime")); - return (*raw_ptr); - } + remove { + this.RemoveSignalHandler ("on-error", value); } } - public uint MaxRetransmitsField { - get { - unsafe { - uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("max_retransmits")); - return (*raw_ptr); - } + [GLib.Signal("send-string")] + public event Gst.WebRTC.SendStringEventHandler SendStringEvent { + add { + this.AddSignalHandler ("send-string", value, typeof (Gst.WebRTC.SendStringEventArgs)); } - } - - public string ProtocolField { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("protocol")); - return GLib.Marshaller.Utf8PtrToString ((*raw_ptr)); - } + remove { + this.RemoveSignalHandler ("send-string", value); } } - public bool NegotiatedField { - get { - unsafe { - bool* raw_ptr = (bool*)(((byte*)Handle) + abi_info.GetFieldOffset("negotiated")); - return (*raw_ptr); - } + [GLib.Signal("send-data")] + public event Gst.WebRTC.SendDataEventHandler SendDataEvent { + add { + this.AddSignalHandler ("send-data", value, typeof (Gst.WebRTC.SendDataEventArgs)); } - } - - public int IdField { - get { - unsafe { - int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("id")); - return (*raw_ptr); - } + remove { + this.RemoveSignalHandler ("send-data", value); } } - public Gst.WebRTC.WebRTCPriorityType PriorityField { - get { - unsafe { - int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("priority")); - return (Gst.WebRTC.WebRTCPriorityType) (*raw_ptr); - } + [GLib.Signal("close")] + public event System.EventHandler CloseEvent { + add { + this.AddSignalHandler ("close", value); } - } - - public Gst.WebRTC.WebRTCDataChannelState ReadyStateField { - get { - unsafe { - int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("ready_state")); - return (Gst.WebRTC.WebRTCDataChannelState) (*raw_ptr); - } + remove { + this.RemoveSignalHandler ("close", value); } } - public ulong BufferedAmountField { - get { - unsafe { - ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("buffered_amount")); - return (*raw_ptr); - } + [GLib.Signal("on-message-data")] + public event Gst.WebRTC.OnMessageDataHandler OnMessageData { + add { + this.AddSignalHandler ("on-message-data", value, typeof (Gst.WebRTC.OnMessageDataArgs)); } - } - - public ulong BufferedAmountLowThresholdField { - get { - unsafe { - ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("buffered_amount_low_threshold")); - return (*raw_ptr); - } + remove { + this.RemoveSignalHandler ("on-message-data", value); } } [GLib.Signal("on-buffered-amount-low")] - public event System.EventHandler OnBufferedAmountLowEvent { + public event System.EventHandler OnBufferedAmountLow { add { this.AddSignalHandler ("on-buffered-amount-low", value); } @@ -251,114 +193,113 @@ namespace Gst.WebRTC { } } - [GLib.Signal("send-data")] - public event Gst.WebRTC.SendDataEventHandler SendDataEvent { + [GLib.Signal("on-open")] + public event System.EventHandler OnOpen { add { - this.AddSignalHandler ("send-data", value, typeof (Gst.WebRTC.SendDataEventArgs)); + this.AddSignalHandler ("on-open", value); } remove { - this.RemoveSignalHandler ("send-data", value); + this.RemoveSignalHandler ("on-open", value); } } [GLib.Signal("on-message-string")] - public event Gst.WebRTC.OnMessageStringEventHandler OnMessageStringEvent { + public event Gst.WebRTC.OnMessageStringHandler OnMessageString { add { - this.AddSignalHandler ("on-message-string", value, typeof (Gst.WebRTC.OnMessageStringEventArgs)); + this.AddSignalHandler ("on-message-string", value, typeof (Gst.WebRTC.OnMessageStringArgs)); } remove { this.RemoveSignalHandler ("on-message-string", value); } } - [GLib.Signal("on-open")] - public event System.EventHandler OnOpenEvent { - add { - this.AddSignalHandler ("on-open", value); - } - remove { - this.RemoveSignalHandler ("on-open", value); + static CloseEventNativeDelegate CloseEvent_cb_delegate; + static CloseEventNativeDelegate CloseEventVMCallback { + get { + if (CloseEvent_cb_delegate == null) + CloseEvent_cb_delegate = new CloseEventNativeDelegate (CloseEvent_cb); + return CloseEvent_cb_delegate; } } - [GLib.Signal("close")] - public event System.EventHandler CloseEvent { - add { - this.AddSignalHandler ("close", value); - } - remove { - this.RemoveSignalHandler ("close", value); - } + static void OverrideCloseEvent (GLib.GType gtype) + { + OverrideCloseEvent (gtype, CloseEventVMCallback); } - [GLib.Signal("on-message-data")] - public event Gst.WebRTC.OnMessageDataEventHandler OnMessageDataEvent { - add { - this.AddSignalHandler ("on-message-data", value, typeof (Gst.WebRTC.OnMessageDataEventArgs)); - } - remove { - this.RemoveSignalHandler ("on-message-data", value); - } + static void OverrideCloseEvent (GLib.GType gtype, CloseEventNativeDelegate callback) + { + OverrideVirtualMethod (gtype, "close", callback); } + [UnmanagedFunctionPointer (CallingConvention.Cdecl)] + delegate void CloseEventNativeDelegate (IntPtr inst); - [GLib.Signal("send-string")] - public event Gst.WebRTC.SendStringEventHandler SendStringEvent { - add { - this.AddSignalHandler ("send-string", value, typeof (Gst.WebRTC.SendStringEventArgs)); - } - remove { - this.RemoveSignalHandler ("send-string", value); + static void CloseEvent_cb (IntPtr inst) + { + try { + WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel; + __obj.OnCloseEvent (); + } catch (Exception e) { + GLib.ExceptionManager.RaiseUnhandledException (e, false); } } - [GLib.Signal("on-error")] - public event Gst.WebRTC.OnErrorEventHandler OnErrorEvent { - add { - this.AddSignalHandler ("on-error", value, typeof (Gst.WebRTC.OnErrorEventArgs)); - } - remove { - this.RemoveSignalHandler ("on-error", value); - } + [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideCloseEvent")] + protected virtual void OnCloseEvent () + { + InternalCloseEvent (); + } + + private void InternalCloseEvent () + { + GLib.Value ret = GLib.Value.Empty; + GLib.ValueArray inst_and_params = new GLib.ValueArray (1); + GLib.Value[] vals = new GLib.Value [1]; + vals [0] = new GLib.Value (this); + inst_and_params.Append (vals [0]); + g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret); + foreach (GLib.Value v in vals) + v.Dispose (); } - static OnBufferedAmountLowEventNativeDelegate OnBufferedAmountLowEvent_cb_delegate; - static OnBufferedAmountLowEventNativeDelegate OnBufferedAmountLowEventVMCallback { + static OnBufferedAmountLowNativeDelegate OnBufferedAmountLow_cb_delegate; + static OnBufferedAmountLowNativeDelegate OnBufferedAmountLowVMCallback { get { - if (OnBufferedAmountLowEvent_cb_delegate == null) - OnBufferedAmountLowEvent_cb_delegate = new OnBufferedAmountLowEventNativeDelegate (OnBufferedAmountLowEvent_cb); - return OnBufferedAmountLowEvent_cb_delegate; + if (OnBufferedAmountLow_cb_delegate == null) + OnBufferedAmountLow_cb_delegate = new OnBufferedAmountLowNativeDelegate (OnBufferedAmountLow_cb); + return OnBufferedAmountLow_cb_delegate; } } - static void OverrideOnBufferedAmountLowEvent (GLib.GType gtype) + static void OverrideOnBufferedAmountLow (GLib.GType gtype) { - OverrideOnBufferedAmountLowEvent (gtype, OnBufferedAmountLowEventVMCallback); + OverrideOnBufferedAmountLow (gtype, OnBufferedAmountLowVMCallback); } - static void OverrideOnBufferedAmountLowEvent (GLib.GType gtype, OnBufferedAmountLowEventNativeDelegate callback) + static void OverrideOnBufferedAmountLow (GLib.GType gtype, OnBufferedAmountLowNativeDelegate callback) { OverrideVirtualMethod (gtype, "on-buffered-amount-low", callback); } [UnmanagedFunctionPointer (CallingConvention.Cdecl)] - delegate void OnBufferedAmountLowEventNativeDelegate (IntPtr inst); + delegate void OnBufferedAmountLowNativeDelegate (IntPtr inst); - static void OnBufferedAmountLowEvent_cb (IntPtr inst) + static void OnBufferedAmountLow_cb (IntPtr inst) { try { WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel; - __obj.OnOnBufferedAmountLowEvent (); + __obj.OnOnBufferedAmountLow (); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, false); } } - [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnBufferedAmountLowEvent")] - protected virtual void OnOnBufferedAmountLowEvent () + [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnBufferedAmountLow")] + protected virtual void OnOnBufferedAmountLow () { - InternalOnBufferedAmountLowEvent (); + InternalOnBufferedAmountLow (); } - private void InternalOnBufferedAmountLowEvent () + private void InternalOnBufferedAmountLow () { GLib.Value ret = GLib.Value.Empty; GLib.ValueArray inst_and_params = new GLib.ValueArray (1); @@ -370,44 +311,44 @@ namespace Gst.WebRTC { v.Dispose (); } - static OnErrorEventNativeDelegate OnErrorEvent_cb_delegate; - static OnErrorEventNativeDelegate OnErrorEventVMCallback { + static OnErrorNativeDelegate OnError_cb_delegate; + static OnErrorNativeDelegate OnErrorVMCallback { get { - if (OnErrorEvent_cb_delegate == null) - OnErrorEvent_cb_delegate = new OnErrorEventNativeDelegate (OnErrorEvent_cb); - return OnErrorEvent_cb_delegate; + if (OnError_cb_delegate == null) + OnError_cb_delegate = new OnErrorNativeDelegate (OnError_cb); + return OnError_cb_delegate; } } - static void OverrideOnErrorEvent (GLib.GType gtype) + static void OverrideOnError (GLib.GType gtype) { - OverrideOnErrorEvent (gtype, OnErrorEventVMCallback); + OverrideOnError (gtype, OnErrorVMCallback); } - static void OverrideOnErrorEvent (GLib.GType gtype, OnErrorEventNativeDelegate callback) + static void OverrideOnError (GLib.GType gtype, OnErrorNativeDelegate callback) { OverrideVirtualMethod (gtype, "on-error", callback); } [UnmanagedFunctionPointer (CallingConvention.Cdecl)] - delegate void OnErrorEventNativeDelegate (IntPtr inst, IntPtr error); + delegate void OnErrorNativeDelegate (IntPtr inst, IntPtr error); - static void OnErrorEvent_cb (IntPtr inst, IntPtr error) + static void OnError_cb (IntPtr inst, IntPtr error) { try { WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel; - __obj.OnOnErrorEvent (error); + __obj.OnOnError (error); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, false); } } - [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnErrorEvent")] - protected virtual void OnOnErrorEvent (IntPtr error) + [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnError")] + protected virtual void OnOnError (IntPtr error) { - InternalOnErrorEvent (error); + InternalOnError (error); } - private void InternalOnErrorEvent (IntPtr error) + private void InternalOnError (IntPtr error) { GLib.Value ret = GLib.Value.Empty; GLib.ValueArray inst_and_params = new GLib.ValueArray (2); @@ -421,44 +362,44 @@ namespace Gst.WebRTC { v.Dispose (); } - static OnMessageDataEventNativeDelegate OnMessageDataEvent_cb_delegate; - static OnMessageDataEventNativeDelegate OnMessageDataEventVMCallback { + static OnMessageDataNativeDelegate OnMessageData_cb_delegate; + static OnMessageDataNativeDelegate OnMessageDataVMCallback { get { - if (OnMessageDataEvent_cb_delegate == null) - OnMessageDataEvent_cb_delegate = new OnMessageDataEventNativeDelegate (OnMessageDataEvent_cb); - return OnMessageDataEvent_cb_delegate; + if (OnMessageData_cb_delegate == null) + OnMessageData_cb_delegate = new OnMessageDataNativeDelegate (OnMessageData_cb); + return OnMessageData_cb_delegate; } } - static void OverrideOnMessageDataEvent (GLib.GType gtype) + static void OverrideOnMessageData (GLib.GType gtype) { - OverrideOnMessageDataEvent (gtype, OnMessageDataEventVMCallback); + OverrideOnMessageData (gtype, OnMessageDataVMCallback); } - static void OverrideOnMessageDataEvent (GLib.GType gtype, OnMessageDataEventNativeDelegate callback) + static void OverrideOnMessageData (GLib.GType gtype, OnMessageDataNativeDelegate callback) { OverrideVirtualMethod (gtype, "on-message-data", callback); } [UnmanagedFunctionPointer (CallingConvention.Cdecl)] - delegate void OnMessageDataEventNativeDelegate (IntPtr inst, IntPtr data); + delegate void OnMessageDataNativeDelegate (IntPtr inst, IntPtr data); - static void OnMessageDataEvent_cb (IntPtr inst, IntPtr data) + static void OnMessageData_cb (IntPtr inst, IntPtr data) { try { WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel; - __obj.OnOnMessageDataEvent (new GLib.Bytes(data)); + __obj.OnOnMessageData (new GLib.Bytes(data)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, false); } } - [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnMessageDataEvent")] - protected virtual void OnOnMessageDataEvent (GLib.Bytes data) + [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnMessageData")] + protected virtual void OnOnMessageData (GLib.Bytes data) { - InternalOnMessageDataEvent (data); + InternalOnMessageData (data); } - private void InternalOnMessageDataEvent (GLib.Bytes data) + private void InternalOnMessageData (GLib.Bytes data) { GLib.Value ret = GLib.Value.Empty; GLib.ValueArray inst_and_params = new GLib.ValueArray (2); @@ -472,44 +413,44 @@ namespace Gst.WebRTC { v.Dispose (); } - static OnMessageStringEventNativeDelegate OnMessageStringEvent_cb_delegate; - static OnMessageStringEventNativeDelegate OnMessageStringEventVMCallback { + static OnMessageStringNativeDelegate OnMessageString_cb_delegate; + static OnMessageStringNativeDelegate OnMessageStringVMCallback { get { - if (OnMessageStringEvent_cb_delegate == null) - OnMessageStringEvent_cb_delegate = new OnMessageStringEventNativeDelegate (OnMessageStringEvent_cb); - return OnMessageStringEvent_cb_delegate; + if (OnMessageString_cb_delegate == null) + OnMessageString_cb_delegate = new OnMessageStringNativeDelegate (OnMessageString_cb); + return OnMessageString_cb_delegate; } } - static void OverrideOnMessageStringEvent (GLib.GType gtype) + static void OverrideOnMessageString (GLib.GType gtype) { - OverrideOnMessageStringEvent (gtype, OnMessageStringEventVMCallback); + OverrideOnMessageString (gtype, OnMessageStringVMCallback); } - static void OverrideOnMessageStringEvent (GLib.GType gtype, OnMessageStringEventNativeDelegate callback) + static void OverrideOnMessageString (GLib.GType gtype, OnMessageStringNativeDelegate callback) { OverrideVirtualMethod (gtype, "on-message-string", callback); } [UnmanagedFunctionPointer (CallingConvention.Cdecl)] - delegate void OnMessageStringEventNativeDelegate (IntPtr inst, IntPtr data); + delegate void OnMessageStringNativeDelegate (IntPtr inst, IntPtr data); - static void OnMessageStringEvent_cb (IntPtr inst, IntPtr data) + static void OnMessageString_cb (IntPtr inst, IntPtr data) { try { WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel; - __obj.OnOnMessageStringEvent (GLib.Marshaller.Utf8PtrToString (data)); + __obj.OnOnMessageString (GLib.Marshaller.Utf8PtrToString (data)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, false); } } - [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnMessageStringEvent")] - protected virtual void OnOnMessageStringEvent (string data) + [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnMessageString")] + protected virtual void OnOnMessageString (string data) { - InternalOnMessageStringEvent (data); + InternalOnMessageString (data); } - private void InternalOnMessageStringEvent (string data) + private void InternalOnMessageString (string data) { GLib.Value ret = GLib.Value.Empty; GLib.ValueArray inst_and_params = new GLib.ValueArray (2); @@ -523,44 +464,44 @@ namespace Gst.WebRTC { v.Dispose (); } - static OnOpenEventNativeDelegate OnOpenEvent_cb_delegate; - static OnOpenEventNativeDelegate OnOpenEventVMCallback { + static OnOpenNativeDelegate OnOpen_cb_delegate; + static OnOpenNativeDelegate OnOpenVMCallback { get { - if (OnOpenEvent_cb_delegate == null) - OnOpenEvent_cb_delegate = new OnOpenEventNativeDelegate (OnOpenEvent_cb); - return OnOpenEvent_cb_delegate; + if (OnOpen_cb_delegate == null) + OnOpen_cb_delegate = new OnOpenNativeDelegate (OnOpen_cb); + return OnOpen_cb_delegate; } } - static void OverrideOnOpenEvent (GLib.GType gtype) + static void OverrideOnOpen (GLib.GType gtype) { - OverrideOnOpenEvent (gtype, OnOpenEventVMCallback); + OverrideOnOpen (gtype, OnOpenVMCallback); } - static void OverrideOnOpenEvent (GLib.GType gtype, OnOpenEventNativeDelegate callback) + static void OverrideOnOpen (GLib.GType gtype, OnOpenNativeDelegate callback) { OverrideVirtualMethod (gtype, "on-open", callback); } [UnmanagedFunctionPointer (CallingConvention.Cdecl)] - delegate void OnOpenEventNativeDelegate (IntPtr inst); + delegate void OnOpenNativeDelegate (IntPtr inst); - static void OnOpenEvent_cb (IntPtr inst) + static void OnOpen_cb (IntPtr inst) { try { WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel; - __obj.OnOnOpenEvent (); + __obj.OnOnOpen (); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, false); } } - [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnOpenEvent")] - protected virtual void OnOnOpenEvent () + [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnOpen")] + protected virtual void OnOnOpen () { - InternalOnOpenEvent (); + InternalOnOpen (); } - private void InternalOnOpenEvent () + private void InternalOnOpen () { GLib.Value ret = GLib.Value.Empty; GLib.ValueArray inst_and_params = new GLib.ValueArray (1); @@ -588,12 +529,8 @@ namespace Gst.WebRTC { static void OverrideSendDataEvent (GLib.GType gtype, SendDataEventNativeDelegate callback) { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("send_data")); - *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback); - } + OverrideVirtualMethod (gtype, "send-data", callback); } - [UnmanagedFunctionPointer (CallingConvention.Cdecl)] delegate void SendDataEventNativeDelegate (IntPtr inst, IntPtr data); @@ -615,14 +552,16 @@ namespace Gst.WebRTC { private void InternalSendDataEvent (GLib.Bytes data) { - SendDataEventNativeDelegate unmanaged = null; - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("send_data")); - unmanaged = (SendDataEventNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SendDataEventNativeDelegate)); - } - if (unmanaged == null) return; - - unmanaged (this.Handle, data == null ? IntPtr.Zero : data.Handle); + GLib.Value ret = GLib.Value.Empty; + GLib.ValueArray inst_and_params = new GLib.ValueArray (2); + GLib.Value[] vals = new GLib.Value [2]; + vals [0] = new GLib.Value (this); + inst_and_params.Append (vals [0]); + vals [1] = new GLib.Value (data); + inst_and_params.Append (vals [1]); + g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret); + foreach (GLib.Value v in vals) + v.Dispose (); } static SendStringEventNativeDelegate SendStringEvent_cb_delegate; @@ -641,12 +580,8 @@ namespace Gst.WebRTC { static void OverrideSendStringEvent (GLib.GType gtype, SendStringEventNativeDelegate callback) { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("send_string")); - *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback); - } + OverrideVirtualMethod (gtype, "send-string", callback); } - [UnmanagedFunctionPointer (CallingConvention.Cdecl)] delegate void SendStringEventNativeDelegate (IntPtr inst, IntPtr data); @@ -668,69 +603,16 @@ namespace Gst.WebRTC { private void InternalSendStringEvent (string data) { - SendStringEventNativeDelegate unmanaged = null; - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("send_string")); - unmanaged = (SendStringEventNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SendStringEventNativeDelegate)); - } - if (unmanaged == null) return; - - IntPtr native_data = GLib.Marshaller.StringToPtrGStrdup (data); - unmanaged (this.Handle, native_data); - GLib.Marshaller.Free (native_data); - } - - static CloseEventNativeDelegate CloseEvent_cb_delegate; - static CloseEventNativeDelegate CloseEventVMCallback { - get { - if (CloseEvent_cb_delegate == null) - CloseEvent_cb_delegate = new CloseEventNativeDelegate (CloseEvent_cb); - return CloseEvent_cb_delegate; - } - } - - static void OverrideCloseEvent (GLib.GType gtype) - { - OverrideCloseEvent (gtype, CloseEventVMCallback); - } - - static void OverrideCloseEvent (GLib.GType gtype, CloseEventNativeDelegate callback) - { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("close")); - *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback); - } - } - - [UnmanagedFunctionPointer (CallingConvention.Cdecl)] - delegate void CloseEventNativeDelegate (IntPtr inst); - - static void CloseEvent_cb (IntPtr inst) - { - try { - WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel; - __obj.OnCloseEvent (); - } catch (Exception e) { - GLib.ExceptionManager.RaiseUnhandledException (e, false); - } - } - - [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideCloseEvent")] - protected virtual void OnCloseEvent () - { - InternalCloseEvent (); - } - - private void InternalCloseEvent () - { - CloseEventNativeDelegate unmanaged = null; - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("close")); - unmanaged = (CloseEventNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(CloseEventNativeDelegate)); - } - if (unmanaged == null) return; - - unmanaged (this.Handle); + GLib.Value ret = GLib.Value.Empty; + GLib.ValueArray inst_and_params = new GLib.ValueArray (2); + GLib.Value[] vals = new GLib.Value [2]; + vals [0] = new GLib.Value (this); + inst_and_params.Append (vals [0]); + vals [1] = new GLib.Value (data); + inst_and_params.Append (vals [1]); + g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret); + foreach (GLib.Value v in vals) + v.Dispose (); } @@ -739,40 +621,7 @@ namespace Gst.WebRTC { static public new GLib.AbiStruct class_abi { get { if (_class_abi == null) - _class_abi = new GLib.AbiStruct (new List{ - new GLib.AbiField("send_data" - , GLib.Object.class_abi.Fields - , (uint) Marshal.SizeOf(typeof(IntPtr)) // send_data - , null - , "send_string" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("send_string" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // send_string - , "send_data" - , "close" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("close" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // close - , "send_string" - , "_padding" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("_padding" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding - , "close" - , null - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - }); + _class_abi = new GLib.AbiStruct (GLib.Object.class_abi.Fields); return _class_abi; } @@ -800,58 +649,6 @@ namespace Gst.WebRTC { } [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_webrtc_data_channel_on_buffered_amount_low(IntPtr raw); - - public void OnBufferedAmountLow() { - gst_webrtc_data_channel_on_buffered_amount_low(Handle); - } - - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_webrtc_data_channel_on_close(IntPtr raw); - - public void OnClose() { - gst_webrtc_data_channel_on_close(Handle); - } - - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_webrtc_data_channel_on_error(IntPtr raw, IntPtr error); - - public void OnError(IntPtr error) { - gst_webrtc_data_channel_on_error(Handle, error); - } - - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_webrtc_data_channel_on_message_data(IntPtr raw, IntPtr data); - - public void OnMessageData(GLib.Bytes data) { - gst_webrtc_data_channel_on_message_data(Handle, data == null ? IntPtr.Zero : data.Handle); - } - - public void OnMessageData() { - OnMessageData (null); - } - - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_webrtc_data_channel_on_message_string(IntPtr raw, IntPtr str); - - public void OnMessageString(string str) { - IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str); - gst_webrtc_data_channel_on_message_string(Handle, native_str); - GLib.Marshaller.Free (native_str); - } - - public void OnMessageString() { - OnMessageString (null); - } - - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_webrtc_data_channel_on_open(IntPtr raw); - - public void OnOpen() { - gst_webrtc_data_channel_on_open(Handle); - } - - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_webrtc_data_channel_send_data(IntPtr raw, IntPtr data); public void SendData(GLib.Bytes data) { @@ -886,180 +683,12 @@ namespace Gst.WebRTC { static public new GLib.AbiStruct abi_info { get { if (_abi_info == null) - _abi_info = new GLib.AbiStruct (new List{ - new GLib.AbiField("lock" - , GLib.Object.abi_info.Fields - , (uint) Marshal.SizeOf(typeof(IntPtr)) // lock - , null - , "label" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("label" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // label - , "lock" - , "ordered" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("ordered" - , -1 - , (uint) Marshal.SizeOf(typeof(bool)) // ordered - , "label" - , "max_packet_lifetime" - , (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_orderedAlign), "ordered") - , 0 - ), - new GLib.AbiField("max_packet_lifetime" - , -1 - , (uint) Marshal.SizeOf(typeof(uint)) // max_packet_lifetime - , "ordered" - , "max_retransmits" - , (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_max_packet_lifetimeAlign), "max_packet_lifetime") - , 0 - ), - new GLib.AbiField("max_retransmits" - , -1 - , (uint) Marshal.SizeOf(typeof(uint)) // max_retransmits - , "max_packet_lifetime" - , "protocol" - , (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_max_retransmitsAlign), "max_retransmits") - , 0 - ), - new GLib.AbiField("protocol" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // protocol - , "max_retransmits" - , "negotiated" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("negotiated" - , -1 - , (uint) Marshal.SizeOf(typeof(bool)) // negotiated - , "protocol" - , "id" - , (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_negotiatedAlign), "negotiated") - , 0 - ), - new GLib.AbiField("id" - , -1 - , (uint) Marshal.SizeOf(typeof(int)) // id - , "negotiated" - , "priority" - , (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_idAlign), "id") - , 0 - ), - new GLib.AbiField("priority" - , -1 - , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCPriorityType))) // priority - , "id" - , "ready_state" - , (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_priorityAlign), "priority") - , 0 - ), - new GLib.AbiField("ready_state" - , -1 - , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCDataChannelState))) // ready_state - , "priority" - , "buffered_amount" - , (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_ready_stateAlign), "ready_state") - , 0 - ), - new GLib.AbiField("buffered_amount" - , -1 - , (uint) Marshal.SizeOf(typeof(ulong)) // buffered_amount - , "ready_state" - , "buffered_amount_low_threshold" - , (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_buffered_amountAlign), "buffered_amount") - , 0 - ), - new GLib.AbiField("buffered_amount_low_threshold" - , -1 - , (uint) Marshal.SizeOf(typeof(ulong)) // buffered_amount_low_threshold - , "buffered_amount" - , "_padding" - , (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_buffered_amount_low_thresholdAlign), "buffered_amount_low_threshold") - , 0 - ), - new GLib.AbiField("_padding" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding - , "buffered_amount_low_threshold" - , null - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - }); + _abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields); return _abi_info; } } - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCDataChannel_orderedAlign - { - sbyte f1; - private bool ordered; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCDataChannel_max_packet_lifetimeAlign - { - sbyte f1; - private uint max_packet_lifetime; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCDataChannel_max_retransmitsAlign - { - sbyte f1; - private uint max_retransmits; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCDataChannel_negotiatedAlign - { - sbyte f1; - private bool negotiated; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCDataChannel_idAlign - { - sbyte f1; - private int id; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCDataChannel_priorityAlign - { - sbyte f1; - private Gst.WebRTC.WebRTCPriorityType priority; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCDataChannel_ready_stateAlign - { - sbyte f1; - private Gst.WebRTC.WebRTCDataChannelState ready_state; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCDataChannel_buffered_amountAlign - { - sbyte f1; - private ulong buffered_amount; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCDataChannel_buffered_amount_low_thresholdAlign - { - sbyte f1; - private ulong buffered_amount_low_threshold; - } - // End of the ABI representation. diff --git a/sources/generated/Gst.WebRTC/WebRTCICETransport.cs b/sources/generated/Gst.WebRTC/WebRTCICETransport.cs index 825acb4..92ce681 100644 --- a/sources/generated/Gst.WebRTC/WebRTCICETransport.cs +++ b/sources/generated/Gst.WebRTC/WebRTCICETransport.cs @@ -48,60 +48,6 @@ namespace Gst.WebRTC { } } - public Gst.WebRTC.WebRTCICERole Role { - get { - unsafe { - int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("role")); - return (Gst.WebRTC.WebRTCICERole) (*raw_ptr); - } - } - } - - public Gst.WebRTC.WebRTCICEComponent ComponentField { - get { - unsafe { - int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("component")); - return (Gst.WebRTC.WebRTCICEComponent) (*raw_ptr); - } - } - } - - public Gst.WebRTC.WebRTCICEConnectionState StateField { - get { - unsafe { - int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("state")); - return (Gst.WebRTC.WebRTCICEConnectionState) (*raw_ptr); - } - } - } - - public Gst.WebRTC.WebRTCICEGatheringState GatheringStateField { - get { - unsafe { - int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("gathering_state")); - return (Gst.WebRTC.WebRTCICEGatheringState) (*raw_ptr); - } - } - } - - public Gst.Element Src { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("src")); - return GLib.Object.GetObject((*raw_ptr)) as Gst.Element; - } - } - } - - public Gst.Element Sink { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("sink")); - return GLib.Object.GetObject((*raw_ptr)) as Gst.Element; - } - } - } - [GLib.Signal("on-selected-candidate-pair-change")] public event System.EventHandler OnSelectedCandidatePairChange { add { @@ -222,88 +168,13 @@ namespace Gst.WebRTC { v.Dispose (); } - static GatherCandidatesNativeDelegate GatherCandidates_cb_delegate; - static GatherCandidatesNativeDelegate GatherCandidatesVMCallback { - get { - if (GatherCandidates_cb_delegate == null) - GatherCandidates_cb_delegate = new GatherCandidatesNativeDelegate (GatherCandidates_cb); - return GatherCandidates_cb_delegate; - } - } - - static void OverrideGatherCandidates (GLib.GType gtype) - { - OverrideGatherCandidates (gtype, GatherCandidatesVMCallback); - } - - static void OverrideGatherCandidates (GLib.GType gtype, GatherCandidatesNativeDelegate callback) - { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("gather_candidates")); - *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback); - } - } - - [UnmanagedFunctionPointer (CallingConvention.Cdecl)] - delegate bool GatherCandidatesNativeDelegate (IntPtr inst); - - static bool GatherCandidates_cb (IntPtr inst) - { - try { - WebRTCICETransport __obj = GLib.Object.GetObject (inst, false) as WebRTCICETransport; - bool __result; - __result = __obj.OnGatherCandidates (); - return __result; - } catch (Exception e) { - GLib.ExceptionManager.RaiseUnhandledException (e, true); - // NOTREACHED: above call does not return. - throw e; - } - } - - [GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCICETransport), ConnectionMethod="OverrideGatherCandidates")] - protected virtual bool OnGatherCandidates () - { - return InternalGatherCandidates (); - } - - private bool InternalGatherCandidates () - { - GatherCandidatesNativeDelegate unmanaged = null; - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("gather_candidates")); - unmanaged = (GatherCandidatesNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GatherCandidatesNativeDelegate)); - } - if (unmanaged == null) return false; - - bool __result = unmanaged (this.Handle); - return __result; - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _class_abi = null; static public new GLib.AbiStruct class_abi { get { if (_class_abi == null) - _class_abi = new GLib.AbiStruct (new List{ - new GLib.AbiField("gather_candidates" - , Gst.Object.class_abi.Fields - , (uint) Marshal.SizeOf(typeof(IntPtr)) // gather_candidates - , null - , "_padding" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("_padding" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding - , "gather_candidates" - , null - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - }); + _class_abi = new GLib.AbiStruct (Gst.Object.class_abi.Fields); return _class_abi; } @@ -323,36 +194,6 @@ namespace Gst.WebRTC { } } - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_webrtc_ice_transport_connection_state_change(IntPtr raw, int new_state); - - public void ConnectionStateChange(Gst.WebRTC.WebRTCICEConnectionState new_state) { - gst_webrtc_ice_transport_connection_state_change(Handle, (int) new_state); - } - - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_webrtc_ice_transport_gathering_state_change(IntPtr raw, int new_state); - - public void GatheringStateChange(Gst.WebRTC.WebRTCICEGatheringState new_state) { - gst_webrtc_ice_transport_gathering_state_change(Handle, (int) new_state); - } - - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_webrtc_ice_transport_new_candidate(IntPtr raw, uint stream_id, int component, IntPtr attr); - - public void NewCandidate(uint stream_id, Gst.WebRTC.WebRTCICEComponent component, string attr) { - IntPtr native_attr = GLib.Marshaller.StringToPtrGStrdup (attr); - gst_webrtc_ice_transport_new_candidate(Handle, stream_id, (int) component, native_attr); - GLib.Marshaller.Free (native_attr); - } - - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_webrtc_ice_transport_selected_pair_change(IntPtr raw); - - public void SelectedPairChange() { - gst_webrtc_ice_transport_selected_pair_change(Handle); - } - static WebRTCICETransport () { @@ -364,97 +205,12 @@ namespace Gst.WebRTC { static public new GLib.AbiStruct abi_info { get { if (_abi_info == null) - _abi_info = new GLib.AbiStruct (new List{ - new GLib.AbiField("role" - , Gst.Object.abi_info.Fields - , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCICERole))) // role - , null - , "component" - , (long) Marshal.OffsetOf(typeof(GstWebRTCICETransport_roleAlign), "role") - , 0 - ), - new GLib.AbiField("component" - , -1 - , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCICEComponent))) // component - , "role" - , "state" - , (long) Marshal.OffsetOf(typeof(GstWebRTCICETransport_componentAlign), "component") - , 0 - ), - new GLib.AbiField("state" - , -1 - , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCICEConnectionState))) // state - , "component" - , "gathering_state" - , (long) Marshal.OffsetOf(typeof(GstWebRTCICETransport_stateAlign), "state") - , 0 - ), - new GLib.AbiField("gathering_state" - , -1 - , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCICEGatheringState))) // gathering_state - , "state" - , "src" - , (long) Marshal.OffsetOf(typeof(GstWebRTCICETransport_gathering_stateAlign), "gathering_state") - , 0 - ), - new GLib.AbiField("src" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // src - , "gathering_state" - , "sink" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("sink" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // sink - , "src" - , "_padding" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("_padding" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding - , "sink" - , null - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - }); + _abi_info = new GLib.AbiStruct (Gst.Object.abi_info.Fields); return _abi_info; } } - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCICETransport_roleAlign - { - sbyte f1; - private Gst.WebRTC.WebRTCICERole role; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCICETransport_componentAlign - { - sbyte f1; - private Gst.WebRTC.WebRTCICEComponent component; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCICETransport_stateAlign - { - sbyte f1; - private Gst.WebRTC.WebRTCICEConnectionState state; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCICETransport_gathering_stateAlign - { - sbyte f1; - private Gst.WebRTC.WebRTCICEGatheringState gathering_state; - } - // End of the ABI representation. diff --git a/sources/generated/Gst.WebRTC/WebRTCRTPReceiver.cs b/sources/generated/Gst.WebRTC/WebRTCRTPReceiver.cs index 0417077..f3c63f6 100644 --- a/sources/generated/Gst.WebRTC/WebRTCRTPReceiver.cs +++ b/sources/generated/Gst.WebRTC/WebRTCRTPReceiver.cs @@ -13,24 +13,18 @@ namespace Gst.WebRTC { public WebRTCRTPReceiver (IntPtr raw) : base(raw) {} - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern IntPtr gst_webrtc_rtp_receiver_new(); - - public WebRTCRTPReceiver () : base (IntPtr.Zero) + protected WebRTCRTPReceiver() : base(IntPtr.Zero) { - if (GetType () != typeof (WebRTCRTPReceiver)) { - CreateNativeObject (new string [0], new GLib.Value[0]); - return; - } - Raw = gst_webrtc_rtp_receiver_new(); + CreateNativeObject (new string [0], new GLib.Value [0]); } + [GLib.Property ("transport")] public Gst.WebRTC.WebRTCDTLSTransport Transport { get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("transport")); - return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCDTLSTransport; - } + GLib.Value val = GetProperty ("transport"); + Gst.WebRTC.WebRTCDTLSTransport ret = (Gst.WebRTC.WebRTCDTLSTransport) val; + val.Dispose (); + return ret; } } @@ -40,16 +34,7 @@ namespace Gst.WebRTC { static public new GLib.AbiStruct class_abi { get { if (_class_abi == null) - _class_abi = new GLib.AbiStruct (new List{ - new GLib.AbiField("_padding" - , Gst.Object.class_abi.Fields - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding - , null - , null - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - }); + _class_abi = new GLib.AbiStruct (Gst.Object.class_abi.Fields); return _class_abi; } @@ -80,24 +65,7 @@ namespace Gst.WebRTC { static public new GLib.AbiStruct abi_info { get { if (_abi_info == null) - _abi_info = new GLib.AbiStruct (new List{ - new GLib.AbiField("transport" - , Gst.Object.abi_info.Fields - , (uint) Marshal.SizeOf(typeof(IntPtr)) // transport - , null - , "_padding" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("_padding" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding - , "transport" - , null - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - }); + _abi_info = new GLib.AbiStruct (Gst.Object.abi_info.Fields); return _abi_info; } diff --git a/sources/generated/Gst.WebRTC/WebRTCRTPSender.cs b/sources/generated/Gst.WebRTC/WebRTCRTPSender.cs index 5669142..db360c6 100644 --- a/sources/generated/Gst.WebRTC/WebRTCRTPSender.cs +++ b/sources/generated/Gst.WebRTC/WebRTCRTPSender.cs @@ -13,16 +13,9 @@ namespace Gst.WebRTC { public WebRTCRTPSender (IntPtr raw) : base(raw) {} - [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern IntPtr gst_webrtc_rtp_sender_new(); - - public WebRTCRTPSender () : base (IntPtr.Zero) + protected WebRTCRTPSender() : base(IntPtr.Zero) { - if (GetType () != typeof (WebRTCRTPSender)) { - CreateNativeObject (new string [0], new GLib.Value[0]); - return; - } - Raw = gst_webrtc_rtp_sender_new(); + CreateNativeObject (new string [0], new GLib.Value [0]); } [DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] @@ -41,21 +34,13 @@ namespace Gst.WebRTC { } } + [GLib.Property ("transport")] public Gst.WebRTC.WebRTCDTLSTransport Transport { get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("transport")); - return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCDTLSTransport; - } - } - } - - public Gst.WebRTC.WebRTCPriorityType PriorityField { - get { - unsafe { - int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("priority")); - return (Gst.WebRTC.WebRTCPriorityType) (*raw_ptr); - } + GLib.Value val = GetProperty ("transport"); + Gst.WebRTC.WebRTCDTLSTransport ret = (Gst.WebRTC.WebRTCDTLSTransport) val; + val.Dispose (); + return ret; } } @@ -65,16 +50,7 @@ namespace Gst.WebRTC { static public new GLib.AbiStruct class_abi { get { if (_class_abi == null) - _class_abi = new GLib.AbiStruct (new List{ - new GLib.AbiField("_padding" - , Gst.Object.class_abi.Fields - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding - , null - , null - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - }); + _class_abi = new GLib.AbiStruct (Gst.Object.class_abi.Fields); return _class_abi; } @@ -105,52 +81,12 @@ namespace Gst.WebRTC { static public new GLib.AbiStruct abi_info { get { if (_abi_info == null) - _abi_info = new GLib.AbiStruct (new List{ - new GLib.AbiField("transport" - , Gst.Object.abi_info.Fields - , (uint) Marshal.SizeOf(typeof(IntPtr)) // transport - , null - , "send_encodings" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("send_encodings" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // send_encodings - , "transport" - , "priority" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("priority" - , -1 - , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCPriorityType))) // priority - , "send_encodings" - , "_padding" - , (long) Marshal.OffsetOf(typeof(GstWebRTCRTPSender_priorityAlign), "priority") - , 0 - ), - new GLib.AbiField("_padding" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding - , "priority" - , null - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - }); + _abi_info = new GLib.AbiStruct (Gst.Object.abi_info.Fields); return _abi_info; } } - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCRTPSender_priorityAlign - { - sbyte f1; - private Gst.WebRTC.WebRTCPriorityType priority; - } - // End of the ABI representation. diff --git a/sources/generated/Gst.WebRTC/WebRTCRTPTransceiver.cs b/sources/generated/Gst.WebRTC/WebRTCRTPTransceiver.cs index 0d94782..118dd50 100644 --- a/sources/generated/Gst.WebRTC/WebRTCRTPTransceiver.cs +++ b/sources/generated/Gst.WebRTC/WebRTCRTPTransceiver.cs @@ -18,6 +18,31 @@ namespace Gst.WebRTC { CreateNativeObject (new string [0], new GLib.Value [0]); } + [GLib.Property ("codec-preferences")] + public Gst.Caps CodecPreferences { + get { + GLib.Value val = GetProperty ("codec-preferences"); + Gst.Caps ret = (Gst.Caps) val; + val.Dispose (); + return ret; + } + set { + GLib.Value val = new GLib.Value(value, "GstCaps*"); + SetProperty("codec-preferences", val); + val.Dispose (); + } + } + + [GLib.Property ("current-direction")] + public Gst.WebRTC.WebRTCRTPTransceiverDirection CurrentDirection { + get { + GLib.Value val = GetProperty ("current-direction"); + Gst.WebRTC.WebRTCRTPTransceiverDirection ret = (Gst.WebRTC.WebRTCRTPTransceiverDirection) (Enum) val; + val.Dispose (); + return ret; + } + } + [GLib.Property ("direction")] public Gst.WebRTC.WebRTCRTPTransceiverDirection Direction { get { @@ -33,6 +58,26 @@ namespace Gst.WebRTC { } } + [GLib.Property ("kind")] + public Gst.WebRTC.WebRTCKind Kind { + get { + GLib.Value val = GetProperty ("kind"); + Gst.WebRTC.WebRTCKind ret = (Gst.WebRTC.WebRTCKind) (Enum) val; + val.Dispose (); + return ret; + } + } + + [GLib.Property ("mid")] + public string Mid { + get { + GLib.Value val = GetProperty ("mid"); + string ret = (string) val; + val.Dispose (); + return ret; + } + } + [GLib.Property ("mlineindex")] public uint Mlineindex { get { @@ -63,103 +108,13 @@ namespace Gst.WebRTC { } } - public uint Mline { - get { - unsafe { - uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("mline")); - return (*raw_ptr); - } - } - } - - public string Mid { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("mid")); - return GLib.Marshaller.Utf8PtrToString ((*raw_ptr)); - } - } - } - - public bool Stopped { - get { - unsafe { - bool* raw_ptr = (bool*)(((byte*)Handle) + abi_info.GetFieldOffset("stopped")); - return (*raw_ptr); - } - } - } - - public Gst.WebRTC.WebRTCRTPSender SenderField { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("sender")); - return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCRTPSender; - } - } - } - - public Gst.WebRTC.WebRTCRTPReceiver ReceiverField { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("receiver")); - return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCRTPReceiver; - } - } - } - - public Gst.WebRTC.WebRTCRTPTransceiverDirection DirectionField { - get { - unsafe { - int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("direction")); - return (Gst.WebRTC.WebRTCRTPTransceiverDirection) (*raw_ptr); - } - } - } - - public Gst.WebRTC.WebRTCRTPTransceiverDirection CurrentDirection { - get { - unsafe { - int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("current_direction")); - return (Gst.WebRTC.WebRTCRTPTransceiverDirection) (*raw_ptr); - } - } - } - - public Gst.Caps CodecPreferences { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("codec_preferences")); - return (*raw_ptr) == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque ((*raw_ptr), typeof (Gst.Caps), false); - } - } - } - - public Gst.WebRTC.WebRTCKind Kind { - get { - unsafe { - int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("kind")); - return (Gst.WebRTC.WebRTCKind) (*raw_ptr); - } - } - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _class_abi = null; static public new GLib.AbiStruct class_abi { get { if (_class_abi == null) - _class_abi = new GLib.AbiStruct (new List{ - new GLib.AbiField("_padding" - , Gst.Object.class_abi.Fields - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding - , null - , null - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - }); + _class_abi = new GLib.AbiStruct (Gst.Object.class_abi.Fields); return _class_abi; } @@ -190,128 +145,12 @@ namespace Gst.WebRTC { static public new GLib.AbiStruct abi_info { get { if (_abi_info == null) - _abi_info = new GLib.AbiStruct (new List{ - new GLib.AbiField("mline" - , Gst.Object.abi_info.Fields - , (uint) Marshal.SizeOf(typeof(uint)) // mline - , null - , "mid" - , (long) Marshal.OffsetOf(typeof(GstWebRTCRTPTransceiver_mlineAlign), "mline") - , 0 - ), - new GLib.AbiField("mid" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // mid - , "mline" - , "stopped" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("stopped" - , -1 - , (uint) Marshal.SizeOf(typeof(bool)) // stopped - , "mid" - , "sender" - , (long) Marshal.OffsetOf(typeof(GstWebRTCRTPTransceiver_stoppedAlign), "stopped") - , 0 - ), - new GLib.AbiField("sender" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // sender - , "stopped" - , "receiver" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("receiver" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // receiver - , "sender" - , "direction" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("direction" - , -1 - , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCRTPTransceiverDirection))) // direction - , "receiver" - , "current_direction" - , (long) Marshal.OffsetOf(typeof(GstWebRTCRTPTransceiver_directionAlign), "direction") - , 0 - ), - new GLib.AbiField("current_direction" - , -1 - , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCRTPTransceiverDirection))) // current_direction - , "direction" - , "codec_preferences" - , (long) Marshal.OffsetOf(typeof(GstWebRTCRTPTransceiver_current_directionAlign), "current_direction") - , 0 - ), - new GLib.AbiField("codec_preferences" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) // codec_preferences - , "current_direction" - , "kind" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("kind" - , -1 - , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCKind))) // kind - , "codec_preferences" - , "_padding" - , (long) Marshal.OffsetOf(typeof(GstWebRTCRTPTransceiver_kindAlign), "kind") - , 0 - ), - new GLib.AbiField("_padding" - , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding - , "kind" - , null - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - }); + _abi_info = new GLib.AbiStruct (Gst.Object.abi_info.Fields); return _abi_info; } } - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCRTPTransceiver_mlineAlign - { - sbyte f1; - private uint mline; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCRTPTransceiver_stoppedAlign - { - sbyte f1; - private bool stopped; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCRTPTransceiver_directionAlign - { - sbyte f1; - private Gst.WebRTC.WebRTCRTPTransceiverDirection direction; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCRTPTransceiver_current_directionAlign - { - sbyte f1; - private Gst.WebRTC.WebRTCRTPTransceiverDirection current_direction; - } - - [StructLayout(LayoutKind.Sequential)] - public struct GstWebRTCRTPTransceiver_kindAlign - { - sbyte f1; - private Gst.WebRTC.WebRTCKind kind; - } - // End of the ABI representation. diff --git a/sources/generated/gstreamer-sharp-abi.c b/sources/generated/gstreamer-sharp-abi.c index 523b9b4..1124f91 100644 --- a/sources/generated/gstreamer-sharp-abi.c +++ b/sources/generated/gstreamer-sharp-abi.c @@ -981,58 +981,5 @@ int main (int argc, char *argv[]) { g_print("\"GstVideoInfo.fps_d\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstVideoInfo, fps_d)); g_print("\"GstVideoInfo.offset\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstVideoInfo, offset)); g_print("\"GstVideoInfo.stride\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstVideoInfo, stride)); - g_print("\"sizeof(GstWebRTCDTLSTransportClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCDTLSTransportClass)); - g_print("\"sizeof(GstWebRTCDTLSTransport)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCDTLSTransport)); - g_print("\"GstWebRTCDTLSTransport.transport\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, transport)); - g_print("\"GstWebRTCDTLSTransport.state\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, state)); - g_print("\"GstWebRTCDTLSTransport.client\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, client)); - g_print("\"GstWebRTCDTLSTransport.session_id\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, session_id)); - g_print("\"GstWebRTCDTLSTransport.dtlssrtpenc\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, dtlssrtpenc)); - g_print("\"GstWebRTCDTLSTransport.dtlssrtpdec\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, dtlssrtpdec)); - g_print("\"sizeof(GstWebRTCDataChannelClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCDataChannelClass)); - g_print("\"GstWebRTCDataChannelClass.send_data\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannelClass, send_data)); - g_print("\"GstWebRTCDataChannelClass.send_string\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannelClass, send_string)); - g_print("\"GstWebRTCDataChannelClass.close\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannelClass, close)); - g_print("\"sizeof(GstWebRTCDataChannel)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCDataChannel)); - g_print("\"GstWebRTCDataChannel.lock\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, lock)); - g_print("\"GstWebRTCDataChannel.label\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, label)); - g_print("\"GstWebRTCDataChannel.ordered\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, ordered)); - g_print("\"GstWebRTCDataChannel.max_packet_lifetime\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, max_packet_lifetime)); - g_print("\"GstWebRTCDataChannel.max_retransmits\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, max_retransmits)); - g_print("\"GstWebRTCDataChannel.protocol\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, protocol)); - g_print("\"GstWebRTCDataChannel.negotiated\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, negotiated)); - g_print("\"GstWebRTCDataChannel.id\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, id)); - g_print("\"GstWebRTCDataChannel.priority\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, priority)); - g_print("\"GstWebRTCDataChannel.ready_state\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, ready_state)); - g_print("\"GstWebRTCDataChannel.buffered_amount\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, buffered_amount)); - g_print("\"GstWebRTCDataChannel.buffered_amount_low_threshold\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, buffered_amount_low_threshold)); - g_print("\"sizeof(GstWebRTCICETransportClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCICETransportClass)); - g_print("\"GstWebRTCICETransportClass.gather_candidates\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransportClass, gather_candidates)); - g_print("\"sizeof(GstWebRTCICETransport)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCICETransport)); - g_print("\"GstWebRTCICETransport.role\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, role)); - g_print("\"GstWebRTCICETransport.component\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, component)); - g_print("\"GstWebRTCICETransport.state\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, state)); - g_print("\"GstWebRTCICETransport.gathering_state\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, gathering_state)); - g_print("\"GstWebRTCICETransport.src\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, src)); - g_print("\"GstWebRTCICETransport.sink\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, sink)); - g_print("\"sizeof(GstWebRTCRTPReceiverClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPReceiverClass)); - g_print("\"sizeof(GstWebRTCRTPReceiver)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPReceiver)); - g_print("\"GstWebRTCRTPReceiver.transport\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPReceiver, transport)); - g_print("\"sizeof(GstWebRTCRTPSenderClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPSenderClass)); - g_print("\"sizeof(GstWebRTCRTPSender)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPSender)); - g_print("\"GstWebRTCRTPSender.transport\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPSender, transport)); - g_print("\"GstWebRTCRTPSender.send_encodings\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPSender, send_encodings)); - g_print("\"GstWebRTCRTPSender.priority\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPSender, priority)); - g_print("\"sizeof(GstWebRTCRTPTransceiverClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPTransceiverClass)); - g_print("\"sizeof(GstWebRTCRTPTransceiver)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPTransceiver)); - g_print("\"GstWebRTCRTPTransceiver.mline\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, mline)); - g_print("\"GstWebRTCRTPTransceiver.mid\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, mid)); - g_print("\"GstWebRTCRTPTransceiver.stopped\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, stopped)); - g_print("\"GstWebRTCRTPTransceiver.sender\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, sender)); - g_print("\"GstWebRTCRTPTransceiver.receiver\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, receiver)); - g_print("\"GstWebRTCRTPTransceiver.direction\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, direction)); - g_print("\"GstWebRTCRTPTransceiver.current_direction\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, current_direction)); - g_print("\"GstWebRTCRTPTransceiver.codec_preferences\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, codec_preferences)); - g_print("\"GstWebRTCRTPTransceiver.kind\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, kind)); return 0; } diff --git a/sources/generated/gstreamer-sharp-abi.cs b/sources/generated/gstreamer-sharp-abi.cs index 47948bd..7c8eff7 100644 --- a/sources/generated/gstreamer-sharp-abi.cs +++ b/sources/generated/gstreamer-sharp-abi.cs @@ -975,59 +975,6 @@ namespace AbiTester { Console.WriteLine("\"GstVideoInfo.fps_d\": \"" + Gst.Video.VideoInfo.abi_info.GetFieldOffset("fps_d") + "\""); Console.WriteLine("\"GstVideoInfo.offset\": \"" + Gst.Video.VideoInfo.abi_info.GetFieldOffset("offset") + "\""); Console.WriteLine("\"GstVideoInfo.stride\": \"" + Gst.Video.VideoInfo.abi_info.GetFieldOffset("stride") + "\""); - Console.WriteLine("\"sizeof(GstWebRTCDTLSTransportClass)\": \"" + Gst.WebRTC.WebRTCDTLSTransport.class_abi.Size + "\""); - Console.WriteLine("\"sizeof(GstWebRTCDTLSTransport)\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.Size + "\""); - Console.WriteLine("\"GstWebRTCDTLSTransport.transport\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("transport") + "\""); - Console.WriteLine("\"GstWebRTCDTLSTransport.state\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("state") + "\""); - Console.WriteLine("\"GstWebRTCDTLSTransport.client\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("client") + "\""); - Console.WriteLine("\"GstWebRTCDTLSTransport.session_id\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("session_id") + "\""); - Console.WriteLine("\"GstWebRTCDTLSTransport.dtlssrtpenc\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("dtlssrtpenc") + "\""); - Console.WriteLine("\"GstWebRTCDTLSTransport.dtlssrtpdec\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("dtlssrtpdec") + "\""); - Console.WriteLine("\"sizeof(GstWebRTCDataChannelClass)\": \"" + Gst.WebRTC.WebRTCDataChannel.class_abi.Size + "\""); - Console.WriteLine("\"GstWebRTCDataChannelClass.send_data\": \"" + Gst.WebRTC.WebRTCDataChannel.class_abi.GetFieldOffset("send_data") + "\""); - Console.WriteLine("\"GstWebRTCDataChannelClass.send_string\": \"" + Gst.WebRTC.WebRTCDataChannel.class_abi.GetFieldOffset("send_string") + "\""); - Console.WriteLine("\"GstWebRTCDataChannelClass.close\": \"" + Gst.WebRTC.WebRTCDataChannel.class_abi.GetFieldOffset("close") + "\""); - Console.WriteLine("\"sizeof(GstWebRTCDataChannel)\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.Size + "\""); - Console.WriteLine("\"GstWebRTCDataChannel.lock\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("lock") + "\""); - Console.WriteLine("\"GstWebRTCDataChannel.label\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("label") + "\""); - Console.WriteLine("\"GstWebRTCDataChannel.ordered\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("ordered") + "\""); - Console.WriteLine("\"GstWebRTCDataChannel.max_packet_lifetime\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("max_packet_lifetime") + "\""); - Console.WriteLine("\"GstWebRTCDataChannel.max_retransmits\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("max_retransmits") + "\""); - Console.WriteLine("\"GstWebRTCDataChannel.protocol\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("protocol") + "\""); - Console.WriteLine("\"GstWebRTCDataChannel.negotiated\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("negotiated") + "\""); - Console.WriteLine("\"GstWebRTCDataChannel.id\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("id") + "\""); - Console.WriteLine("\"GstWebRTCDataChannel.priority\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("priority") + "\""); - Console.WriteLine("\"GstWebRTCDataChannel.ready_state\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("ready_state") + "\""); - Console.WriteLine("\"GstWebRTCDataChannel.buffered_amount\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("buffered_amount") + "\""); - Console.WriteLine("\"GstWebRTCDataChannel.buffered_amount_low_threshold\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("buffered_amount_low_threshold") + "\""); - Console.WriteLine("\"sizeof(GstWebRTCICETransportClass)\": \"" + Gst.WebRTC.WebRTCICETransport.class_abi.Size + "\""); - Console.WriteLine("\"GstWebRTCICETransportClass.gather_candidates\": \"" + Gst.WebRTC.WebRTCICETransport.class_abi.GetFieldOffset("gather_candidates") + "\""); - Console.WriteLine("\"sizeof(GstWebRTCICETransport)\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.Size + "\""); - Console.WriteLine("\"GstWebRTCICETransport.role\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("role") + "\""); - Console.WriteLine("\"GstWebRTCICETransport.component\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("component") + "\""); - Console.WriteLine("\"GstWebRTCICETransport.state\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("state") + "\""); - Console.WriteLine("\"GstWebRTCICETransport.gathering_state\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("gathering_state") + "\""); - Console.WriteLine("\"GstWebRTCICETransport.src\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("src") + "\""); - Console.WriteLine("\"GstWebRTCICETransport.sink\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("sink") + "\""); - Console.WriteLine("\"sizeof(GstWebRTCRTPReceiverClass)\": \"" + Gst.WebRTC.WebRTCRTPReceiver.class_abi.Size + "\""); - Console.WriteLine("\"sizeof(GstWebRTCRTPReceiver)\": \"" + Gst.WebRTC.WebRTCRTPReceiver.abi_info.Size + "\""); - Console.WriteLine("\"GstWebRTCRTPReceiver.transport\": \"" + Gst.WebRTC.WebRTCRTPReceiver.abi_info.GetFieldOffset("transport") + "\""); - Console.WriteLine("\"sizeof(GstWebRTCRTPSenderClass)\": \"" + Gst.WebRTC.WebRTCRTPSender.class_abi.Size + "\""); - Console.WriteLine("\"sizeof(GstWebRTCRTPSender)\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.Size + "\""); - Console.WriteLine("\"GstWebRTCRTPSender.transport\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.GetFieldOffset("transport") + "\""); - Console.WriteLine("\"GstWebRTCRTPSender.send_encodings\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.GetFieldOffset("send_encodings") + "\""); - Console.WriteLine("\"GstWebRTCRTPSender.priority\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.GetFieldOffset("priority") + "\""); - Console.WriteLine("\"sizeof(GstWebRTCRTPTransceiverClass)\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.class_abi.Size + "\""); - Console.WriteLine("\"sizeof(GstWebRTCRTPTransceiver)\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.Size + "\""); - Console.WriteLine("\"GstWebRTCRTPTransceiver.mline\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("mline") + "\""); - Console.WriteLine("\"GstWebRTCRTPTransceiver.mid\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("mid") + "\""); - Console.WriteLine("\"GstWebRTCRTPTransceiver.stopped\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("stopped") + "\""); - Console.WriteLine("\"GstWebRTCRTPTransceiver.sender\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("sender") + "\""); - Console.WriteLine("\"GstWebRTCRTPTransceiver.receiver\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("receiver") + "\""); - Console.WriteLine("\"GstWebRTCRTPTransceiver.direction\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("direction") + "\""); - Console.WriteLine("\"GstWebRTCRTPTransceiver.current_direction\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("current_direction") + "\""); - Console.WriteLine("\"GstWebRTCRTPTransceiver.codec_preferences\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("codec_preferences") + "\""); - Console.WriteLine("\"GstWebRTCRTPTransceiver.kind\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("kind") + "\""); } } } diff --git a/sources/generated/gstreamer-sharp-api.xml b/sources/generated/gstreamer-sharp-api.xml index 1d4ddc7..7a032e5 100644 --- a/sources/generated/gstreamer-sharp-api.xml +++ b/sources/generated/gstreamer-sharp-api.xml @@ -31296,51 +31296,19 @@ -