From ae1562d367056453b288923157b5ac36814c3c01 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Thu, 5 Aug 2021 15:37:27 +0200 Subject: [PATCH] Update bindings with latests GtkSharp Update GtkSharp to 4c85f1479cf2e0dc056c0d288785e5a1d7251cb1 and regenerate bindings Part-of: --- ges/generated/GES/MetaFlag.cs | 2 +- ges/generated/GES/PipelineFlags.cs | 2 +- ges/generated/GES/TrackType.cs | 2 +- .../generated/Gst.Audio/AudioChannelMixer.cs | 23 +++---------------- .../Gst.Audio/AudioChannelMixerFlags.cs | 2 +- .../Gst.Audio/AudioConverterFlags.cs | 2 +- sources/generated/Gst.Audio/AudioFlags.cs | 2 +- .../generated/Gst.Audio/AudioFormatFlags.cs | 2 +- sources/generated/Gst.Audio/AudioInfo.cs | 23 +++---------------- sources/generated/Gst.Audio/AudioPackFlags.cs | 2 +- sources/generated/Gst.Audio/AudioQuantize.cs | 23 +++---------------- .../generated/Gst.Audio/AudioQuantizeFlags.cs | 2 +- sources/generated/Gst.Audio/AudioResampler.cs | 23 +++---------------- .../Gst.Audio/AudioResamplerFlags.cs | 2 +- .../generated/Gst.Base/BaseParseFrameFlags.cs | 2 +- sources/generated/Gst.Base/BaseSrcFlags.cs | 2 +- .../Gst.Base/CollectPadsStateFlags.cs | 2 +- .../Gst.PbUtils/DiscovererSerializeFlags.cs | 2 +- sources/generated/Gst.Rtp/RTPBufferFlags.cs | 2 +- .../generated/Gst.Rtp/RTPBufferMapFlags.cs | 2 +- sources/generated/Gst.Rtsp/RTSPEvent.cs | 2 +- sources/generated/Gst.Rtsp/RTSPLowerTrans.cs | 2 +- sources/generated/Gst.Rtsp/RTSPMethod.cs | 2 +- sources/generated/Gst.Rtsp/RTSPProfile.cs | 2 +- sources/generated/Gst.Rtsp/RTSPTransMode.cs | 2 +- sources/generated/Gst.Rtsp/RTSPWatch.cs | 23 +++---------------- sources/generated/Gst.Tags/TagLicenseFlags.cs | 2 +- .../generated/Gst.Video/VideoBufferFlags.cs | 2 +- .../generated/Gst.Video/VideoChromaFlags.cs | 2 +- .../Gst.Video/VideoChromaResample.cs | 23 +++---------------- .../generated/Gst.Video/VideoChromaSite.cs | 2 +- .../Gst.Video/VideoCodecFrameFlags.cs | 2 +- sources/generated/Gst.Video/VideoConverter.cs | 23 +++---------------- .../VideoDecoderRequestSyncPointFlags.cs | 2 +- sources/generated/Gst.Video/VideoDither.cs | 23 +++---------------- .../generated/Gst.Video/VideoDitherFlags.cs | 2 +- sources/generated/Gst.Video/VideoFlags.cs | 2 +- .../generated/Gst.Video/VideoFormatFlags.cs | 2 +- .../generated/Gst.Video/VideoFrameFlags.cs | 2 +- .../generated/Gst.Video/VideoFrameMapFlags.cs | 2 +- sources/generated/Gst.Video/VideoInfo.cs | 23 +++---------------- .../Gst.Video/VideoMultiviewFlags.cs | 2 +- .../Gst.Video/VideoOverlayFormatFlags.cs | 2 +- sources/generated/Gst.Video/VideoPackFlags.cs | 2 +- .../Gst.Video/VideoResamplerFlags.cs | 2 +- sources/generated/Gst.Video/VideoScaler.cs | 23 +++---------------- .../generated/Gst.Video/VideoScalerFlags.cs | 2 +- .../generated/Gst.Video/VideoTimeCodeFlags.cs | 2 +- sources/generated/Gst/AllocatorFlags.cs | 2 +- sources/generated/Gst/AtomicQueue.cs | 23 +++---------------- sources/generated/Gst/BinFlags.cs | 2 +- sources/generated/Gst/Buffer.cs | 23 +++---------------- sources/generated/Gst/BufferCopyFlags.cs | 2 +- sources/generated/Gst/BufferFlags.cs | 2 +- sources/generated/Gst/BufferList.cs | 23 +++---------------- .../generated/Gst/BufferPoolAcquireFlags.cs | 2 +- sources/generated/Gst/BusFlags.cs | 2 +- sources/generated/Gst/Caps.cs | 23 +++---------------- sources/generated/Gst/CapsFlags.cs | 2 +- sources/generated/Gst/ClockFlags.cs | 2 +- sources/generated/Gst/DateTime.cs | 23 +++---------------- sources/generated/Gst/DebugColorFlags.cs | 2 +- sources/generated/Gst/DebugGraphDetails.cs | 2 +- sources/generated/Gst/ElementFlags.cs | 2 +- sources/generated/Gst/Event.cs | 23 +++---------------- sources/generated/Gst/EventTypeFlags.cs | 2 +- sources/generated/Gst/GapFlags.cs | 2 +- sources/generated/Gst/Iterator.cs | 23 +++---------------- sources/generated/Gst/LockFlags.cs | 2 +- sources/generated/Gst/MapFlags.cs | 2 +- sources/generated/Gst/Memory.cs | 23 +++---------------- sources/generated/Gst/MemoryFlags.cs | 2 +- sources/generated/Gst/Message.cs | 23 +++---------------- sources/generated/Gst/MetaFlags.cs | 2 +- sources/generated/Gst/MiniObject.cs | 23 +++---------------- sources/generated/Gst/MiniObjectFlags.cs | 2 +- sources/generated/Gst/ObjectFlags.cs | 2 +- sources/generated/Gst/PadFlags.cs | 2 +- sources/generated/Gst/PadLinkCheck.cs | 2 +- sources/generated/Gst/PadProbeType.cs | 2 +- sources/generated/Gst/PadTemplateFlags.cs | 2 +- sources/generated/Gst/ParseContext.cs | 23 +++---------------- sources/generated/Gst/ParseFlags.cs | 2 +- sources/generated/Gst/PipelineFlags.cs | 2 +- sources/generated/Gst/PluginAPIFlags.cs | 2 +- .../generated/Gst/PluginDependencyFlags.cs | 2 +- sources/generated/Gst/PluginFlags.cs | 2 +- sources/generated/Gst/Poll.cs | 23 +++---------------- sources/generated/Gst/Query.cs | 23 +++---------------- sources/generated/Gst/QueryTypeFlags.cs | 2 +- sources/generated/Gst/Sample.cs | 23 +++---------------- sources/generated/Gst/SchedulingFlags.cs | 2 +- sources/generated/Gst/SeekFlags.cs | 2 +- sources/generated/Gst/SegmentFlags.cs | 2 +- sources/generated/Gst/StackTraceFlags.cs | 2 +- sources/generated/Gst/StreamFlags.cs | 2 +- sources/generated/Gst/StreamType.cs | 2 +- sources/generated/Gst/Structure.cs | 23 +++---------------- sources/generated/Gst/TagList.cs | 23 +++---------------- sources/generated/Gst/TracerValueFlags.cs | 2 +- subprojects/gtk-sharp.wrap | 2 +- 101 files changed, 153 insertions(+), 595 deletions(-) diff --git a/ges/generated/GES/MetaFlag.cs b/ges/generated/GES/MetaFlag.cs index b43d31bac5..a2bc960e1c 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 c33d5c139c..0cbf0dbce1 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 b8ae0497af..4150043caa 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 c750a96dd4..29f0256ac9 100644 --- a/sources/generated/Gst.Audio/AudioChannelMixer.cs +++ b/sources/generated/Gst.Audio/AudioChannelMixer.cs @@ -43,27 +43,10 @@ namespace Gst.Audio { gst_audio_channel_mixer_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_audio_channel_mixer_free; } - - public bool Handler () - { - gst_audio_channel_mixer_free (handle); - return false; - } - } - - ~AudioChannelMixer () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst.Audio/AudioChannelMixerFlags.cs b/sources/generated/Gst.Audio/AudioChannelMixerFlags.cs index d4723291b3..335d784683 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 d2aa4f3b1d..0d44cc57e1 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 68fd4ff32b..8173d87ea1 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 92c73e0f7e..b997ca9025 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 a43c5dd2fa..ac929c7687 100644 --- a/sources/generated/Gst.Audio/AudioInfo.cs +++ b/sources/generated/Gst.Audio/AudioInfo.cs @@ -197,27 +197,10 @@ namespace Gst.Audio { gst_audio_info_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_audio_info_free; } - - public bool Handler () - { - gst_audio_info_free (handle); - return false; - } - } - - ~AudioInfo () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst.Audio/AudioPackFlags.cs b/sources/generated/Gst.Audio/AudioPackFlags.cs index d7fe7041e0..7ec8beb1b1 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 77bf43272c..adb9cab120 100644 --- a/sources/generated/Gst.Audio/AudioQuantize.cs +++ b/sources/generated/Gst.Audio/AudioQuantize.cs @@ -39,27 +39,10 @@ namespace Gst.Audio { gst_audio_quantize_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_audio_quantize_free; } - - public bool Handler () - { - gst_audio_quantize_free (handle); - return false; - } - } - - ~AudioQuantize () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst.Audio/AudioQuantizeFlags.cs b/sources/generated/Gst.Audio/AudioQuantizeFlags.cs index 487fbf4718..10622fe81c 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 78f20b9643..7fb437a91c 100644 --- a/sources/generated/Gst.Audio/AudioResampler.cs +++ b/sources/generated/Gst.Audio/AudioResampler.cs @@ -93,27 +93,10 @@ namespace Gst.Audio { gst_audio_resampler_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_audio_resampler_free; } - - public bool Handler () - { - gst_audio_resampler_free (handle); - return false; - } - } - - ~AudioResampler () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst.Audio/AudioResamplerFlags.cs b/sources/generated/Gst.Audio/AudioResamplerFlags.cs index 41a40e85b6..7126c0fc1a 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 7469d9da45..b6da5b40cb 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 0c2b9ba8dc..17464db4f7 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 ed16b24da4..d4932f7f0b 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 9536068c80..2b603d6b5a 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 39cc65c066..27171b2c8d 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 6a3cea75f6..b85575c1a9 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 d1b179987b..889ab56911 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 096d605db9..52d930eb12 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 88b56bb642..b5cf1ab873 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 cc725a10fd..ab7c96b137 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 9078350f3a..6236d1dd5f 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 e7fd163796..2df7e36caa 100644 --- a/sources/generated/Gst.Rtsp/RTSPWatch.cs +++ b/sources/generated/Gst.Rtsp/RTSPWatch.cs @@ -113,27 +113,10 @@ namespace Gst.Rtsp { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_rtsp_watch_unref; } - - public bool Handler () - { - gst_rtsp_watch_unref (handle); - return false; - } - } - - ~RTSPWatch () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst.Tags/TagLicenseFlags.cs b/sources/generated/Gst.Tags/TagLicenseFlags.cs index f353fd4791..726350c073 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 78050318a5..0430cdd0dd 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 e7b26aedc6..816a743780 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 f63c8bec45..531225820a 100644 --- a/sources/generated/Gst.Video/VideoChromaResample.cs +++ b/sources/generated/Gst.Video/VideoChromaResample.cs @@ -28,27 +28,10 @@ namespace Gst.Video { gst_video_chroma_resample_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_video_chroma_resample_free; } - - public bool Handler () - { - gst_video_chroma_resample_free (handle); - return false; - } - } - - ~VideoChromaResample () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst.Video/VideoChromaSite.cs b/sources/generated/Gst.Video/VideoChromaSite.cs index 5b0ddf1255..968fd75bc0 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 adc692a72f..bf010088ca 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 5468ee8f28..57278a42d9 100644 --- a/sources/generated/Gst.Video/VideoConverter.cs +++ b/sources/generated/Gst.Video/VideoConverter.cs @@ -53,27 +53,10 @@ namespace Gst.Video { gst_video_converter_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_video_converter_free; } - - public bool Handler () - { - gst_video_converter_free (handle); - return false; - } - } - - ~VideoConverter () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst.Video/VideoDecoderRequestSyncPointFlags.cs b/sources/generated/Gst.Video/VideoDecoderRequestSyncPointFlags.cs index bff7dbe4d2..4547976bbf 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 56912eb22a..2720f941e3 100644 --- a/sources/generated/Gst.Video/VideoDither.cs +++ b/sources/generated/Gst.Video/VideoDither.cs @@ -32,27 +32,10 @@ namespace Gst.Video { gst_video_dither_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_video_dither_free; } - - public bool Handler () - { - gst_video_dither_free (handle); - return false; - } - } - - ~VideoDither () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst.Video/VideoDitherFlags.cs b/sources/generated/Gst.Video/VideoDitherFlags.cs index 7696be4b93..8ed9651b43 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 6fdf4b92db..fa05babc7b 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 5f93a33147..f5dd2cea8b 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 bdd97f2af1..56b1a012fd 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 93b4ee3d65..ab6b1a9c79 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 2380d1d660..b963455208 100644 --- a/sources/generated/Gst.Video/VideoInfo.cs +++ b/sources/generated/Gst.Video/VideoInfo.cs @@ -329,27 +329,10 @@ namespace Gst.Video { gst_video_info_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_video_info_free; } - - public bool Handler () - { - gst_video_info_free (handle); - return false; - } - } - - ~VideoInfo () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst.Video/VideoMultiviewFlags.cs b/sources/generated/Gst.Video/VideoMultiviewFlags.cs index 0c6675614b..e78a5ea133 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 f126c6fe8f..740397fdb2 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 82dea62ee7..aa38e582a4 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 d1086dd1de..47db45ed8b 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 7b8fb55635..16f6b24a9d 100644 --- a/sources/generated/Gst.Video/VideoScaler.cs +++ b/sources/generated/Gst.Video/VideoScaler.cs @@ -74,27 +74,10 @@ namespace Gst.Video { gst_video_scaler_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_video_scaler_free; } - - public bool Handler () - { - gst_video_scaler_free (handle); - return false; - } - } - - ~VideoScaler () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst.Video/VideoScalerFlags.cs b/sources/generated/Gst.Video/VideoScalerFlags.cs index 934eef976b..4855181bc6 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 e6dbe1f231..7409b6a036 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 26bac8312c..88b80c6db2 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 1ca7f76348..67c8fec87c 100644 --- a/sources/generated/Gst/AtomicQueue.cs +++ b/sources/generated/Gst/AtomicQueue.cs @@ -88,27 +88,10 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_atomic_queue_unref; } - - public bool Handler () - { - gst_atomic_queue_unref (handle); - return false; - } - } - - ~AtomicQueue () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/BinFlags.cs b/sources/generated/Gst/BinFlags.cs index b3ceeee154..f4994387ed 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 07e5808d2d..bb7144a829 100644 --- a/sources/generated/Gst/Buffer.cs +++ b/sources/generated/Gst/Buffer.cs @@ -640,27 +640,10 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_buffer_unref; } - - public bool Handler () - { - gst_buffer_unref (handle); - return false; - } - } - - ~Buffer () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/BufferCopyFlags.cs b/sources/generated/Gst/BufferCopyFlags.cs index c4c3b177c2..24bb8fcbe2 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 6640b3936c..611d3aca90 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 77b2448d2d..18ffe1b8e4 100644 --- a/sources/generated/Gst/BufferList.cs +++ b/sources/generated/Gst/BufferList.cs @@ -132,27 +132,10 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_buffer_list_unref; } - - public bool Handler () - { - gst_buffer_list_unref (handle); - return false; - } - } - - ~BufferList () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/BufferPoolAcquireFlags.cs b/sources/generated/Gst/BufferPoolAcquireFlags.cs index c833e3358a..4df0b1a18b 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 0631948990..5a3afc487d 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 4037187d9f..0c56e6deed 100644 --- a/sources/generated/Gst/Caps.cs +++ b/sources/generated/Gst/Caps.cs @@ -459,27 +459,10 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_caps_unref; } - - public bool Handler () - { - gst_caps_unref (handle); - return false; - } - } - - ~Caps () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/CapsFlags.cs b/sources/generated/Gst/CapsFlags.cs index 9a18ad0196..20d3d34cc5 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 eb447a33d9..55e02cf727 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 b40feba1c3..7a926f03c6 100644 --- a/sources/generated/Gst/DateTime.cs +++ b/sources/generated/Gst/DateTime.cs @@ -317,27 +317,10 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_date_time_unref; } - - public bool Handler () - { - gst_date_time_unref (handle); - return false; - } - } - - ~DateTime () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/DebugColorFlags.cs b/sources/generated/Gst/DebugColorFlags.cs index 3b7cfc9bb6..1ffdaba2ea 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 f43b0a8214..40b00d08d4 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 4183513479..aa37b86944 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 104e29f0c3..6657cfda1e 100644 --- a/sources/generated/Gst/Event.cs +++ b/sources/generated/Gst/Event.cs @@ -719,27 +719,10 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_event_unref; } - - public bool Handler () - { - gst_event_unref (handle); - return false; - } - } - - ~Event () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/EventTypeFlags.cs b/sources/generated/Gst/EventTypeFlags.cs index 231ac548fa..5e19c12ed0 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 72c2149a1e..4c4194a27a 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 b773115ef3..2c264e21be 100644 --- a/sources/generated/Gst/Iterator.cs +++ b/sources/generated/Gst/Iterator.cs @@ -262,27 +262,10 @@ namespace Gst { gst_iterator_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_iterator_free; } - - public bool Handler () - { - gst_iterator_free (handle); - return false; - } - } - - ~Iterator () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/LockFlags.cs b/sources/generated/Gst/LockFlags.cs index 236ced1277..3e1bc18f02 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 26e47ae76b..a0a4985055 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 c0c9a781ae..713f76375b 100644 --- a/sources/generated/Gst/Memory.cs +++ b/sources/generated/Gst/Memory.cs @@ -237,27 +237,10 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_memory_unref; } - - public bool Handler () - { - gst_memory_unref (handle); - return false; - } - } - - ~Memory () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/MemoryFlags.cs b/sources/generated/Gst/MemoryFlags.cs index ae4441c7c9..05c7f665fc 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 b526ea2cde..f338b24146 100644 --- a/sources/generated/Gst/Message.cs +++ b/sources/generated/Gst/Message.cs @@ -1024,27 +1024,10 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_message_unref; } - - public bool Handler () - { - gst_message_unref (handle); - return false; - } - } - - ~Message () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/MetaFlags.cs b/sources/generated/Gst/MetaFlags.cs index eacf13e5b2..0bdd017563 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 afd792251b..f890308c65 100644 --- a/sources/generated/Gst/MiniObject.cs +++ b/sources/generated/Gst/MiniObject.cs @@ -206,27 +206,10 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_mini_object_unref; } - - public bool Handler () - { - gst_mini_object_unref (handle); - return false; - } - } - - ~MiniObject () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/MiniObjectFlags.cs b/sources/generated/Gst/MiniObjectFlags.cs index 07eed11444..4d2c3976a7 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 160dd72ad4..e93718f3a1 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 01331f8f20..d5335280f5 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 94907d0647..556b1fd2eb 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 4962721e69..d5c30cab97 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 4f508ff758..5efdb0ec2c 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 c672c16e57..250adf98f6 100644 --- a/sources/generated/Gst/ParseContext.cs +++ b/sources/generated/Gst/ParseContext.cs @@ -60,27 +60,10 @@ namespace Gst { gst_parse_context_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_parse_context_free; } - - public bool Handler () - { - gst_parse_context_free (handle); - return false; - } - } - - ~ParseContext () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/ParseFlags.cs b/sources/generated/Gst/ParseFlags.cs index c485917f30..3f03a1cf99 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 eb906b5be9..8c7bd3b869 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 57d5176071..607c0dafdd 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 509617addf..b845e8d633 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 8646710829..2d533c20fc 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 f3e1c11b07..134605b018 100644 --- a/sources/generated/Gst/Poll.cs +++ b/sources/generated/Gst/Poll.cs @@ -203,27 +203,10 @@ namespace Gst { gst_poll_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_poll_free; } - - public bool Handler () - { - gst_poll_free (handle); - return false; - } - } - - ~Poll () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/Query.cs b/sources/generated/Gst/Query.cs index 01bfb39602..f3762718b3 100644 --- a/sources/generated/Gst/Query.cs +++ b/sources/generated/Gst/Query.cs @@ -821,27 +821,10 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_query_unref; } - - public bool Handler () - { - gst_query_unref (handle); - return false; - } - } - - ~Query () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/QueryTypeFlags.cs b/sources/generated/Gst/QueryTypeFlags.cs index a0be4d0b65..f1be657932 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 0a462afa32..c4dbc0b463 100644 --- a/sources/generated/Gst/Sample.cs +++ b/sources/generated/Gst/Sample.cs @@ -148,27 +148,10 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_sample_unref; } - - public bool Handler () - { - gst_sample_unref (handle); - return false; - } - } - - ~Sample () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/SchedulingFlags.cs b/sources/generated/Gst/SchedulingFlags.cs index 2b5e2a64a3..caec4e1deb 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 60086502b6..b8757bd907 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 ec5f290ad7..37e27e0c64 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 869bbf801b..134da404e4 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 3131fbdec4..19da640900 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 7ecbdadfcb..e3ee514a2a 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 77f1efc2c9..3b58198599 100644 --- a/sources/generated/Gst/Structure.cs +++ b/sources/generated/Gst/Structure.cs @@ -631,27 +631,10 @@ namespace Gst { gst_structure_free (raw); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_structure_free; } - - public bool Handler () - { - gst_structure_free (handle); - return false; - } - } - - ~Structure () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/TagList.cs b/sources/generated/Gst/TagList.cs index d495f54e5d..553b50a1dd 100644 --- a/sources/generated/Gst/TagList.cs +++ b/sources/generated/Gst/TagList.cs @@ -514,27 +514,10 @@ namespace Gst { } } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; + protected override Action DisposeUnmanagedFunc { + get { + return gst_tag_list_unref; } - - public bool Handler () - { - gst_tag_list_unref (handle); - return false; - } - } - - ~TagList () - { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } diff --git a/sources/generated/Gst/TracerValueFlags.cs b/sources/generated/Gst/TracerValueFlags.cs index 5891cd404f..8392711801 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 948759ae62..0edce1cfbd 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