Update bindings with latests GtkSharp
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Thu, 5 Aug 2021 13:37:27 +0000 (15:37 +0200)
committerAndoni Morales Alastruey <ylatuya@gmail.com>
Thu, 5 Aug 2021 13:37:27 +0000 (15:37 +0200)
Update GtkSharp to 4c85f1479cf2e0dc056c0d288785e5a1d7251cb1
and regenerate bindings

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-sharp/-/merge_requests/34>

101 files changed:
ges/generated/GES/MetaFlag.cs
ges/generated/GES/PipelineFlags.cs
ges/generated/GES/TrackType.cs
sources/generated/Gst.Audio/AudioChannelMixer.cs
sources/generated/Gst.Audio/AudioChannelMixerFlags.cs
sources/generated/Gst.Audio/AudioConverterFlags.cs
sources/generated/Gst.Audio/AudioFlags.cs
sources/generated/Gst.Audio/AudioFormatFlags.cs
sources/generated/Gst.Audio/AudioInfo.cs
sources/generated/Gst.Audio/AudioPackFlags.cs
sources/generated/Gst.Audio/AudioQuantize.cs
sources/generated/Gst.Audio/AudioQuantizeFlags.cs
sources/generated/Gst.Audio/AudioResampler.cs
sources/generated/Gst.Audio/AudioResamplerFlags.cs
sources/generated/Gst.Base/BaseParseFrameFlags.cs
sources/generated/Gst.Base/BaseSrcFlags.cs
sources/generated/Gst.Base/CollectPadsStateFlags.cs
sources/generated/Gst.PbUtils/DiscovererSerializeFlags.cs
sources/generated/Gst.Rtp/RTPBufferFlags.cs
sources/generated/Gst.Rtp/RTPBufferMapFlags.cs
sources/generated/Gst.Rtsp/RTSPEvent.cs
sources/generated/Gst.Rtsp/RTSPLowerTrans.cs
sources/generated/Gst.Rtsp/RTSPMethod.cs
sources/generated/Gst.Rtsp/RTSPProfile.cs
sources/generated/Gst.Rtsp/RTSPTransMode.cs
sources/generated/Gst.Rtsp/RTSPWatch.cs
sources/generated/Gst.Tags/TagLicenseFlags.cs
sources/generated/Gst.Video/VideoBufferFlags.cs
sources/generated/Gst.Video/VideoChromaFlags.cs
sources/generated/Gst.Video/VideoChromaResample.cs
sources/generated/Gst.Video/VideoChromaSite.cs
sources/generated/Gst.Video/VideoCodecFrameFlags.cs
sources/generated/Gst.Video/VideoConverter.cs
sources/generated/Gst.Video/VideoDecoderRequestSyncPointFlags.cs
sources/generated/Gst.Video/VideoDither.cs
sources/generated/Gst.Video/VideoDitherFlags.cs
sources/generated/Gst.Video/VideoFlags.cs
sources/generated/Gst.Video/VideoFormatFlags.cs
sources/generated/Gst.Video/VideoFrameFlags.cs
sources/generated/Gst.Video/VideoFrameMapFlags.cs
sources/generated/Gst.Video/VideoInfo.cs
sources/generated/Gst.Video/VideoMultiviewFlags.cs
sources/generated/Gst.Video/VideoOverlayFormatFlags.cs
sources/generated/Gst.Video/VideoPackFlags.cs
sources/generated/Gst.Video/VideoResamplerFlags.cs
sources/generated/Gst.Video/VideoScaler.cs
sources/generated/Gst.Video/VideoScalerFlags.cs
sources/generated/Gst.Video/VideoTimeCodeFlags.cs
sources/generated/Gst/AllocatorFlags.cs
sources/generated/Gst/AtomicQueue.cs
sources/generated/Gst/BinFlags.cs
sources/generated/Gst/Buffer.cs
sources/generated/Gst/BufferCopyFlags.cs
sources/generated/Gst/BufferFlags.cs
sources/generated/Gst/BufferList.cs
sources/generated/Gst/BufferPoolAcquireFlags.cs
sources/generated/Gst/BusFlags.cs
sources/generated/Gst/Caps.cs
sources/generated/Gst/CapsFlags.cs
sources/generated/Gst/ClockFlags.cs
sources/generated/Gst/DateTime.cs
sources/generated/Gst/DebugColorFlags.cs
sources/generated/Gst/DebugGraphDetails.cs
sources/generated/Gst/ElementFlags.cs
sources/generated/Gst/Event.cs
sources/generated/Gst/EventTypeFlags.cs
sources/generated/Gst/GapFlags.cs
sources/generated/Gst/Iterator.cs
sources/generated/Gst/LockFlags.cs
sources/generated/Gst/MapFlags.cs
sources/generated/Gst/Memory.cs
sources/generated/Gst/MemoryFlags.cs
sources/generated/Gst/Message.cs
sources/generated/Gst/MetaFlags.cs
sources/generated/Gst/MiniObject.cs
sources/generated/Gst/MiniObjectFlags.cs
sources/generated/Gst/ObjectFlags.cs
sources/generated/Gst/PadFlags.cs
sources/generated/Gst/PadLinkCheck.cs
sources/generated/Gst/PadProbeType.cs
sources/generated/Gst/PadTemplateFlags.cs
sources/generated/Gst/ParseContext.cs
sources/generated/Gst/ParseFlags.cs
sources/generated/Gst/PipelineFlags.cs
sources/generated/Gst/PluginAPIFlags.cs
sources/generated/Gst/PluginDependencyFlags.cs
sources/generated/Gst/PluginFlags.cs
sources/generated/Gst/Poll.cs
sources/generated/Gst/Query.cs
sources/generated/Gst/QueryTypeFlags.cs
sources/generated/Gst/Sample.cs
sources/generated/Gst/SchedulingFlags.cs
sources/generated/Gst/SeekFlags.cs
sources/generated/Gst/SegmentFlags.cs
sources/generated/Gst/StackTraceFlags.cs
sources/generated/Gst/StreamFlags.cs
sources/generated/Gst/StreamType.cs
sources/generated/Gst/Structure.cs
sources/generated/Gst/TagList.cs
sources/generated/Gst/TracerValueFlags.cs
subprojects/gtk-sharp.wrap

