public IntPtr NativeCallback(IntPtr file, IntPtr userdata) { try { GLib.MountOperation __ret = managed(GLib.Object.GetObject(file) as GtkSource.File); if (release_on_call) { gch.Free(); } return(__ret == null ? IntPtr.Zero : __ret.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: Above call does not return. throw e; } }
public void UnmountWithOperation(GLib.MountUnmountFlags flags, GLib.MountOperation mount_operation, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) { GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_mount_unmount_with_operation(Handle, (int)flags, mount_operation == null ? IntPtr.Zero : mount_operation.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }
GLib.MountOperation InvokeNative(GtkSource.File file) { GLib.MountOperation __result = GLib.Object.GetObject(native_cb(file == null ? IntPtr.Zero : file.Handle, __data)) as GLib.MountOperation; return(__result); }