1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
7 using System.Runtime.InteropServices;
9 #region Autogenerated code
10 [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
11 internal delegate void IteratorResyncFunctionNative(IntPtr it);
13 internal class IteratorResyncFunctionInvoker {
15 IteratorResyncFunctionNative native_cb;
17 GLib.DestroyNotify __notify;
19 ~IteratorResyncFunctionInvoker ()
26 internal IteratorResyncFunctionInvoker (IteratorResyncFunctionNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
28 internal IteratorResyncFunctionInvoker (IteratorResyncFunctionNative native_cb, IntPtr data) : this (native_cb, data, null) {}
30 internal IteratorResyncFunctionInvoker (IteratorResyncFunctionNative native_cb, IntPtr data, GLib.DestroyNotify notify)
32 this.native_cb = native_cb;
37 internal Gst.IteratorResyncFunction Handler {
39 return new Gst.IteratorResyncFunction(InvokeNative);
43 void InvokeNative (Gst.Iterator it)
45 native_cb (it == null ? IntPtr.Zero : it.Handle);
49 internal class IteratorResyncFunctionWrapper {
51 public void NativeCallback (IntPtr it)
54 managed (it == IntPtr.Zero ? null : (Gst.Iterator) GLib.Opaque.GetOpaque (it, typeof (Gst.Iterator), false));
57 } catch (Exception e) {
58 GLib.ExceptionManager.RaiseUnhandledException (e, false);
62 bool release_on_call = false;
65 public void PersistUntilCalled ()
67 release_on_call = true;
68 gch = GCHandle.Alloc (this);
71 internal IteratorResyncFunctionNative NativeDelegate;
72 Gst.IteratorResyncFunction managed;
74 public IteratorResyncFunctionWrapper (Gst.IteratorResyncFunction managed)
76 this.managed = managed;
78 NativeDelegate = new IteratorResyncFunctionNative (NativeCallback);
81 public static Gst.IteratorResyncFunction GetManagedDelegate (IteratorResyncFunctionNative native)
85 IteratorResyncFunctionWrapper wrapper = (IteratorResyncFunctionWrapper) native.Target;
88 return wrapper.managed;