index b43d31b..a2bc960 100644 (file)
@@ -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,
index c33d5c1..0cbf0db 100644 (file)
@@ -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,
index b8ae049..4150043 100644 (file)
@@ -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,
index c750a96..29f0256 100644 (file)
@@ -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<IntPtr> 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;
index d472329..335d784 100644 (file)
@@ -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,
index d2aa4f3..0d44cc5 100644 (file)
@@ -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,
index 68fd4ff..8173d87 100644 (file)
@@ -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,
index 92c73e0..b997ca9 100644 (file)
@@ -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,
index a43c5dd..ac929c7 100644 (file)
@@ -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<IntPtr> 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;
index d7fe704..7ec8beb 100644 (file)
@@ -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,
index 77bf432..adb9cab 100644 (file)
@@ -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<IntPtr> 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;
index 487fbf4..10622fe 100644 (file)
@@ -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,
index 78f20b9..7fb437a 100644 (file)
@@ -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<IntPtr> 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;
index 41a40e8..7126c0f 100644 (file)
@@ -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,
index 7469d9d..b6da5b4 100644 (file)
@@ -8,7 +8,7 @@ namespace Gst.Base {
 
 #region Autogenerated code
        [Flags]
-       public enum BaseParseFrameFlags {
+       public enum BaseParseFrameFlags : uint {
 
                None = 0,
                NewFrame = 1,
index 0c2b9ba..17464db 100644 (file)
@@ -8,7 +8,7 @@ namespace Gst.Base {
 
 #region Autogenerated code
        [Flags]
-       public enum BaseSrcFlags {
+       public enum BaseSrcFlags : uint {
 
                Starting = 16384,
                Started = 32768,
index ed16b24..d4932f7 100644 (file)
@@ -8,7 +8,7 @@ namespace Gst.Base {
 
 #region Autogenerated code
        [Flags]
-       public enum CollectPadsStateFlags {
+       public enum CollectPadsStateFlags : uint {
 
                Eos = 1,
                Flushing = 2,
index 9536068..2b603d6 100644 (file)
@@ -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,
index 39cc65c..27171b2 100644 (file)
@@ -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,
index 6a3cea7..b85575c 100644 (file)
@@ -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,
index d1b1799..889ab56 100644 (file)
@@ -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,
index 096d605..52d930e 100644 (file)
@@ -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,
index 88b56bb..b5cf1ab 100644 (file)
@@ -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,
index cc725a1..ab7c96b 100644 (file)
@@ -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,
index 9078350..6236d1d 100644 (file)
@@ -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,
index e7fd163..2df7e36 100644 (file)
@@ -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<IntPtr> 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;
index f353fd4..726350c 100644 (file)
@@ -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,
index 7805031..0430cdd 100644 (file)
@@ -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,
index e7b26ae..816a743 100644 (file)
@@ -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,
index f63c8be..5312258 100644 (file)
@@ -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<IntPtr> 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;
index 5b0ddf1..968fd75 100644 (file)
@@ -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,
index adc692a..bf01008 100644 (file)
@@ -8,7 +8,7 @@ namespace Gst.Video {
 
 #region Autogenerated code
        [Flags]
-       public enum VideoCodecFrameFlags {
+       public enum VideoCodecFrameFlags : uint {
 
                DecodeOnly = 1,
                SyncPoint = 2,
index 5468ee8..57278a4 100644 (file)
@@ -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<IntPtr> 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;
index bff7dbe..4547976 100644 (file)
@@ -8,7 +8,7 @@ namespace Gst.Video {
 
 #region Autogenerated code
        [Flags]
-       public enum VideoDecoderRequestSyncPointFlags {
+       public enum VideoDecoderRequestSyncPointFlags : uint {
 
                DiscardInput = 1,
                CorruptOutput = 2,
index 56912eb..2720f94 100644 (file)
@@ -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<IntPtr> 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;
index 7696be4..8ed9651 100644 (file)
@@ -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,
index 6fdf4b9..fa05bab 100644 (file)
@@ -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,
index 5f93a33..f5dd2ce 100644 (file)
@@ -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,
index bdd97f2..56b1a01 100644 (file)
@@ -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,
index 93b4ee3..ab6b1a9 100644 (file)
@@ -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,
index 2380d1d..b963455 100644 (file)
@@ -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<IntPtr> 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;
index 0c66756..e78a5ea 100644 (file)
@@ -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,
index f126c6f..740397f 100644 (file)
@@ -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,
index 82dea62..aa38e58 100644 (file)
@@ -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,
index d1086dd..47db45e 100644 (file)
@@ -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,
index 7b8fb55..16f6b24 100644 (file)
@@ -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<IntPtr> 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;
index 934eef9..4855181 100644 (file)
@@ -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,
index e6dbe1f..7409b6a 100644 (file)
@@ -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,
index 26bac83..88b80c6 100644 (file)
@@ -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,
index 1ca7f76..67c8fec 100644 (file)
@@ -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<IntPtr> 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;
index b3ceeee..f499438 100644 (file)
@@ -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,
index 07e5808..bb7144a 100644 (file)
@@ -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<IntPtr> 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;
index c4c3b17..24bb8fc 100644 (file)
@@ -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,
index 6640b39..611d3ac 100644 (file)
@@ -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,
index 77b2448..18ffe1b 100644 (file)
@@ -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<IntPtr> 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;
index c833e33..4df0b1a 100644 (file)
@@ -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,
index 0631948..5a3afc4 100644 (file)
@@ -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,
index 4037187..0c56e6d 100644 (file)
@@ -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<IntPtr> 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;
index 9a18ad0..20d3d34 100644 (file)
@@ -9,7 +9,7 @@ namespace Gst {
 #region Autogenerated code
        [Flags]
        [GLib.GType (typeof (Gst.CapsFlagsGType))]
-       public enum CapsFlags {
+       public enum CapsFlags : uint {
 
                Any = 16,
        }
index eb447a3..55e02cf 100644 (file)
@@ -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,
index b40feba..7a926f0 100644 (file)
@@ -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<IntPtr> 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;
index 3b7cfc9..1ffdaba 100644 (file)
@@ -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,
index f43b0a8..40b00d0 100644 (file)
@@ -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,
index 4183513..aa37b86 100644 (file)
@@ -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,
index 104e29f..6657cfd 100644 (file)
@@ -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<IntPtr> 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;
index 231ac54..5e19c12 100644 (file)
@@ -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,
index 72c2149..4c4194a 100644 (file)
@@ -9,7 +9,7 @@ namespace Gst {
 #region Autogenerated code
        [Flags]
        [GLib.GType (typeof (Gst.GapFlagsGType))]
-       public enum GapFlags {
+       public enum GapFlags : uint {
 
                Data = 1,
        }
index b773115..2c264e2 100644 (file)
@@ -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<IntPtr> 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;
index 236ced1..3e1bc18 100644 (file)
@@ -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,
index 26e47ae..a0a4985 100644 (file)
@@ -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,
index c0c9a78..713f763 100644 (file)
@@ -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<IntPtr> 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;
index ae4441c..05c7f66 100644 (file)
@@ -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,
index b526ea2..f338b24 100644 (file)
@@ -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<IntPtr> 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;
index eacf13e..0bdd017 100644 (file)
@@ -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,
index afd7922..f890308 100644 (file)
@@ -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<IntPtr> 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;
index 07eed11..4d2c397 100644 (file)
@@ -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,
index 160dd72..e93718f 100644 (file)
@@ -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,
index 01331f8..d533528 100644 (file)
@@ -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,
index 94907d0..556b1fd 100644 (file)
@@ -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,
index 4962721..d5c30ca 100644 (file)
@@ -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,
index 4f508ff..5efdb0e 100644 (file)
@@ -9,7 +9,7 @@ namespace Gst {
 #region Autogenerated code
        [Flags]
        [GLib.GType (typeof (Gst.PadTemplateFlagsGType))]
-       public enum PadTemplateFlags {
+       public enum PadTemplateFlags : uint {
 
                Last = 256,
        }
index c672c16..250adf9 100644 (file)
@@ -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<IntPtr> 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;
index c485917..3f03a1c 100644 (file)
@@ -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,
index eb906b5..8c7bd3b 100644 (file)
@@ -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,
index 57d5176..607c0da 100644 (file)
@@ -9,7 +9,7 @@ namespace Gst {
 #region Autogenerated code
        [Flags]
        [GLib.GType (typeof (Gst.PluginAPIFlagsGType))]
-       public enum PluginAPIFlags {
+       public enum PluginAPIFlags : uint {
 
                Members = 1,
        }
index 509617a..b845e8d 100644 (file)
@@ -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,
index 8646710..2d533c2 100644 (file)
@@ -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,
index f3e1c11..134605b 100644 (file)
@@ -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<IntPtr> 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;
index 01bfb39..f376271 100644 (file)
@@ -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<IntPtr> 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;
index a0be4d0..f1be657 100644 (file)
@@ -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,
index 0a462af..c4dbc0b 100644 (file)
@@ -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<IntPtr> 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;
index 2b5e2a6..caec4e1 100644 (file)
@@ -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,
index 6008650..b8757bd 100644 (file)
@@ -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,
index ec5f290..37e27e0 100644 (file)
@@ -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,
index 869bbf8..134da40 100644 (file)
@@ -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,
index 3131fbd..19da640 100644 (file)
@@ -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,
index 7ecbdad..e3ee514 100644 (file)
@@ -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,
index 77f1efc..3b58198 100644 (file)
@@ -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<IntPtr> 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;
index d495f54..553b50a 100644 (file)
@@ -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<IntPtr> 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;
index 5891cd4..8392711 100644 (file)
@@ -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,
index 948759a..0edce1c 100644 (file)
@@ -1,4 +1,4 @@
 [wrap-git]
 directory=gtk-sharp
 url=https://github.com/GLibSharp/GtkSharp.git
-revision=master
+revision=4c85f1479cf2e0dc056c0d288785e5a1d7251cb1