Re: [Vala] [PATCH] GIO nullable parameters



Jürg Billeter wrote:
On Tue, 2008-05-13 at 12:09 +0200, Frederik wrote:
I think in the GIO vapi bindings there are more parameters that should
be marked as nullable. For example: "etag" as in File.replace() or
"progress_callback" as in File.move().

Yes, we certainly still miss a lot of nullable annotations.

I've been looking at the GIO documentation and spotted all nullable
parameters. I have attached a patch for gio-2.0.metadata inclusive the
newly generated vapi. This should cover all nullable parameters in GIO.


Regards,

Frederik
Index: vapi/packages/gio-2.0/gio-2.0.metadata
===================================================================
--- vapi/packages/gio-2.0/gio-2.0.metadata      (Revision 1401)
+++ vapi/packages/gio-2.0/gio-2.0.metadata      (Arbeitskopie)
@@ -19,4 +19,33 @@
 g_themed_icon_new_from_names.iconnames is_array="1"
 
 g_*.cancellable nullable="1"
+g_*.mount_operation nullable="1"
+g_file_*.etag nullable="1"
+g_file_*.progress_callback nullable="1"
+g_io_scheduler_*.notify nullable="1"
+g_memory_input_stream_*.destroy nullable="1"
+g_memory_output_stream_*.destroy nullable="1"
 
