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 int PadEventFullFunctionNative(IntPtr pad, IntPtr parent, IntPtr evnt);
13 internal class PadEventFullFunctionInvoker {
15 PadEventFullFunctionNative native_cb;
17 GLib.DestroyNotify __notify;
19 ~PadEventFullFunctionInvoker ()
26 internal PadEventFullFunctionInvoker (PadEventFullFunctionNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
28 internal PadEventFullFunctionInvoker (PadEventFullFunctionNative native_cb, IntPtr data) : this (native_cb, data, null) {}
30 internal PadEventFullFunctionInvoker (PadEventFullFunctionNative native_cb, IntPtr data, GLib.DestroyNotify notify)
32 this.native_cb = native_cb;
37 internal Gst.PadEventFullFunction Handler {
39 return new Gst.PadEventFullFunction(InvokeNative);
43 Gst.FlowReturn InvokeNative (Gst.Pad pad, Gst.Object parent, Gst.Event evnt)
46 Gst.FlowReturn __result = (Gst.FlowReturn) native_cb (pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle, evnt == null ? IntPtr.Zero : evnt.Handle);
51 internal class PadEventFullFunctionWrapper {
53 public int NativeCallback (IntPtr pad, IntPtr parent, IntPtr evnt)
56 Gst.FlowReturn __ret = managed (GLib.Object.GetObject(pad) as Gst.Pad, GLib.Object.GetObject(parent) as Gst.Object, evnt == IntPtr.Zero ? null : (Gst.Event) GLib.Opaque.GetOpaque (evnt, typeof (Gst.Event), true));
60 } catch (Exception e) {
61 GLib.ExceptionManager.RaiseUnhandledException (e, true);
62 // NOTREACHED: Above call does not return.
67 bool release_on_call = false;
70 public void PersistUntilCalled ()
72 release_on_call = true;
73 gch = GCHandle.Alloc (this);
76 internal PadEventFullFunctionNative NativeDelegate;
77 Gst.PadEventFullFunction managed;
79 public PadEventFullFunctionWrapper (Gst.PadEventFullFunction managed)
81 this.managed = managed;
83 NativeDelegate = new PadEventFullFunctionNative (NativeCallback);
86 public static Gst.PadEventFullFunction GetManagedDelegate (PadEventFullFunctionNative native)
90 PadEventFullFunctionWrapper wrapper = (PadEventFullFunctionWrapper) native.Target;
93 return wrapper.managed;