static void OverrideHandshakeFinish(GLib.GType gtype, HandshakeFinishNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("handshake_finish")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private bool InternalHandshakeFinish(GLib.IAsyncResult result) { HandshakeFinishNativeDelegate unmanaged = class_abi.BaseOverride <HandshakeFinishNativeDelegate>(this.LookupGType(), "handshake_finish"); if (unmanaged == null) { throw new InvalidOperationException("No base method to invoke"); } IntPtr error = IntPtr.Zero; bool __result = unmanaged(this.Handle, result == null ? IntPtr.Zero : ((result is GLib.Object) ? (result as GLib.Object).Handle : (result as GLib.AsyncResultAdapter).Handle), out error); return(__result); }
private bool InternalHandshakeFinish(GLib.IAsyncResult result) { HandshakeFinishNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("handshake_finish")); unmanaged = (HandshakeFinishNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(HandshakeFinishNativeDelegate)); } if (unmanaged == null) { throw new InvalidOperationException("No base method to invoke"); } IntPtr error = IntPtr.Zero; bool __result = unmanaged(this.Handle, result == null ? IntPtr.Zero : ((result is GLib.Object) ? (result as GLib.Object).Handle : (result as GLib.AsyncResultAdapter).Handle), out error); return(__result); }
static void OverrideHandshakeFinish (GLib.GType gtype, HandshakeFinishNativeDelegate callback) { GTlsConnectionClass class_iface = GetClassStruct (gtype, false); class_iface.HandshakeFinish = callback; OverrideClassStruct (gtype, class_iface); }