1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
4 namespace Gst.PbUtilsSharp {
7 using System.Runtime.InteropServices;
9 #region Autogenerated code
10 [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
11 internal delegate void InstallPluginsResultFuncNative(int _result, IntPtr user_data);
13 internal class InstallPluginsResultFuncInvoker {
15 InstallPluginsResultFuncNative native_cb;
17 GLib.DestroyNotify __notify;
19 ~InstallPluginsResultFuncInvoker ()
26 internal InstallPluginsResultFuncInvoker (InstallPluginsResultFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
28 internal InstallPluginsResultFuncInvoker (InstallPluginsResultFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
30 internal InstallPluginsResultFuncInvoker (InstallPluginsResultFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
32 this.native_cb = native_cb;
37 internal Gst.PbUtils.InstallPluginsResultFunc Handler {
39 return new Gst.PbUtils.InstallPluginsResultFunc(InvokeNative);
43 void InvokeNative (Gst.PbUtils.InstallPluginsReturn _result)
45 native_cb ((int) _result, __data);
49 internal class InstallPluginsResultFuncWrapper {
51 public void NativeCallback (int _result, IntPtr user_data)
54 managed ((Gst.PbUtils.InstallPluginsReturn) _result);
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 InstallPluginsResultFuncNative NativeDelegate;
72 Gst.PbUtils.InstallPluginsResultFunc managed;
74 public InstallPluginsResultFuncWrapper (Gst.PbUtils.InstallPluginsResultFunc managed)
76 this.managed = managed;
78 NativeDelegate = new InstallPluginsResultFuncNative (NativeCallback);
81 public static Gst.PbUtils.InstallPluginsResultFunc GetManagedDelegate (InstallPluginsResultFuncNative native)
85 InstallPluginsResultFuncWrapper wrapper = (InstallPluginsResultFuncWrapper) native.Target;
88 return wrapper.managed;