public PadProbeCallbackWrapper(PadProbeCallback managed) { this.managed = managed; if (managed != null) { NativeDelegate = new PadProbeCallbackNative(NativeCallback); } }
public static PadProbeCallback GetManagedDelegate(PadProbeCallbackNative native) { if (native == null) { return(null); } PadProbeCallbackWrapper wrapper = (PadProbeCallbackWrapper)native.Target; if (wrapper == null) { return(null); } return(wrapper.managed); }
static extern ulong gst_pad_add_probe(IntPtr pad, PadProbeType mask, PadProbeCallbackNative cb, IntPtr user_data, OldGLib.DestroyNotify destroy_data);
internal PadProbeCallbackInvoker(PadProbeCallbackNative native_cb) { this.native_cb = native_cb; }
internal PadProbeCallbackInvoker(PadProbeCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal PadProbeCallbackInvoker(PadProbeCallbackNative native_cb, IntPtr data) : this(native_cb, data, null) { }
internal PadProbeCallbackInvoker(PadProbeCallbackNative native_cb) : this(native_cb, IntPtr.Zero, null) { }
public PadProbeCallbackWrapper(PadProbeCallback managed) { this.managed = managed; if (managed != null) NativeDelegate = new PadProbeCallbackNative (NativeCallback); }
public static PadProbeCallback GetManagedDelegate(PadProbeCallbackNative native) { if (native == null) return null; PadProbeCallbackWrapper wrapper = (PadProbeCallbackWrapper)native.Target; if (wrapper == null) return null; return wrapper.managed; }