static void OverrideUnschedule(GLib.GType gtype, UnscheduleNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("unschedule")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalUnschedule(Gst.ClockEntry entry) { UnscheduleNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("unschedule")); unmanaged = (UnscheduleNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(UnscheduleNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, entry == null ? IntPtr.Zero : entry.Handle); }
static void OverrideUnschedule (Gst.GLib.GType gtype, UnscheduleNativeDelegate callback) { GstClockClass class_iface = GetClassStruct (gtype, false); class_iface.Unschedule = callback; OverrideClassStruct (gtype, class_iface); }