static void QueryInfoAsync_cb(IntPtr inst, IntPtr attributes, int io_priority, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data) { try { FileIOStream __obj = GLib.Object.GetObject(inst, false) as FileIOStream; GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker(cb, user_data); __obj.OnQueryInfoAsync(GLib.Marshaller.Utf8PtrToString(attributes), io_priority, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static IntPtr GetEtag_cb(IntPtr inst) { try { FileIOStream __obj = GLib.Object.GetObject(inst, false) as FileIOStream; string __result; __result = __obj.OnGetEtag(); return(GLib.Marshaller.StringToPtrGStrdup(__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static long Tell_cb(IntPtr inst) { try { FileIOStream __obj = GLib.Object.GetObject(inst, false) as FileIOStream; long __result; __result = __obj.OnTell(); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr QueryInfoFinish_cb(IntPtr inst, IntPtr result, out IntPtr error) { error = IntPtr.Zero; try { FileIOStream __obj = GLib.Object.GetObject(inst, false) as FileIOStream; GLib.FileInfo __result; __result = __obj.OnQueryInfoFinish(GLib.AsyncResultAdapter.GetObject(result, false)); return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr QueryInfo_cb(IntPtr inst, IntPtr attributes, IntPtr cancellable, out IntPtr error) { error = IntPtr.Zero; try { FileIOStream __obj = GLib.Object.GetObject(inst, false) as FileIOStream; GLib.FileInfo __result; __result = __obj.OnQueryInfo(GLib.Marshaller.Utf8PtrToString(attributes), GLib.Object.GetObject(cancellable) as GLib.Cancellable); return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool TruncateFn_cb(IntPtr inst, long size, IntPtr cancellable, out IntPtr error) { error = IntPtr.Zero; try { FileIOStream __obj = GLib.Object.GetObject(inst, false) as FileIOStream; bool __result; __result = __obj.OnTruncateFn(size, GLib.Object.GetObject(cancellable) as GLib.Cancellable); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }