]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Fix Bus.watch_name and watch_name_on_connection bindings
authorLuca Bruno <lucabru@src.gnome.org>
Wed, 8 Jun 2011 19:14:50 +0000 (21:14 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Wed, 8 Jun 2011 19:16:53 +0000 (21:16 +0200)
Fixes bug 652123.

vapi/gio-2.0.vapi
vapi/packages/gio-2.0/gio-2.0-custom.vala

index 08e580b212e0ccbdc432626b00016b36b55e5dc7..df8171bd7433bf3d4c46019afdbb93ff9ffbd50f 100644 (file)
@@ -21,9 +21,9 @@ namespace GLib {
                [CCode (cheader_filename = "gio/gio.h")]
                public static void unwatch_name (uint watcher_id);
                [CCode (cname = "g_bus_watch_name_with_closures", cheader_filename = "gio/gio.h")]
-               public static uint watch_name (GLib.BusType bus_type, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback name_vanished_handler);
+               public static uint watch_name (GLib.BusType bus_type, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback? name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback? name_vanished_handler);
                [CCode (cname = "g_bus_watch_name_on_connection_with_closures", cheader_filename = "gio/gio.h")]
-               public static uint watch_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback name_vanished_handler);
+               public static uint watch_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback? name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback? name_vanished_handler);
        }
        [CCode (cprefix = "GContentType", lower_case_cprefix = "g_content_type_")]
        namespace ContentType {
@@ -2406,7 +2406,7 @@ namespace GLib {
                INVALID_FILE_CONTENT,
                SELINUX_SECURITY_CONTEXT_UNKNOWN,
                ADT_AUDIT_DATA_UNKNOWN,
-               OBJECT_PATH_IN_USE,
+               OBJECT_PATH_IN_USE
        }
        [CCode (cprefix = "G_IO_ERROR_", cheader_filename = "gio/gio.h")]
        public errordomain IOError {
@@ -2453,13 +2453,13 @@ namespace GLib {
                PROXY_FAILED,
                PROXY_AUTH_FAILED,
                PROXY_NEED_AUTH,
-               PROXY_NOT_ALLOWED,
+               PROXY_NOT_ALLOWED
        }
        [CCode (cprefix = "G_RESOLVER_ERROR_", cheader_filename = "gio/gio.h")]
        public errordomain ResolverError {
                NOT_FOUND,
                TEMPORARY_FAILURE,
-               INTERNAL,
+               INTERNAL
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public delegate void AsyncReadyCallback (GLib.Object? source_object, GLib.AsyncResult res);
index 74145e09a526c8d20af77e794822b1c88f69da5e..51636d9e34a649095e186dd7761299487d4dff43 100644 (file)
@@ -65,9 +65,9 @@ namespace GLib {
                public void unown_name (uint owner_id);
                public void unwatch_name (uint watcher_id);
                [CCode (cname = "g_bus_watch_name_with_closures")]
-               public uint watch_name (GLib.BusType bus_type, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback name_vanished_handler);
+               public uint watch_name (GLib.BusType bus_type, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback? name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback? name_vanished_handler);
                [CCode (cname = "g_bus_watch_name_on_connection_with_closures")]
-               public uint watch_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback name_vanished_handler);
+               public uint watch_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback? name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback? name_vanished_handler);
        }
 
        [CCode (cname = "GDBusConnection")]