From: Andoni Morales Alastruey Date: Thu, 5 Aug 2021 13:37:27 +0000 (+0200) Subject: Update bindings with latests GtkSharp X-Git-Tag: 1.19.3~483^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae1562d367056453b288923157b5ac36814c3c01;p=platform%2Fupstream%2Fgstreamer.git Update bindings with latests GtkSharp Update GtkSharp to 4c85f1479cf2e0dc056c0d288785e5a1d7251cb1 and regenerate bindings Part-of: --- diff --git a/ges/generated/GES/MetaFlag.cs b/ges/generated/GES/MetaFlag.cs index b43d31b..a2bc960 100644 --- a/ges/generated/GES/MetaFlag.cs +++ b/ges/generated/GES/MetaFlag.cs @@ -9,7 +9,7 @@ namespace GES { #region Autogenerated code [Flags] [GLib.GType (typeof (GES.MetaFlagGType))] - public enum MetaFlag { + public enum MetaFlag : uint { Readable = 1, Writable = 2, diff --git a/ges/generated/GES/PipelineFlags.cs b/ges/generated/GES/PipelineFlags.cs index c33d5c1..0cbf0db 100644 --- a/ges/generated/GES/PipelineFlags.cs +++ b/ges/generated/GES/PipelineFlags.cs @@ -9,7 +9,7 @@ namespace GES { #region Autogenerated code [Flags] [GLib.GType (typeof (GES.PipelineFlagsGType))] - public enum PipelineFlags { + public enum PipelineFlags : uint { AudioPreview = 1, VideoPreview = 2, diff --git a/ges/generated/GES/TrackType.cs b/ges/generated/GES/TrackType.cs index b8ae049..4150043 100644 --- a/ges/generated/GES/TrackType.cs +++ b/ges/generated/GES/TrackType.cs @@ -9,7 +9,7 @@ namespace GES { #region Autogenerated code [Flags] [GLib.GType (typeof (GES.TrackTypeGType))] - public enum TrackType { + public enum TrackType : uint { Unknown = 1, Audio = 2, diff --git a/sources/generated/Gst.Audio/AudioChannelMixer.cs b/sources/generated/Gst.Audio/AudioChannelMixer.cs index c750a96..29f0256 100644 --- a/sources/generated/Gst.Audio/AudioChannelMixer.cs +++ b/sources/generated/Gst.Audio/AudioChannelMixer.cs @@ -43,29 +43,12 @@ namespace Gst.Audio { gst_audio_channel_mixer_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_audio_channel_mixer_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_audio_channel_mixer_free; } } - ~AudioChannelMixer () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst.Audio/AudioChannelMixerFlags.cs b/sources/generated/Gst.Audio/AudioChannelMixerFlags.cs index d472329..335d784 100644 --- a/sources/generated/Gst.Audio/AudioChannelMixerFlags.cs +++ b/sources/generated/Gst.Audio/AudioChannelMixerFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Audio { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Audio.AudioChannelMixerFlagsGType))] - public enum AudioChannelMixerFlags { + public enum AudioChannelMixerFlags : uint { None = 0, NonInterleavedIn = 1, diff --git a/sources/generated/Gst.Audio/AudioConverterFlags.cs b/sources/generated/Gst.Audio/AudioConverterFlags.cs index d2aa4f3..0d44cc5 100644 --- a/sources/generated/Gst.Audio/AudioConverterFlags.cs +++ b/sources/generated/Gst.Audio/AudioConverterFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Audio { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Audio.AudioConverterFlagsGType))] - public enum AudioConverterFlags { + public enum AudioConverterFlags : uint { None = 0, InWritable = 1, diff --git a/sources/generated/Gst.Audio/AudioFlags.cs b/sources/generated/Gst.Audio/AudioFlags.cs index 68fd4ff..8173d87 100644 --- a/sources/generated/Gst.Audio/AudioFlags.cs +++ b/sources/generated/Gst.Audio/AudioFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Audio { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Audio.AudioFlagsGType))] - public enum AudioFlags { + public enum AudioFlags : uint { None = 0, Unpositioned = 1, diff --git a/sources/generated/Gst.Audio/AudioFormatFlags.cs b/sources/generated/Gst.Audio/AudioFormatFlags.cs index 92c73e0..b997ca9 100644 --- a/sources/generated/Gst.Audio/AudioFormatFlags.cs +++ b/sources/generated/Gst.Audio/AudioFormatFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Audio { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Audio.AudioFormatFlagsGType))] - public enum AudioFormatFlags { + public enum AudioFormatFlags : uint { Integer = 1, Float = 2, diff --git a/sources/generated/Gst.Audio/AudioInfo.cs b/sources/generated/Gst.Audio/AudioInfo.cs index a43c5dd..ac929c7 100644 --- a/sources/generated/Gst.Audio/AudioInfo.cs +++ b/sources/generated/Gst.Audio/AudioInfo.cs @@ -197,29 +197,12 @@ namespace Gst.Audio { gst_audio_info_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_audio_info_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_audio_info_free; } } - ~AudioInfo () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst.Audio/AudioPackFlags.cs b/sources/generated/Gst.Audio/AudioPackFlags.cs index d7fe704..7ec8beb 100644 --- a/sources/generated/Gst.Audio/AudioPackFlags.cs +++ b/sources/generated/Gst.Audio/AudioPackFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Audio { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Audio.AudioPackFlagsGType))] - public enum AudioPackFlags { + public enum AudioPackFlags : uint { None = 0, TruncateRange = 1, diff --git a/sources/generated/Gst.Audio/AudioQuantize.cs b/sources/generated/Gst.Audio/AudioQuantize.cs index 77bf432..adb9cab 100644 --- a/sources/generated/Gst.Audio/AudioQuantize.cs +++ b/sources/generated/Gst.Audio/AudioQuantize.cs @@ -39,29 +39,12 @@ namespace Gst.Audio { gst_audio_quantize_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_audio_quantize_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_audio_quantize_free; } } - ~AudioQuantize () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst.Audio/AudioQuantizeFlags.cs b/sources/generated/Gst.Audio/AudioQuantizeFlags.cs index 487fbf4..10622fe 100644 --- a/sources/generated/Gst.Audio/AudioQuantizeFlags.cs +++ b/sources/generated/Gst.Audio/AudioQuantizeFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Audio { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Audio.AudioQuantizeFlagsGType))] - public enum AudioQuantizeFlags { + public enum AudioQuantizeFlags : uint { None = 0, NonInterleaved = 1, diff --git a/sources/generated/Gst.Audio/AudioResampler.cs b/sources/generated/Gst.Audio/AudioResampler.cs index 78f20b9..7fb437a 100644 --- a/sources/generated/Gst.Audio/AudioResampler.cs +++ b/sources/generated/Gst.Audio/AudioResampler.cs @@ -93,29 +93,12 @@ namespace Gst.Audio { gst_audio_resampler_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_audio_resampler_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_audio_resampler_free; } } - ~AudioResampler () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst.Audio/AudioResamplerFlags.cs b/sources/generated/Gst.Audio/AudioResamplerFlags.cs index 41a40e8..7126c0f 100644 --- a/sources/generated/Gst.Audio/AudioResamplerFlags.cs +++ b/sources/generated/Gst.Audio/AudioResamplerFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Audio { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Audio.AudioResamplerFlagsGType))] - public enum AudioResamplerFlags { + public enum AudioResamplerFlags : uint { None = 0, NonInterleavedIn = 1, diff --git a/sources/generated/Gst.Base/BaseParseFrameFlags.cs b/sources/generated/Gst.Base/BaseParseFrameFlags.cs index 7469d9d..b6da5b4 100644 --- a/sources/generated/Gst.Base/BaseParseFrameFlags.cs +++ b/sources/generated/Gst.Base/BaseParseFrameFlags.cs @@ -8,7 +8,7 @@ namespace Gst.Base { #region Autogenerated code [Flags] - public enum BaseParseFrameFlags { + public enum BaseParseFrameFlags : uint { None = 0, NewFrame = 1, diff --git a/sources/generated/Gst.Base/BaseSrcFlags.cs b/sources/generated/Gst.Base/BaseSrcFlags.cs index 0c2b9ba..17464db 100644 --- a/sources/generated/Gst.Base/BaseSrcFlags.cs +++ b/sources/generated/Gst.Base/BaseSrcFlags.cs @@ -8,7 +8,7 @@ namespace Gst.Base { #region Autogenerated code [Flags] - public enum BaseSrcFlags { + public enum BaseSrcFlags : uint { Starting = 16384, Started = 32768, diff --git a/sources/generated/Gst.Base/CollectPadsStateFlags.cs b/sources/generated/Gst.Base/CollectPadsStateFlags.cs index ed16b24..d4932f7 100644 --- a/sources/generated/Gst.Base/CollectPadsStateFlags.cs +++ b/sources/generated/Gst.Base/CollectPadsStateFlags.cs @@ -8,7 +8,7 @@ namespace Gst.Base { #region Autogenerated code [Flags] - public enum CollectPadsStateFlags { + public enum CollectPadsStateFlags : uint { Eos = 1, Flushing = 2, diff --git a/sources/generated/Gst.PbUtils/DiscovererSerializeFlags.cs b/sources/generated/Gst.PbUtils/DiscovererSerializeFlags.cs index 9536068..2b603d6 100644 --- a/sources/generated/Gst.PbUtils/DiscovererSerializeFlags.cs +++ b/sources/generated/Gst.PbUtils/DiscovererSerializeFlags.cs @@ -9,7 +9,7 @@ namespace Gst.PbUtils { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.PbUtils.DiscovererSerializeFlagsGType))] - public enum DiscovererSerializeFlags { + public enum DiscovererSerializeFlags : uint { Basic = 0, Caps = 1, diff --git a/sources/generated/Gst.Rtp/RTPBufferFlags.cs b/sources/generated/Gst.Rtp/RTPBufferFlags.cs index 39cc65c..27171b2 100644 --- a/sources/generated/Gst.Rtp/RTPBufferFlags.cs +++ b/sources/generated/Gst.Rtp/RTPBufferFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Rtp { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Rtp.RTPBufferFlagsGType))] - public enum RTPBufferFlags { + public enum RTPBufferFlags : uint { Retransmission = 1048576, Redundant = 2097152, diff --git a/sources/generated/Gst.Rtp/RTPBufferMapFlags.cs b/sources/generated/Gst.Rtp/RTPBufferMapFlags.cs index 6a3cea7..b85575c 100644 --- a/sources/generated/Gst.Rtp/RTPBufferMapFlags.cs +++ b/sources/generated/Gst.Rtp/RTPBufferMapFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Rtp { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Rtp.RTPBufferMapFlagsGType))] - public enum RTPBufferMapFlags { + public enum RTPBufferMapFlags : uint { SkipPadding = 65536, Last = 16777216, diff --git a/sources/generated/Gst.Rtsp/RTSPEvent.cs b/sources/generated/Gst.Rtsp/RTSPEvent.cs index d1b1799..889ab56 100644 --- a/sources/generated/Gst.Rtsp/RTSPEvent.cs +++ b/sources/generated/Gst.Rtsp/RTSPEvent.cs @@ -9,7 +9,7 @@ namespace Gst.Rtsp { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Rtsp.RTSPEventGType))] - public enum RTSPEvent { + public enum RTSPEvent : uint { Read = 1, Write = 2, diff --git a/sources/generated/Gst.Rtsp/RTSPLowerTrans.cs b/sources/generated/Gst.Rtsp/RTSPLowerTrans.cs index 096d605..52d930e 100644 --- a/sources/generated/Gst.Rtsp/RTSPLowerTrans.cs +++ b/sources/generated/Gst.Rtsp/RTSPLowerTrans.cs @@ -9,7 +9,7 @@ namespace Gst.Rtsp { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Rtsp.RTSPLowerTransGType))] - public enum RTSPLowerTrans { + public enum RTSPLowerTrans : uint { Unknown = 0, Udp = 1, diff --git a/sources/generated/Gst.Rtsp/RTSPMethod.cs b/sources/generated/Gst.Rtsp/RTSPMethod.cs index 88b56bb..b5cf1ab 100644 --- a/sources/generated/Gst.Rtsp/RTSPMethod.cs +++ b/sources/generated/Gst.Rtsp/RTSPMethod.cs @@ -9,7 +9,7 @@ namespace Gst.Rtsp { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Rtsp.RTSPMethodGType))] - public enum RTSPMethod { + public enum RTSPMethod : uint { Invalid = 0, Describe = 1, diff --git a/sources/generated/Gst.Rtsp/RTSPProfile.cs b/sources/generated/Gst.Rtsp/RTSPProfile.cs index cc725a1..ab7c96b 100644 --- a/sources/generated/Gst.Rtsp/RTSPProfile.cs +++ b/sources/generated/Gst.Rtsp/RTSPProfile.cs @@ -9,7 +9,7 @@ namespace Gst.Rtsp { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Rtsp.RTSPProfileGType))] - public enum RTSPProfile { + public enum RTSPProfile : uint { Unknown = 0, Avp = 1, diff --git a/sources/generated/Gst.Rtsp/RTSPTransMode.cs b/sources/generated/Gst.Rtsp/RTSPTransMode.cs index 9078350..6236d1d 100644 --- a/sources/generated/Gst.Rtsp/RTSPTransMode.cs +++ b/sources/generated/Gst.Rtsp/RTSPTransMode.cs @@ -9,7 +9,7 @@ namespace Gst.Rtsp { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Rtsp.RTSPTransModeGType))] - public enum RTSPTransMode { + public enum RTSPTransMode : uint { Unknown = 0, Rtp = 1, diff --git a/sources/generated/Gst.Rtsp/RTSPWatch.cs b/sources/generated/Gst.Rtsp/RTSPWatch.cs index e7fd163..2df7e36 100644 --- a/sources/generated/Gst.Rtsp/RTSPWatch.cs +++ b/sources/generated/Gst.Rtsp/RTSPWatch.cs @@ -113,29 +113,12 @@ namespace Gst.Rtsp { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_rtsp_watch_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_rtsp_watch_unref; } } - ~RTSPWatch () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst.Tags/TagLicenseFlags.cs b/sources/generated/Gst.Tags/TagLicenseFlags.cs index f353fd4..726350c 100644 --- a/sources/generated/Gst.Tags/TagLicenseFlags.cs +++ b/sources/generated/Gst.Tags/TagLicenseFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Tags { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Tags.TagLicenseFlagsGType))] - public enum TagLicenseFlags { + public enum TagLicenseFlags : uint { PermitsReproduction = 1, PermitsDistribution = 2, diff --git a/sources/generated/Gst.Video/VideoBufferFlags.cs b/sources/generated/Gst.Video/VideoBufferFlags.cs index 7805031..0430cdd 100644 --- a/sources/generated/Gst.Video/VideoBufferFlags.cs +++ b/sources/generated/Gst.Video/VideoBufferFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoBufferFlagsGType))] - public enum VideoBufferFlags { + public enum VideoBufferFlags : uint { Marker = 512, Interlaced = 1048576, diff --git a/sources/generated/Gst.Video/VideoChromaFlags.cs b/sources/generated/Gst.Video/VideoChromaFlags.cs index e7b26ae..816a743 100644 --- a/sources/generated/Gst.Video/VideoChromaFlags.cs +++ b/sources/generated/Gst.Video/VideoChromaFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoChromaFlagsGType))] - public enum VideoChromaFlags { + public enum VideoChromaFlags : uint { None = 0, Interlaced = 1, diff --git a/sources/generated/Gst.Video/VideoChromaResample.cs b/sources/generated/Gst.Video/VideoChromaResample.cs index f63c8be..5312258 100644 --- a/sources/generated/Gst.Video/VideoChromaResample.cs +++ b/sources/generated/Gst.Video/VideoChromaResample.cs @@ -28,29 +28,12 @@ namespace Gst.Video { gst_video_chroma_resample_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_video_chroma_resample_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_video_chroma_resample_free; } } - ~VideoChromaResample () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst.Video/VideoChromaSite.cs b/sources/generated/Gst.Video/VideoChromaSite.cs index 5b0ddf1..968fd75 100644 --- a/sources/generated/Gst.Video/VideoChromaSite.cs +++ b/sources/generated/Gst.Video/VideoChromaSite.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoChromaSiteGType))] - public enum VideoChromaSite { + public enum VideoChromaSite : uint { Unknown = 0, None = 1, diff --git a/sources/generated/Gst.Video/VideoCodecFrameFlags.cs b/sources/generated/Gst.Video/VideoCodecFrameFlags.cs index adc692a..bf01008 100644 --- a/sources/generated/Gst.Video/VideoCodecFrameFlags.cs +++ b/sources/generated/Gst.Video/VideoCodecFrameFlags.cs @@ -8,7 +8,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] - public enum VideoCodecFrameFlags { + public enum VideoCodecFrameFlags : uint { DecodeOnly = 1, SyncPoint = 2, diff --git a/sources/generated/Gst.Video/VideoConverter.cs b/sources/generated/Gst.Video/VideoConverter.cs index 5468ee8..57278a4 100644 --- a/sources/generated/Gst.Video/VideoConverter.cs +++ b/sources/generated/Gst.Video/VideoConverter.cs @@ -53,29 +53,12 @@ namespace Gst.Video { gst_video_converter_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_video_converter_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_video_converter_free; } } - ~VideoConverter () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst.Video/VideoDecoderRequestSyncPointFlags.cs b/sources/generated/Gst.Video/VideoDecoderRequestSyncPointFlags.cs index bff7dbe..4547976 100644 --- a/sources/generated/Gst.Video/VideoDecoderRequestSyncPointFlags.cs +++ b/sources/generated/Gst.Video/VideoDecoderRequestSyncPointFlags.cs @@ -8,7 +8,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] - public enum VideoDecoderRequestSyncPointFlags { + public enum VideoDecoderRequestSyncPointFlags : uint { DiscardInput = 1, CorruptOutput = 2, diff --git a/sources/generated/Gst.Video/VideoDither.cs b/sources/generated/Gst.Video/VideoDither.cs index 56912eb..2720f94 100644 --- a/sources/generated/Gst.Video/VideoDither.cs +++ b/sources/generated/Gst.Video/VideoDither.cs @@ -32,29 +32,12 @@ namespace Gst.Video { gst_video_dither_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_video_dither_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_video_dither_free; } } - ~VideoDither () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst.Video/VideoDitherFlags.cs b/sources/generated/Gst.Video/VideoDitherFlags.cs index 7696be4..8ed9651 100644 --- a/sources/generated/Gst.Video/VideoDitherFlags.cs +++ b/sources/generated/Gst.Video/VideoDitherFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoDitherFlagsGType))] - public enum VideoDitherFlags { + public enum VideoDitherFlags : uint { None = 0, Interlaced = 1, diff --git a/sources/generated/Gst.Video/VideoFlags.cs b/sources/generated/Gst.Video/VideoFlags.cs index 6fdf4b9..fa05bab 100644 --- a/sources/generated/Gst.Video/VideoFlags.cs +++ b/sources/generated/Gst.Video/VideoFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoFlagsGType))] - public enum VideoFlags { + public enum VideoFlags : uint { None = 0, VariableFps = 1, diff --git a/sources/generated/Gst.Video/VideoFormatFlags.cs b/sources/generated/Gst.Video/VideoFormatFlags.cs index 5f93a33..f5dd2ce 100644 --- a/sources/generated/Gst.Video/VideoFormatFlags.cs +++ b/sources/generated/Gst.Video/VideoFormatFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoFormatFlagsGType))] - public enum VideoFormatFlags { + public enum VideoFormatFlags : uint { Yuv = 1, Rgb = 2, diff --git a/sources/generated/Gst.Video/VideoFrameFlags.cs b/sources/generated/Gst.Video/VideoFrameFlags.cs index bdd97f2..56b1a01 100644 --- a/sources/generated/Gst.Video/VideoFrameFlags.cs +++ b/sources/generated/Gst.Video/VideoFrameFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoFrameFlagsGType))] - public enum VideoFrameFlags { + public enum VideoFrameFlags : uint { None = 0, Interlaced = 1, diff --git a/sources/generated/Gst.Video/VideoFrameMapFlags.cs b/sources/generated/Gst.Video/VideoFrameMapFlags.cs index 93b4ee3..ab6b1a9 100644 --- a/sources/generated/Gst.Video/VideoFrameMapFlags.cs +++ b/sources/generated/Gst.Video/VideoFrameMapFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoFrameMapFlagsGType))] - public enum VideoFrameMapFlags { + public enum VideoFrameMapFlags : uint { NoRef = 65536, Last = 16777216, diff --git a/sources/generated/Gst.Video/VideoInfo.cs b/sources/generated/Gst.Video/VideoInfo.cs index 2380d1d..b963455 100644 --- a/sources/generated/Gst.Video/VideoInfo.cs +++ b/sources/generated/Gst.Video/VideoInfo.cs @@ -329,29 +329,12 @@ namespace Gst.Video { gst_video_info_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_video_info_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_video_info_free; } } - ~VideoInfo () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst.Video/VideoMultiviewFlags.cs b/sources/generated/Gst.Video/VideoMultiviewFlags.cs index 0c66756..e78a5ea 100644 --- a/sources/generated/Gst.Video/VideoMultiviewFlags.cs +++ b/sources/generated/Gst.Video/VideoMultiviewFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoMultiviewFlagsGType))] - public enum VideoMultiviewFlags { + public enum VideoMultiviewFlags : uint { None = 0, RightViewFirst = 1, diff --git a/sources/generated/Gst.Video/VideoOverlayFormatFlags.cs b/sources/generated/Gst.Video/VideoOverlayFormatFlags.cs index f126c6f..740397f 100644 --- a/sources/generated/Gst.Video/VideoOverlayFormatFlags.cs +++ b/sources/generated/Gst.Video/VideoOverlayFormatFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoOverlayFormatFlagsGType))] - public enum VideoOverlayFormatFlags { + public enum VideoOverlayFormatFlags : uint { None = 0, PremultipliedAlpha = 1, diff --git a/sources/generated/Gst.Video/VideoPackFlags.cs b/sources/generated/Gst.Video/VideoPackFlags.cs index 82dea62..aa38e58 100644 --- a/sources/generated/Gst.Video/VideoPackFlags.cs +++ b/sources/generated/Gst.Video/VideoPackFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoPackFlagsGType))] - public enum VideoPackFlags { + public enum VideoPackFlags : uint { None = 0, TruncateRange = 1, diff --git a/sources/generated/Gst.Video/VideoResamplerFlags.cs b/sources/generated/Gst.Video/VideoResamplerFlags.cs index d1086dd..47db45e 100644 --- a/sources/generated/Gst.Video/VideoResamplerFlags.cs +++ b/sources/generated/Gst.Video/VideoResamplerFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoResamplerFlagsGType))] - public enum VideoResamplerFlags { + public enum VideoResamplerFlags : uint { None = 0, HalfTaps = 1, diff --git a/sources/generated/Gst.Video/VideoScaler.cs b/sources/generated/Gst.Video/VideoScaler.cs index 7b8fb55..16f6b24 100644 --- a/sources/generated/Gst.Video/VideoScaler.cs +++ b/sources/generated/Gst.Video/VideoScaler.cs @@ -74,29 +74,12 @@ namespace Gst.Video { gst_video_scaler_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_video_scaler_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_video_scaler_free; } } - ~VideoScaler () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst.Video/VideoScalerFlags.cs b/sources/generated/Gst.Video/VideoScalerFlags.cs index 934eef9..4855181 100644 --- a/sources/generated/Gst.Video/VideoScalerFlags.cs +++ b/sources/generated/Gst.Video/VideoScalerFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoScalerFlagsGType))] - public enum VideoScalerFlags { + public enum VideoScalerFlags : uint { None = 0, Interlaced = 1, diff --git a/sources/generated/Gst.Video/VideoTimeCodeFlags.cs b/sources/generated/Gst.Video/VideoTimeCodeFlags.cs index e6dbe1f..7409b6a 100644 --- a/sources/generated/Gst.Video/VideoTimeCodeFlags.cs +++ b/sources/generated/Gst.Video/VideoTimeCodeFlags.cs @@ -9,7 +9,7 @@ namespace Gst.Video { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.Video.VideoTimeCodeFlagsGType))] - public enum VideoTimeCodeFlags { + public enum VideoTimeCodeFlags : uint { None = 0, DropFrame = 1, diff --git a/sources/generated/Gst/AllocatorFlags.cs b/sources/generated/Gst/AllocatorFlags.cs index 26bac83..88b80c6 100644 --- a/sources/generated/Gst/AllocatorFlags.cs +++ b/sources/generated/Gst/AllocatorFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.AllocatorFlagsGType))] - public enum AllocatorFlags { + public enum AllocatorFlags : uint { CustomAlloc = 16, Last = 1048576, diff --git a/sources/generated/Gst/AtomicQueue.cs b/sources/generated/Gst/AtomicQueue.cs index 1ca7f76..67c8fec 100644 --- a/sources/generated/Gst/AtomicQueue.cs +++ b/sources/generated/Gst/AtomicQueue.cs @@ -88,29 +88,12 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_atomic_queue_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_atomic_queue_unref; } } - ~AtomicQueue () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/BinFlags.cs b/sources/generated/Gst/BinFlags.cs index b3ceeee..f499438 100644 --- a/sources/generated/Gst/BinFlags.cs +++ b/sources/generated/Gst/BinFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.BinFlagsGType))] - public enum BinFlags { + public enum BinFlags : uint { NoResync = 16384, StreamsAware = 32768, diff --git a/sources/generated/Gst/Buffer.cs b/sources/generated/Gst/Buffer.cs index 07e5808..bb7144a 100644 --- a/sources/generated/Gst/Buffer.cs +++ b/sources/generated/Gst/Buffer.cs @@ -640,29 +640,12 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_buffer_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_buffer_unref; } } - ~Buffer () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/BufferCopyFlags.cs b/sources/generated/Gst/BufferCopyFlags.cs index c4c3b17..24bb8fc 100644 --- a/sources/generated/Gst/BufferCopyFlags.cs +++ b/sources/generated/Gst/BufferCopyFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.BufferCopyFlagsGType))] - public enum BufferCopyFlags { + public enum BufferCopyFlags : uint { None = 0, Flags = 1, diff --git a/sources/generated/Gst/BufferFlags.cs b/sources/generated/Gst/BufferFlags.cs index 6640b39..611d3ac 100644 --- a/sources/generated/Gst/BufferFlags.cs +++ b/sources/generated/Gst/BufferFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.BufferFlagsGType))] - public enum BufferFlags { + public enum BufferFlags : uint { Live = 16, DecodeOnly = 32, diff --git a/sources/generated/Gst/BufferList.cs b/sources/generated/Gst/BufferList.cs index 77b2448..18ffe1b 100644 --- a/sources/generated/Gst/BufferList.cs +++ b/sources/generated/Gst/BufferList.cs @@ -132,29 +132,12 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_buffer_list_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_buffer_list_unref; } } - ~BufferList () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/BufferPoolAcquireFlags.cs b/sources/generated/Gst/BufferPoolAcquireFlags.cs index c833e33..4df0b1a 100644 --- a/sources/generated/Gst/BufferPoolAcquireFlags.cs +++ b/sources/generated/Gst/BufferPoolAcquireFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.BufferPoolAcquireFlagsGType))] - public enum BufferPoolAcquireFlags { + public enum BufferPoolAcquireFlags : uint { None = 0, KeyUnit = 1, diff --git a/sources/generated/Gst/BusFlags.cs b/sources/generated/Gst/BusFlags.cs index 0631948..5a3afc4 100644 --- a/sources/generated/Gst/BusFlags.cs +++ b/sources/generated/Gst/BusFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.BusFlagsGType))] - public enum BusFlags { + public enum BusFlags : uint { Flushing = 16, FlagLast = 32, diff --git a/sources/generated/Gst/Caps.cs b/sources/generated/Gst/Caps.cs index 4037187..0c56e6d 100644 --- a/sources/generated/Gst/Caps.cs +++ b/sources/generated/Gst/Caps.cs @@ -459,29 +459,12 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_caps_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_caps_unref; } } - ~Caps () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/CapsFlags.cs b/sources/generated/Gst/CapsFlags.cs index 9a18ad0..20d3d34 100644 --- a/sources/generated/Gst/CapsFlags.cs +++ b/sources/generated/Gst/CapsFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.CapsFlagsGType))] - public enum CapsFlags { + public enum CapsFlags : uint { Any = 16, } diff --git a/sources/generated/Gst/ClockFlags.cs b/sources/generated/Gst/ClockFlags.cs index eb447a3..55e02cf 100644 --- a/sources/generated/Gst/ClockFlags.cs +++ b/sources/generated/Gst/ClockFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.ClockFlagsGType))] - public enum ClockFlags { + public enum ClockFlags : uint { CanDoSingleSync = 16, CanDoSingleAsync = 32, diff --git a/sources/generated/Gst/DateTime.cs b/sources/generated/Gst/DateTime.cs index b40feba..7a926f0 100644 --- a/sources/generated/Gst/DateTime.cs +++ b/sources/generated/Gst/DateTime.cs @@ -317,29 +317,12 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_date_time_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_date_time_unref; } } - ~DateTime () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/DebugColorFlags.cs b/sources/generated/Gst/DebugColorFlags.cs index 3b7cfc9..1ffdaba 100644 --- a/sources/generated/Gst/DebugColorFlags.cs +++ b/sources/generated/Gst/DebugColorFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.DebugColorFlagsGType))] - public enum DebugColorFlags { + public enum DebugColorFlags : uint { FgBlack = 0, BgBlack = 0, diff --git a/sources/generated/Gst/DebugGraphDetails.cs b/sources/generated/Gst/DebugGraphDetails.cs index f43b0a8..40b00d0 100644 --- a/sources/generated/Gst/DebugGraphDetails.cs +++ b/sources/generated/Gst/DebugGraphDetails.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.DebugGraphDetailsGType))] - public enum DebugGraphDetails { + public enum DebugGraphDetails : uint { MediaType = 1, CapsDetails = 2, diff --git a/sources/generated/Gst/ElementFlags.cs b/sources/generated/Gst/ElementFlags.cs index 4183513..aa37b86 100644 --- a/sources/generated/Gst/ElementFlags.cs +++ b/sources/generated/Gst/ElementFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.ElementFlagsGType))] - public enum ElementFlags { + public enum ElementFlags : uint { LockedState = 16, Sink = 32, diff --git a/sources/generated/Gst/Event.cs b/sources/generated/Gst/Event.cs index 104e29f..6657cfd 100644 --- a/sources/generated/Gst/Event.cs +++ b/sources/generated/Gst/Event.cs @@ -719,29 +719,12 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_event_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_event_unref; } } - ~Event () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/EventTypeFlags.cs b/sources/generated/Gst/EventTypeFlags.cs index 231ac54..5e19c12 100644 --- a/sources/generated/Gst/EventTypeFlags.cs +++ b/sources/generated/Gst/EventTypeFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.EventTypeFlagsGType))] - public enum EventTypeFlags { + public enum EventTypeFlags : uint { Upstream = 1, Downstream = 2, diff --git a/sources/generated/Gst/GapFlags.cs b/sources/generated/Gst/GapFlags.cs index 72c2149..4c4194a 100644 --- a/sources/generated/Gst/GapFlags.cs +++ b/sources/generated/Gst/GapFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.GapFlagsGType))] - public enum GapFlags { + public enum GapFlags : uint { Data = 1, } diff --git a/sources/generated/Gst/Iterator.cs b/sources/generated/Gst/Iterator.cs index b773115..2c264e2 100644 --- a/sources/generated/Gst/Iterator.cs +++ b/sources/generated/Gst/Iterator.cs @@ -262,29 +262,12 @@ namespace Gst { gst_iterator_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_iterator_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_iterator_free; } } - ~Iterator () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/LockFlags.cs b/sources/generated/Gst/LockFlags.cs index 236ced1..3e1bc18 100644 --- a/sources/generated/Gst/LockFlags.cs +++ b/sources/generated/Gst/LockFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.LockFlagsGType))] - public enum LockFlags { + public enum LockFlags : uint { Read = 1, Write = 2, diff --git a/sources/generated/Gst/MapFlags.cs b/sources/generated/Gst/MapFlags.cs index 26e47ae..a0a4985 100644 --- a/sources/generated/Gst/MapFlags.cs +++ b/sources/generated/Gst/MapFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.MapFlagsGType))] - public enum MapFlags { + public enum MapFlags : uint { Read = 1, Write = 2, diff --git a/sources/generated/Gst/Memory.cs b/sources/generated/Gst/Memory.cs index c0c9a78..713f763 100644 --- a/sources/generated/Gst/Memory.cs +++ b/sources/generated/Gst/Memory.cs @@ -237,29 +237,12 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_memory_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_memory_unref; } } - ~Memory () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/MemoryFlags.cs b/sources/generated/Gst/MemoryFlags.cs index ae4441c..05c7f66 100644 --- a/sources/generated/Gst/MemoryFlags.cs +++ b/sources/generated/Gst/MemoryFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.MemoryFlagsGType))] - public enum MemoryFlags { + public enum MemoryFlags : uint { Readonly = 2, NoShare = 16, diff --git a/sources/generated/Gst/Message.cs b/sources/generated/Gst/Message.cs index b526ea2..f338b24 100644 --- a/sources/generated/Gst/Message.cs +++ b/sources/generated/Gst/Message.cs @@ -1024,29 +1024,12 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_message_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_message_unref; } } - ~Message () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/MetaFlags.cs b/sources/generated/Gst/MetaFlags.cs index eacf13e..0bdd017 100644 --- a/sources/generated/Gst/MetaFlags.cs +++ b/sources/generated/Gst/MetaFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.MetaFlagsGType))] - public enum MetaFlags { + public enum MetaFlags : uint { None = 0, Readonly = 1, diff --git a/sources/generated/Gst/MiniObject.cs b/sources/generated/Gst/MiniObject.cs index afd7922..f890308 100644 --- a/sources/generated/Gst/MiniObject.cs +++ b/sources/generated/Gst/MiniObject.cs @@ -206,29 +206,12 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_mini_object_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_mini_object_unref; } } - ~MiniObject () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/MiniObjectFlags.cs b/sources/generated/Gst/MiniObjectFlags.cs index 07eed11..4d2c397 100644 --- a/sources/generated/Gst/MiniObjectFlags.cs +++ b/sources/generated/Gst/MiniObjectFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.MiniObjectFlagsGType))] - public enum MiniObjectFlags { + public enum MiniObjectFlags : uint { Lockable = 1, LockReadonly = 2, diff --git a/sources/generated/Gst/ObjectFlags.cs b/sources/generated/Gst/ObjectFlags.cs index 160dd72..e93718f 100644 --- a/sources/generated/Gst/ObjectFlags.cs +++ b/sources/generated/Gst/ObjectFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.ObjectFlagsGType))] - public enum ObjectFlags { + public enum ObjectFlags : uint { MayBeLeaked = 1, Last = 16, diff --git a/sources/generated/Gst/PadFlags.cs b/sources/generated/Gst/PadFlags.cs index 01331f8..d533528 100644 --- a/sources/generated/Gst/PadFlags.cs +++ b/sources/generated/Gst/PadFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.PadFlagsGType))] - public enum PadFlags { + public enum PadFlags : uint { Blocked = 16, Flushing = 32, diff --git a/sources/generated/Gst/PadLinkCheck.cs b/sources/generated/Gst/PadLinkCheck.cs index 94907d0..556b1fd 100644 --- a/sources/generated/Gst/PadLinkCheck.cs +++ b/sources/generated/Gst/PadLinkCheck.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.PadLinkCheckGType))] - public enum PadLinkCheck { + public enum PadLinkCheck : uint { Nothing = 0, Hierarchy = 1, diff --git a/sources/generated/Gst/PadProbeType.cs b/sources/generated/Gst/PadProbeType.cs index 4962721..d5c30ca 100644 --- a/sources/generated/Gst/PadProbeType.cs +++ b/sources/generated/Gst/PadProbeType.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.PadProbeTypeGType))] - public enum PadProbeType { + public enum PadProbeType : uint { Invalid = 0, Idle = 1, diff --git a/sources/generated/Gst/PadTemplateFlags.cs b/sources/generated/Gst/PadTemplateFlags.cs index 4f508ff..5efdb0e 100644 --- a/sources/generated/Gst/PadTemplateFlags.cs +++ b/sources/generated/Gst/PadTemplateFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.PadTemplateFlagsGType))] - public enum PadTemplateFlags { + public enum PadTemplateFlags : uint { Last = 256, } diff --git a/sources/generated/Gst/ParseContext.cs b/sources/generated/Gst/ParseContext.cs index c672c16..250adf9 100644 --- a/sources/generated/Gst/ParseContext.cs +++ b/sources/generated/Gst/ParseContext.cs @@ -60,29 +60,12 @@ namespace Gst { gst_parse_context_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_parse_context_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_parse_context_free; } } - ~ParseContext () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/ParseFlags.cs b/sources/generated/Gst/ParseFlags.cs index c485917..3f03a1c 100644 --- a/sources/generated/Gst/ParseFlags.cs +++ b/sources/generated/Gst/ParseFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.ParseFlagsGType))] - public enum ParseFlags { + public enum ParseFlags : uint { None = 0, FatalErrors = 1, diff --git a/sources/generated/Gst/PipelineFlags.cs b/sources/generated/Gst/PipelineFlags.cs index eb906b5..8c7bd3b 100644 --- a/sources/generated/Gst/PipelineFlags.cs +++ b/sources/generated/Gst/PipelineFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.PipelineFlagsGType))] - public enum PipelineFlags { + public enum PipelineFlags : uint { FixedClock = 524288, Last = 8388608, diff --git a/sources/generated/Gst/PluginAPIFlags.cs b/sources/generated/Gst/PluginAPIFlags.cs index 57d5176..607c0da 100644 --- a/sources/generated/Gst/PluginAPIFlags.cs +++ b/sources/generated/Gst/PluginAPIFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.PluginAPIFlagsGType))] - public enum PluginAPIFlags { + public enum PluginAPIFlags : uint { Members = 1, } diff --git a/sources/generated/Gst/PluginDependencyFlags.cs b/sources/generated/Gst/PluginDependencyFlags.cs index 509617a..b845e8d 100644 --- a/sources/generated/Gst/PluginDependencyFlags.cs +++ b/sources/generated/Gst/PluginDependencyFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.PluginDependencyFlagsGType))] - public enum PluginDependencyFlags { + public enum PluginDependencyFlags : uint { None = 0, Recurse = 1, diff --git a/sources/generated/Gst/PluginFlags.cs b/sources/generated/Gst/PluginFlags.cs index 8646710..2d533c2 100644 --- a/sources/generated/Gst/PluginFlags.cs +++ b/sources/generated/Gst/PluginFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.PluginFlagsGType))] - public enum PluginFlags { + public enum PluginFlags : uint { Cached = 16, Blacklisted = 32, diff --git a/sources/generated/Gst/Poll.cs b/sources/generated/Gst/Poll.cs index f3e1c11..134605b 100644 --- a/sources/generated/Gst/Poll.cs +++ b/sources/generated/Gst/Poll.cs @@ -203,29 +203,12 @@ namespace Gst { gst_poll_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_poll_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_poll_free; } } - ~Poll () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/Query.cs b/sources/generated/Gst/Query.cs index 01bfb39..f376271 100644 --- a/sources/generated/Gst/Query.cs +++ b/sources/generated/Gst/Query.cs @@ -821,29 +821,12 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_query_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_query_unref; } } - ~Query () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/QueryTypeFlags.cs b/sources/generated/Gst/QueryTypeFlags.cs index a0be4d0..f1be657 100644 --- a/sources/generated/Gst/QueryTypeFlags.cs +++ b/sources/generated/Gst/QueryTypeFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.QueryTypeFlagsGType))] - public enum QueryTypeFlags { + public enum QueryTypeFlags : uint { Upstream = 1, Downstream = 2, diff --git a/sources/generated/Gst/Sample.cs b/sources/generated/Gst/Sample.cs index 0a462af..c4dbc0b 100644 --- a/sources/generated/Gst/Sample.cs +++ b/sources/generated/Gst/Sample.cs @@ -148,29 +148,12 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_sample_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_sample_unref; } } - ~Sample () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/SchedulingFlags.cs b/sources/generated/Gst/SchedulingFlags.cs index 2b5e2a6..caec4e1 100644 --- a/sources/generated/Gst/SchedulingFlags.cs +++ b/sources/generated/Gst/SchedulingFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.SchedulingFlagsGType))] - public enum SchedulingFlags { + public enum SchedulingFlags : uint { Seekable = 1, Sequential = 2, diff --git a/sources/generated/Gst/SeekFlags.cs b/sources/generated/Gst/SeekFlags.cs index 6008650..b8757bd 100644 --- a/sources/generated/Gst/SeekFlags.cs +++ b/sources/generated/Gst/SeekFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.SeekFlagsGType))] - public enum SeekFlags { + public enum SeekFlags : uint { None = 0, Flush = 1, diff --git a/sources/generated/Gst/SegmentFlags.cs b/sources/generated/Gst/SegmentFlags.cs index ec5f290..37e27e0 100644 --- a/sources/generated/Gst/SegmentFlags.cs +++ b/sources/generated/Gst/SegmentFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.SegmentFlagsGType))] - public enum SegmentFlags { + public enum SegmentFlags : uint { None = 0, Reset = 1, diff --git a/sources/generated/Gst/StackTraceFlags.cs b/sources/generated/Gst/StackTraceFlags.cs index 869bbf8..134da40 100644 --- a/sources/generated/Gst/StackTraceFlags.cs +++ b/sources/generated/Gst/StackTraceFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.StackTraceFlagsGType))] - public enum StackTraceFlags { + public enum StackTraceFlags : uint { None = 0, Full = 1, diff --git a/sources/generated/Gst/StreamFlags.cs b/sources/generated/Gst/StreamFlags.cs index 3131fbd..19da640 100644 --- a/sources/generated/Gst/StreamFlags.cs +++ b/sources/generated/Gst/StreamFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.StreamFlagsGType))] - public enum StreamFlags { + public enum StreamFlags : uint { None = 0, Sparse = 1, diff --git a/sources/generated/Gst/StreamType.cs b/sources/generated/Gst/StreamType.cs index 7ecbdad..e3ee514 100644 --- a/sources/generated/Gst/StreamType.cs +++ b/sources/generated/Gst/StreamType.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.StreamTypeGType))] - public enum StreamType { + public enum StreamType : uint { Unknown = 1, Audio = 2, diff --git a/sources/generated/Gst/Structure.cs b/sources/generated/Gst/Structure.cs index 77f1efc..3b58198 100644 --- a/sources/generated/Gst/Structure.cs +++ b/sources/generated/Gst/Structure.cs @@ -631,29 +631,12 @@ namespace Gst { gst_structure_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_structure_free (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_structure_free; } } - ~Structure () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/TagList.cs b/sources/generated/Gst/TagList.cs index d495f54..553b50a 100644 --- a/sources/generated/Gst/TagList.cs +++ b/sources/generated/Gst/TagList.cs @@ -514,29 +514,12 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_tag_list_unref (handle); - return false; + protected override Action DisposeUnmanagedFunc { + get { + return gst_tag_list_unref; } } - ~TagList () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); - } - // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/Gst/TracerValueFlags.cs b/sources/generated/Gst/TracerValueFlags.cs index 5891cd4..8392711 100644 --- a/sources/generated/Gst/TracerValueFlags.cs +++ b/sources/generated/Gst/TracerValueFlags.cs @@ -9,7 +9,7 @@ namespace Gst { #region Autogenerated code [Flags] [GLib.GType (typeof (Gst.TracerValueFlagsGType))] - public enum TracerValueFlags { + public enum TracerValueFlags : uint { None = 0, Optional = 1, diff --git a/subprojects/gtk-sharp.wrap b/subprojects/gtk-sharp.wrap index 948759a..0edce1c 100644 --- a/subprojects/gtk-sharp.wrap +++ b/subprojects/gtk-sharp.wrap @@ -1,4 +1,4 @@ [wrap-git] directory=gtk-sharp url=https://github.com/GLibSharp/GtkSharp.git -revision=master +revision=4c85f1479cf2e0dc056c0d288785e5a1d7251cb1