예제 #1
0
        public static bool IsValid(GLib.AsyncResult result, GLib.Object source, IntPtr source_tag)
        {
            bool raw_ret = g_simple_async_result_is_valid(result == null ? IntPtr.Zero : result.Handle, source == null ? IntPtr.Zero : source.Handle, source_tag);
            bool ret     = raw_ret;

            return(ret);
        }
예제 #2
0
        public unsafe bool CloseFinish(GLib.AsyncResult result)
        {
            IntPtr error   = IntPtr.Zero;
            bool   raw_ret = g_input_stream_close_finish(Handle, result == null ? IntPtr.Zero : result.Handle, out error);
            bool   ret     = raw_ret;

            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
예제 #3
0
        public unsafe long SkipFinish(GLib.AsyncResult result)
        {
            IntPtr error   = IntPtr.Zero;
            IntPtr raw_ret = g_input_stream_skip_finish(Handle, result == null ? IntPtr.Zero : result.Handle, out error);
            long   ret     = (long)raw_ret;

            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
예제 #4
0
        public bool EjectFinish(GLib.AsyncResult result)
        {
            IntPtr error   = IntPtr.Zero;
            bool   raw_ret = g_mount_eject_finish(Handle, result == null ? IntPtr.Zero : result.Handle, out error);
            bool   ret     = raw_ret;

            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
예제 #5
0
        public string[] GuessContentTypeFinish(GLib.AsyncResult result)
        {
            IntPtr error   = IntPtr.Zero;
            IntPtr raw_ret = g_mount_guess_content_type_finish(Handle, result == null ? IntPtr.Zero : result.Handle, out error);

            string[] ret = GLib.Marshaller.NullTermPtrToStringArray(raw_ret, false);
            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
예제 #6
0
        public bool UnmountWithOperationFinish(GLib.AsyncResult result)
        {
            IntPtr error   = IntPtr.Zero;
            bool   raw_ret = g_mount_unmount_with_operation_finish(Handle, result == null ? IntPtr.Zero : result.Handle, out error);
            bool   ret     = raw_ret;

            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
예제 #7
0
        public unsafe GLib.FileInfo QueryInfoFinish(GLib.AsyncResult result)
        {
            IntPtr error   = IntPtr.Zero;
            IntPtr raw_ret = g_file_io_stream_query_info_finish(Handle, result == null ? IntPtr.Zero : result.Handle, out error);

            GLib.FileInfo ret = GLib.Object.GetObject(raw_ret) as GLib.FileInfo;
            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
예제 #8
0
        public bool InitFinish(GLib.AsyncResult res)
        {
            IntPtr error   = IntPtr.Zero;
            bool   raw_ret = g_async_initable_init_finish(Handle, res == null ? IntPtr.Zero : res.Handle, out error);
            bool   ret     = raw_ret;

            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
예제 #9
0
        public GLib.InputStream LoadFinish(GLib.AsyncResult res, string type)
        {
            IntPtr error   = IntPtr.Zero;
            IntPtr raw_ret = g_loadable_icon_load_finish(Handle, res == null ? IntPtr.Zero : res.Handle, GLib.Marshaller.StringToPtrGStrdup(type), out error);

            GLib.InputStream ret = GLib.Object.GetObject(raw_ret) as GLib.InputStream;
            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
예제 #10
0
        public bool PollForMediaFinish(GLib.AsyncResult result)
        {
            IntPtr error   = IntPtr.Zero;
            bool   raw_ret = g_drive_poll_for_media_finish(Handle, result == null ? IntPtr.Zero : result.Handle, out error);
            bool   ret     = raw_ret;

            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
예제 #11
0
        public unsafe GLib.List NextFilesFinish(GLib.AsyncResult result)
        {
            IntPtr error   = IntPtr.Zero;
            IntPtr raw_ret = g_file_enumerator_next_files_finish(Handle, result == null ? IntPtr.Zero : result.Handle, out error);
            var    ret     = new GLib.List(raw_ret);

            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
예제 #12
0
        public unsafe string ReadUntilFinish(GLib.AsyncResult result, out ulong length)
        {
            UIntPtr native_length;
            IntPtr  error   = IntPtr.Zero;
            IntPtr  raw_ret = g_data_input_stream_read_until_finish(Handle, result == null ? IntPtr.Zero : result.Handle, out native_length, out error);
            string  ret     = GLib.Marshaller.PtrToStringGFree(raw_ret);

            length = (ulong)native_length;
            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
예제 #13
0
 void InvokeNative(GLib.Object source_object, GLib.AsyncResult res)
 {
     native_cb(source_object == null ? IntPtr.Zero : source_object.Handle, res == null ? IntPtr.Zero : res.Handle, __data);
 }
예제 #14
0
 void InvokeNative(GLib.Object source_object, GLib.AsyncResult res)
 {
     native_cb(source_object == null ? IntPtr.Zero : source_object.Handle, res == null ? IntPtr.Zero : ((res is GLib.Object) ? (res as GLib.Object).Handle : (res as GLib.AsyncResultAdapter).Handle), __data);
 }