static bool MoveCallback (IntPtr source, IntPtr destination, int flags, IntPtr cancellable, GLibSharp.FileProgressCallbackNative progress_callback, IntPtr progress_callback_data, out IntPtr error) { error = IntPtr.Zero; try { GLib.FileImplementor __obj = GLib.Object.GetObject (source, false) as GLib.FileImplementor; GLibSharp.FileProgressCallbackInvoker progress_callback_invoker = new GLibSharp.FileProgressCallbackInvoker (progress_callback, progress_callback_data); bool __result = __obj.Move (GLib.FileAdapter.GetObject (destination, false), (GLib.FileCopyFlags) flags, GLib.Object.GetObject(cancellable) as GLib.Cancellable, progress_callback_invoker.Handler); return __result; } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, true); // NOTREACHED: above call does not return. throw e; } }
static void CopyAsyncCallback (IntPtr source, IntPtr destination, int flags, int io_priority, IntPtr cancellable, GLibSharp.FileProgressCallbackNative progress_callback, IntPtr progress_callback_data, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data) { try { GLib.FileImplementor __obj = GLib.Object.GetObject (source, false) as GLib.FileImplementor; GLibSharp.FileProgressCallbackInvoker progress_callback_invoker = new GLibSharp.FileProgressCallbackInvoker (progress_callback, user_data); GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker (cb, user_data); __obj.CopyAsync (GLib.FileAdapter.GetObject (destination, false), (GLib.FileCopyFlags) flags, io_priority, GLib.Object.GetObject(cancellable) as GLib.Cancellable, progress_callback_invoker.Handler, cb_invoker.Handler); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, false); } }