+g_file_mount_mountable.callback nullable="1"
+g_file_unmount_mountable.callback nullable="1"
+g_file_eject_mountable.callback nullable="1"
+g_volume_mount.callback nullable="1"
+g_volume_eject.callback nullable="1"
+g_mount_unmount.callback nullable="1"
+g_mount_remount.callback nullable="1"
+g_mount_eject.callback nullable="1"
+g_drive_poll_for_media.callback nullable="1"
+g_drive_eject.callback nullable="1"
+g_file_mount_enclosing_volume.callback nullable="1"
+
+g_file_info_get_attribute_data.type nullable="1"
+g_file_info_get_attribute_data.value_pp nullable="1"
+g_file_info_get_attribute_data.status nullable="1"
+
+g_app_info_create_from_commandline.app_name nullable="1"
+g_app_info_launch.files nullable="1"
+g_app_info_launch_uris.uris nullable="1"
+
+g_loadable_icon_load.type nullable="1"
+g_loadable_icon_load_finish.type nullable="1"
+
Index: vapi/gio-2.0.vapi
===================================================================
--- vapi/gio-2.0.vapi   (Revision 1401)
+++ vapi/gio-2.0.vapi   (Arbeitskopie)
@@ -1,4 +1,4 @@
-/* gio-2.0.vapi generated by lt-vapigen, do not modify. */
+/* gio-2.0.vapi generated by vapigen, do not modify. */
 
 [CCode (cprefix = "G", lower_case_cprefix = "g_")]
 namespace GLib {
@@ -223,8 +223,8 @@
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class IOSchedulerJob {
-               public bool send_to_mainloop (GLib.SourceFunc func, GLib.DestroyNotify notify);
-               public void send_to_mainloop_async (GLib.SourceFunc func, GLib.DestroyNotify notify);
+               public bool send_to_mainloop (GLib.SourceFunc func, GLib.DestroyNotify? notify);
+               public void send_to_mainloop_async (GLib.SourceFunc func, GLib.DestroyNotify? notify);
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class SimpleAsyncResultClass {
@@ -252,7 +252,7 @@
                public virtual long fill (long count, GLib.Cancellable? cancellable) throws GLib.Error;
                public virtual void fill_async (long count, int io_priority, GLib.Cancellable? cancellable, 
GLib.AsyncReadyCallback callback);
                public virtual long fill_finish (GLib.AsyncResult _result) throws GLib.Error;
-               public weak uint buffer_size { get; set construct; }
+               public uint buffer_size { get; set construct; }
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class BufferedOutputStream : GLib.FilterOutputStream {
@@ -262,8 +262,8 @@
                public BufferedOutputStream.sized (GLib.OutputStream base_stream, ulong size);
                public void set_auto_grow (bool auto_grow);
                public void set_buffer_size (ulong size);
-               public weak bool auto_grow { get; set; }
-               public weak uint buffer_size { get; set construct; }
+               public bool auto_grow { get; set; }
+               public uint buffer_size { get; set construct; }
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class Cancellable : GLib.Object {
@@ -294,8 +294,8 @@
                public weak string read_until (string stop_chars, out ulong length, GLib.Cancellable? 
cancellable) throws GLib.Error;
                public void set_byte_order (GLib.DataStreamByteOrder order);
                public void set_newline_type (GLib.DataStreamNewlineType type);
-               public weak GLib.DataStreamByteOrder byte_order { get; set; }
-               public weak GLib.DataStreamNewlineType newline_type { get; set; }
+               public GLib.DataStreamByteOrder byte_order { get; set; }
+               public GLib.DataStreamNewlineType newline_type { get; set; }
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class DataOutputStream : GLib.FilterOutputStream {
@@ -310,7 +310,7 @@
                public bool put_uint32 (uint data, GLib.Cancellable? cancellable) throws GLib.Error;
                public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable) throws GLib.Error;
                public void set_byte_order (GLib.DataStreamByteOrder order);
-               public weak GLib.DataStreamByteOrder byte_order { get; set; }
+               public GLib.DataStreamByteOrder byte_order { get; set; }
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class FileEnumerator : GLib.Object {
@@ -339,7 +339,7 @@
                public weak string get_attribute_as_string (string attribute);
                public bool get_attribute_boolean (string attribute);
                public weak string get_attribute_byte_string (string attribute);
-               public bool get_attribute_data (string attribute, GLib.FileAttributeType type, void* 
value_pp, GLib.FileAttributeStatus status);
+               public bool get_attribute_data (string attribute, GLib.FileAttributeType? type, void* 
value_pp, GLib.FileAttributeStatus? status);
                public int get_attribute_int32 (string attribute);
                public int64 get_attribute_int64 (string attribute);
                public weak GLib.Object get_attribute_object (string attribute);
@@ -411,9 +411,9 @@
                public void set_rate_limit (int limit_msecs);
                public virtual bool cancel ();
                [NoAccessorMethod]
-               public weak bool cancelled { get; }
+               public bool cancelled { get; }
                [NoAccessorMethod]
-               public weak int rate_limit { get; set; }
+               public int rate_limit { get; set; }
                public signal void changed (GLib.File file, GLib.File? other_file, GLib.FileMonitorEvent 
event_type);
        }
        [CCode (cheader_filename = "gio/gio.h")]
@@ -445,13 +445,13 @@
        public class FilterInputStream : GLib.InputStream {
                public weak GLib.InputStream get_base_stream ();
                [NoAccessorMethod]
-               public weak GLib.InputStream base_stream { get; construct; }
+               public GLib.InputStream base_stream { get; construct; }
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class FilterOutputStream : GLib.OutputStream {
                public weak GLib.OutputStream get_base_stream ();
                [NoAccessorMethod]
-               public weak GLib.OutputStream base_stream { get; construct; }
+               public GLib.OutputStream base_stream { get; construct; }
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class IOModule : GLib.TypeModule, GLib.TypePlugin {
@@ -482,15 +482,15 @@
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class MemoryInputStream : GLib.InputStream, GLib.Seekable {
-               public void add_data (void* data, long len, GLib.DestroyNotify destroy);
+               public void add_data (void* data, long len, GLib.DestroyNotify? destroy);
                public MemoryInputStream ();
-               public MemoryInputStream.from_data (void* data, long len, GLib.DestroyNotify destroy);
+               public MemoryInputStream.from_data (void* data, long len, GLib.DestroyNotify? destroy);
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable {
                public void* get_data ();
                public ulong get_size ();
-               public MemoryOutputStream (void* data, ulong len, GLib.ReallocFunc realloc_fn, 
GLib.DestroyNotify destroy);
+               public MemoryOutputStream (void* data, ulong len, GLib.ReallocFunc realloc_fn, 
GLib.DestroyNotify? destroy);
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class MountOperation : GLib.Object {
@@ -507,12 +507,12 @@
                public void set_password (string password);
                public void set_password_save (GLib.PasswordSave save);
                public void set_username (string username);
-               public weak bool anonymous { get; set; }
-               public weak int choice { get; set; }
-               public weak string domain { get; set; }
-               public weak string password { get; set; }
-               public weak GLib.PasswordSave password_save { get; set; }
-               public weak string username { get; set; }
+               public bool anonymous { get; set; }
+               public int choice { get; set; }
+               public string domain { get; set; }
+               public string password { get; set; }
+               public GLib.PasswordSave password_save { get; set; }
+               public string username { get; set; }
                public signal void ask_password (string message, string default_user, string default_domain, 
GLib.AskPasswordFlags flags);
                public signal void ask_question (string message, string[] choices);
                [HasEmitter]
@@ -576,11 +576,11 @@
                public ThemedIcon.from_names (string[] iconnames, int len);
                public ThemedIcon.with_default_fallbacks (string iconname);
                [NoAccessorMethod]
-               public weak string name { construct; }
+               public string name { construct; }
                [NoAccessorMethod]
-               public weak string[] names { get; construct; }
+               public string[] names { get; construct; }
                [NoAccessorMethod]
-               public weak bool use_default_fallbacks { construct; }
+               public bool use_default_fallbacks { construct; }
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class Vfs : GLib.Object {
@@ -631,8 +631,8 @@
                public abstract weak GLib.Icon get_icon ();
                public abstract weak string get_id ();
                public abstract weak string get_name ();
-               public abstract bool launch (GLib.List files, GLib.AppLaunchContext launch_context) throws 
GLib.Error;
-               public abstract bool launch_uris (GLib.List uris, GLib.AppLaunchContext launch_context) 
throws GLib.Error;
+               public abstract bool launch (GLib.List? files, GLib.AppLaunchContext launch_context) throws 
GLib.Error;
+               public abstract bool launch_uris (GLib.List? uris, GLib.AppLaunchContext launch_context) 
throws GLib.Error;
                public abstract bool remove_supports_type (string content_type) throws GLib.Error;
                public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
                public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
@@ -649,7 +649,7 @@
        public interface Drive : GLib.Object {
                public abstract bool can_eject ();
                public abstract bool can_poll_for_media ();
-               public abstract void eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, 
GLib.AsyncReadyCallback callback);
+               public abstract void eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, 
GLib.AsyncReadyCallback? callback);
                public abstract bool eject_finish (GLib.AsyncResult _result) throws GLib.Error;
                public abstract weak string enumerate_identifiers ();
                public abstract weak GLib.Icon get_icon ();
@@ -660,7 +660,7 @@
                public abstract bool has_volumes ();
                public abstract bool is_media_check_automatic ();
                public abstract bool is_media_removable ();
-               public abstract void poll_for_media (GLib.Cancellable? cancellable, GLib.AsyncReadyCallback 
callback);
+               public abstract void poll_for_media (GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? 
callback);
                public abstract bool poll_for_media_finish (GLib.AsyncResult _result) throws GLib.Error;
                public signal void changed ();
                public signal void disconnected ();
@@ -684,8 +684,8 @@
                public weak GLib.AppInfo query_default_handler (GLib.Cancellable? cancellable) throws 
GLib.Error;
                public bool query_exists (GLib.Cancellable? cancellable);
                public weak GLib.FileInputStream read (GLib.Cancellable? cancellable) throws GLib.Error;
-               public bool replace_contents (string contents, ulong length, string etag, bool make_backup, 
GLib.FileCreateFlags flags, out weak string new_etag, GLib.Cancellable? cancellable) throws GLib.Error;
-               public void replace_contents_async (string contents, ulong length, string etag, bool 
make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
+               public bool replace_contents (string contents, ulong length, string? etag, bool make_backup, 
GLib.FileCreateFlags flags, out weak string new_etag, GLib.Cancellable? cancellable) throws GLib.Error;
+               public void replace_contents_async (string contents, ulong length, string? etag, bool 
make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
                public bool replace_contents_finish (GLib.AsyncResult res, out weak string new_etag) throws 
GLib.Error;
                public bool set_attribute_byte_string (string attribute, string value, 
GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
                public bool set_attribute_int32 (string attribute, int value, GLib.FileQueryInfoFlags flags, 
GLib.Cancellable? cancellable) throws GLib.Error;
@@ -696,8 +696,8 @@
                public abstract weak GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, 
GLib.Cancellable? cancellable) throws GLib.Error;
                public abstract void append_to_async (GLib.FileCreateFlags flags, int io_priority, 
GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
                public abstract weak GLib.FileOutputStream append_to_finish (GLib.AsyncResult res) throws 
GLib.Error;
-               public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? 
cancellable, GLib.FileProgressCallback progress_callback) throws GLib.Error;
-               public abstract void copy_async (GLib.File destination, GLib.FileCopyFlags flags, int 
io_priority, GLib.Cancellable? cancellable, GLib.FileProgressCallback progress_callback, 
GLib.AsyncReadyCallback callback);
+               public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? 
cancellable, GLib.FileProgressCallback? progress_callback) throws GLib.Error;
+               public abstract void copy_async (GLib.File destination, GLib.FileCopyFlags flags, int 
io_priority, GLib.Cancellable? cancellable, GLib.FileProgressCallback? progress_callback, 
GLib.AsyncReadyCallback callback);
                public abstract bool copy_finish (GLib.AsyncResult res) throws GLib.Error;
                public abstract weak GLib.FileOutputStream create (GLib.FileCreateFlags flags, 
GLib.Cancellable? cancellable) throws GLib.Error;
                public abstract void create_async (GLib.FileCreateFlags flags, int io_priority, 
GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
@@ -705,7 +705,7 @@
                [NoWrapper]
                public abstract bool delete_file (GLib.Cancellable? cancellable) throws GLib.Error;
                public abstract weak GLib.File dup ();
-               public abstract void eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? 
cancellable, GLib.AsyncReadyCallback callback);
+               public abstract void eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? 
cancellable, GLib.AsyncReadyCallback? callback);
                public abstract bool eject_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
                public abstract weak GLib.FileEnumerator enumerate_children (string attributes, 
GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
                public abstract void enumerate_children_async (string attributes, GLib.FileQueryInfoFlags 
flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
@@ -731,11 +731,11 @@
                public abstract weak GLib.FileMonitor monitor_dir (GLib.FileMonitorFlags flags, 
GLib.Cancellable? cancellable) throws GLib.Error;
                [NoWrapper]
                public abstract weak GLib.FileMonitor monitor_file (GLib.FileMonitorFlags flags, 
GLib.Cancellable? cancellable) throws GLib.Error;
-               public abstract void mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation 
mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
+               public abstract void mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation? 
mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
                public abstract bool mount_enclosing_volume_finish (GLib.AsyncResult _result) throws 
GLib.Error;
-               public abstract void mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation 
mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
+               public abstract void mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation? 
mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
                public abstract weak GLib.File mount_mountable_finish (GLib.AsyncResult _result) throws 
GLib.Error;
-               public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? 
cancellable, GLib.FileProgressCallback progress_callback) throws GLib.Error;
+               public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? 
cancellable, GLib.FileProgressCallback? progress_callback) throws GLib.Error;
                [NoWrapper]
                public abstract bool prefix_matches (GLib.File file);
                public abstract weak GLib.FileInfo query_filesystem_info (string attributes, 
GLib.Cancellable? cancellable) throws GLib.Error;
@@ -750,8 +750,8 @@
                public abstract weak GLib.FileInputStream read_finish (GLib.AsyncResult res) throws 
GLib.Error;
                [NoWrapper]
                public abstract weak GLib.FileInputStream read_fn (GLib.Cancellable? cancellable) throws 
GLib.Error;
-               public abstract weak GLib.FileOutputStream replace (string etag, bool make_backup, 
GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
-               public abstract void replace_async (string etag, bool make_backup, GLib.FileCreateFlags 
flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
+               public abstract weak GLib.FileOutputStream replace (string? etag, bool make_backup, 
GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
+               public abstract void replace_async (string? etag, bool make_backup, GLib.FileCreateFlags 
flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
                public abstract weak GLib.FileOutputStream replace_finish (GLib.AsyncResult res) throws 
GLib.Error;
                public abstract weak GLib.File resolve_relative_path (string relative_path);
                public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* 
value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
@@ -762,7 +762,7 @@
                public abstract void set_display_name_async (string display_name, int io_priority, 
GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
                public abstract weak GLib.File set_display_name_finish (GLib.AsyncResult res) throws 
GLib.Error;
                public abstract bool trash (GLib.Cancellable? cancellable) throws GLib.Error;
-               public abstract void unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? 
cancellable, GLib.AsyncReadyCallback callback);
+               public abstract void unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? 
cancellable, GLib.AsyncReadyCallback? callback);
                public abstract bool unmount_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
        }
        [CCode (cheader_filename = "gio/gio.h")]
@@ -772,15 +772,15 @@
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public interface LoadableIcon : GLib.Icon, GLib.Object {
-               public abstract weak GLib.InputStream load (int size, out weak string type, GLib.Cancellable? 
cancellable) throws GLib.Error;
+               public abstract weak GLib.InputStream load (int size, out weak string? type, 
GLib.Cancellable? cancellable) throws GLib.Error;
                public abstract void load_async (int size, GLib.Cancellable? cancellable, 
GLib.AsyncReadyCallback callback);
-               public abstract weak GLib.InputStream load_finish (GLib.AsyncResult res, out weak string 
type) throws GLib.Error;
+               public abstract weak GLib.InputStream load_finish (GLib.AsyncResult res, out weak string? 
type) throws GLib.Error;
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public interface Mount : GLib.Object {
                public abstract bool can_eject ();
                public abstract bool can_unmount ();
-               public abstract void eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, 
GLib.AsyncReadyCallback callback);
+               public abstract void eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, 
GLib.AsyncReadyCallback? callback);
                public abstract bool eject_finish (GLib.AsyncResult _result) throws GLib.Error;
                public abstract weak GLib.Drive get_drive ();
                public abstract weak GLib.Icon get_icon ();
@@ -788,9 +788,9 @@
                public abstract weak GLib.File get_root ();
                public abstract weak string get_uuid ();
                public abstract weak GLib.Volume get_volume ();
-               public abstract void remount (GLib.MountMountFlags flags, GLib.MountOperation 
mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
+               public abstract void remount (GLib.MountMountFlags flags, GLib.MountOperation? 
mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
                public abstract bool remount_finish (GLib.AsyncResult _result) throws GLib.Error;
-               public abstract void unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, 
GLib.AsyncReadyCallback callback);
+               public abstract void unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, 
GLib.AsyncReadyCallback? callback);
                public abstract bool unmount_finish (GLib.AsyncResult _result) throws GLib.Error;
                public signal void changed ();
                public signal void unmounted ();
@@ -807,10 +807,10 @@
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public interface Volume : GLib.Object {
-               public void mount (GLib.MountMountFlags flags, GLib.MountOperation mount_operation, 
GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
+               public void mount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, 
GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
                public abstract bool can_eject ();
                public abstract bool can_mount ();
-               public abstract void eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, 
GLib.AsyncReadyCallback callback);
+               public abstract void eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, 
GLib.AsyncReadyCallback? callback);
                public abstract bool eject_finish (GLib.AsyncResult _result) throws GLib.Error;
                public abstract weak string enumerate_identifiers ();
                public abstract weak GLib.Drive get_drive ();
@@ -821,7 +821,7 @@
                public abstract weak string get_uuid ();
                public abstract bool mount_finish (GLib.AsyncResult _result) throws GLib.Error;
                [NoWrapper]
-               public abstract void mount_fn (GLib.MountMountFlags flags, GLib.MountOperation 
mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
+               public abstract void mount_fn (GLib.MountMountFlags flags, GLib.MountOperation? 
mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
                public abstract bool should_automount ();
                public signal void changed ();
                public signal void removed ();
@@ -929,7 +929,7 @@
        [CCode (cname = "g_content_types_get_registered", cheader_filename = "gio/gio.h")]
        public static weak GLib.List g_content_types_get_registered ();
        [CCode (cname = "g_io_error_from_errno", cheader_filename = "gio/gio.h")]
-       public static GLib.IOError g_io_error_from_errno (int err_no);
+       public static weak GLib.IOError g_io_error_from_errno (int err_no);
        [CCode (cname = "g_io_error_quark", cheader_filename = "gio/gio.h")]
        public static GLib.Quark g_io_error_quark ();
        [CCode (cname = "g_io_modules_load_all_in_directory", cheader_filename = "gio/gio.h")]
@@ -937,7 +937,7 @@
        [CCode (cname = "g_io_scheduler_cancel_all_jobs", cheader_filename = "gio/gio.h")]
        public static void g_io_scheduler_cancel_all_jobs ();
        [CCode (cname = "g_io_scheduler_push_job", cheader_filename = "gio/gio.h")]
-       public static void g_io_scheduler_push_job (GLib.IOSchedulerJobFunc job_func, GLib.DestroyNotify 
notify, int io_priority, GLib.Cancellable? cancellable);
+       public static void g_io_scheduler_push_job (GLib.IOSchedulerJobFunc job_func, GLib.DestroyNotify? 
notify, int io_priority, GLib.Cancellable? cancellable);
        [CCode (cname = "g_simple_async_report_error_in_idle", cheader_filename = "gio/gio.h")]
        public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback 
callback, GLib.Quark domain, int code, string format);
        [CCode (cname = "g_simple_async_report_gerror_in_idle", cheader_filename = "gio/gio.h")]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]