]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Update GIR-based bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 26 Jun 2016 15:36:18 +0000 (17:36 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 26 Jun 2016 15:36:18 +0000 (17:36 +0200)
vapi/gio-2.0.vapi
vapi/packagekit-glib2.vapi

index a27a78abfbbeb0e6b184ffb5f9a84c2e54f5aec2..a3504b4720c290b42aa9cbc22802fb4f6474a380 100644 (file)
@@ -421,7 +421,7 @@ namespace GLib {
                [Version (since = "2.28")]
                public string[] get_arguments ();
                [Version (since = "2.28")]
-               public unowned string get_cwd ();
+               public unowned string? get_cwd ();
                [CCode (array_length = false, array_null_terminated = true)]
                [Version (since = "2.28")]
                public unowned string[] get_environ ();
@@ -2945,6 +2945,10 @@ namespace GLib {
                [NoWrapper]
                public virtual bool local_file_set_attributes (string filename, GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public virtual GLib.File parse_name (string parse_name);
+               [Version (since = "2.50")]
+               public bool register_uri_scheme (string scheme, [CCode (delegate_target_pos = 2.33333, destroy_notify_pos = 2.66667)] owned GLib.VfsFileLookupFunc? uri_func, owned GLib.VfsFileLookupFunc? parse_name_func);
+               [Version (since = "2.50")]
+               public bool unregister_uri_scheme (string scheme);
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class VolumeMonitor : GLib.Object {
@@ -4616,6 +4620,9 @@ namespace GLib {
        [CCode (cheader_filename = "gio/gio.h", has_target = false)]
        [Version (since = "2.36")]
        public delegate void TaskThreadFunc (GLib.Task task, GLib.Object source_object, void* task_data, GLib.Cancellable? cancellable = null);
+       [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
+       [Version (since = "2.50")]
+       public delegate GLib.File VfsFileLookupFunc (GLib.Vfs vfs, string identifier);
        [CCode (cheader_filename = "gio/gio.h")]
        [Version (deprecated_since = "vala-0.16", replacement = "File.equal")]
        public static GLib.EqualFunc file_equal;
index 97ad8af05e023bdb163fe987790be321c702a03f..a344073bae120bc7aabc4c28c1863c05c417badc 100644 (file)
@@ -1885,8 +1885,8 @@ namespace Pk {
        [Version (since = "0.9.6")]
        public static bool offline_auth_set_prepared_ids (string package_ids) throws GLib.Error;
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
-       [Version (since = "1.0.12")]
-       public static bool offline_auth_set_prepared_upgrade_version (string release_ver) throws GLib.Error;
+       [Version (since = "1.1.2")]
+       public static bool offline_auth_set_prepared_upgrade (string name, string release_ver) throws GLib.Error;
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
        [Version (since = "0.9.6")]
        public static bool offline_auth_set_results (Pk.Results results) throws GLib.Error;
@@ -1918,9 +1918,15 @@ namespace Pk {
        [Version (since = "0.9.6")]
        public static Pk.PackageSack offline_get_prepared_sack () throws GLib.Error;
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
+       [Version (since = "1.1.2")]
+       public static bool offline_get_prepared_upgrade (out string name, out string release_ver) throws GLib.Error;
+       [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
        [Version (since = "1.0.12")]
        public static GLib.FileMonitor offline_get_prepared_upgrade_monitor (GLib.Cancellable? cancellable = null) throws GLib.Error;
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
+       [Version (since = "1.1.2")]
+       public static string offline_get_prepared_upgrade_name () throws GLib.Error;
+       [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
        [Version (since = "1.0.12")]
        public static string offline_get_prepared_upgrade_version () throws GLib.Error;
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]