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 bool ControlSourceGetValueArrayNative(IntPtr self, ulong timestamp, ulong interval, uint n_values, double values);
13 internal class ControlSourceGetValueArrayInvoker {
15 ControlSourceGetValueArrayNative native_cb;
17 GLib.DestroyNotify __notify;
19 ~ControlSourceGetValueArrayInvoker ()
26 internal ControlSourceGetValueArrayInvoker (ControlSourceGetValueArrayNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
28 internal ControlSourceGetValueArrayInvoker (ControlSourceGetValueArrayNative native_cb, IntPtr data) : this (native_cb, data, null) {}
30 internal ControlSourceGetValueArrayInvoker (ControlSourceGetValueArrayNative native_cb, IntPtr data, GLib.DestroyNotify notify)
32 this.native_cb = native_cb;
37 internal Gst.ControlSourceGetValueArray Handler {
39 return new Gst.ControlSourceGetValueArray(InvokeNative);
43 bool InvokeNative (Gst.ControlSource self, ulong timestamp, ulong interval, uint n_values, double values)
45 bool __result = native_cb (self == null ? IntPtr.Zero : self.Handle, timestamp, interval, n_values, values);
50 internal class ControlSourceGetValueArrayWrapper {
52 public bool NativeCallback (IntPtr self, ulong timestamp, ulong interval, uint n_values, double values)
55 bool __ret = managed (GLib.Object.GetObject(self) as Gst.ControlSource, timestamp, interval, n_values, values);
59 } catch (Exception e) {
60 GLib.ExceptionManager.RaiseUnhandledException (e, false);
65 bool release_on_call = false;
68 public void PersistUntilCalled ()
70 release_on_call = true;
71 gch = GCHandle.Alloc (this);
74 internal ControlSourceGetValueArrayNative NativeDelegate;
75 Gst.ControlSourceGetValueArray managed;
77 public ControlSourceGetValueArrayWrapper (Gst.ControlSourceGetValueArray managed)
79 this.managed = managed;
81 NativeDelegate = new ControlSourceGetValueArrayNative (NativeCallback);
84 public static Gst.ControlSourceGetValueArray GetManagedDelegate (ControlSourceGetValueArrayNative native)
88 ControlSourceGetValueArrayWrapper wrapper = (ControlSourceGetValueArrayWrapper) native.Target;
91 return wrapper.managed;