public void PollForMedia(Cancellable cancellable, AsyncReadyCallback cb) { var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_drive_poll_for_media(Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }
public void SkipAsync(ulong count, int io_priority, Cancellable cancellable, AsyncReadyCallback cb) { var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_input_stream_skip_async(Handle, new UIntPtr(count), io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }
public void GuessContentType(bool force_rescan, Cancellable cancellable, AsyncReadyCallback cb) { var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_mount_guess_content_type(Handle, force_rescan, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }
public static void EjectWithOperation (this GLib.Mount m, MountUnmountFlags flags, GLib.MountOperation operation, Cancellable cancellable, AsyncReadyCallback callback) { m.MaybeEmptyTrashWithAction (() => { NativeInterop.EjectWithOperation (m, flags, operation, cancellable, callback); }); }
public static void EjectWithOperation(this GLib.Mount m, MountUnmountFlags flags, GLib.MountOperation operation, Cancellable cancellable, AsyncReadyCallback callback) { m.MaybeEmptyTrashWithAction(() => { NativeInterop.EjectWithOperation(m, flags, operation, cancellable, callback); }); }
public void ReadLineAsync(int io_priority, Cancellable cancellable, AsyncReadyCallback cb) { var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_data_input_stream_read_line_async(Handle, io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }
public void LoadAsync(int size, Cancellable cancellable, AsyncReadyCallback cb) { var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_loadable_icon_load_async(Handle, size, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }
public void InitAsync(int io_priority, Cancellable cancellable, AsyncReadyCallback cb) { var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_async_initable_init_async(Handle, io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }
public static SimpleAsyncResult NewFromError(GLib.Object source_object, AsyncReadyCallback cb, IntPtr error) { var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); var result = new SimpleAsyncResult(g_simple_async_result_new_from_error(source_object == null ? IntPtr.Zero : source_object.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero, error)); return(result); }
public void Eject(MountUnmountFlags flags, Cancellable cancellable, AsyncReadyCallback cb) { var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_drive_eject(Handle, (int)flags, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }
public SimpleAsyncResult(GLib.Object source_object, AsyncReadyCallback cb, IntPtr source_tag) : base(IntPtr.Zero) { if (GetType() != typeof(SimpleAsyncResult)) { throw new InvalidOperationException("Can't override this constructor."); } var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); Raw = g_simple_async_result_new(source_object == null ? IntPtr.Zero : source_object.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero, source_tag); }
public static void EjectWithOperation(Mount mount, MountUnmountFlags flags, MountOperation op, Cancellable cancellable, AsyncReadyCallback cb) { NativeHelper(() => { GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); g_mount_eject_with_operation(mount.Handle, (int)flags, op == null ? IntPtr.Zero : op.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }, GIO_NOT_FOUND, "Failed to eject with operation name: {0}"); }
public void QueryInfoAsync(string attributes, int io_priority, Cancellable cancellable, AsyncReadyCallback cb) { IntPtr native_attributes = GLib.Marshaller.StringToPtrGStrdup(attributes); var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_file_io_stream_query_info_async(Handle, native_attributes, io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); GLib.Marshaller.Free(native_attributes); }
public void ReadUntilAsync(string stop_chars, int io_priority, Cancellable cancellable, AsyncReadyCallback cb) { IntPtr native_stop_chars = GLib.Marshaller.StringToPtrGStrdup(stop_chars); var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_data_input_stream_read_until_async(Handle, native_stop_chars, io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); GLib.Marshaller.Free(native_stop_chars); }
public static void AsyncReportGerrorInIdle(GLib.Object objekt, AsyncReadyCallback cb, IntPtr error) { var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); g_simple_async_report_gerror_in_idle(objekt == null ? IntPtr.Zero : objekt.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero, error); }
public void EjectWithOperation(MountUnmountFlags flags, MountOperation mount_operation, Cancellable cancellable, AsyncReadyCallback cb) { var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_volume_eject_with_operation(Handle, (int)flags, mount_operation == null ? IntPtr.Zero : mount_operation.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }
public void SpliceAsync(InputStream source, OutputStreamSpliceFlags flags, int io_priority, Cancellable cancellable, AsyncReadyCallback cb) { var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_output_stream_splice_async(Handle, source == null ? IntPtr.Zero : source.Handle, (int)flags, io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }
public void Start(DriveStartFlags flags, MountOperation mount_operation, Cancellable cancellable, AsyncReadyCallback cb) { var cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_drive_start(Handle, (int)flags, mount_operation == null ? IntPtr.Zero : mount_operation.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }