]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Update GIR-based bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 5 Jan 2019 18:34:32 +0000 (19:34 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 5 Jan 2019 18:34:52 +0000 (19:34 +0100)
vapi/gio-2.0.vapi
vapi/gobject-introspection-1.0.vapi
vapi/graphene-1.0.vapi
vapi/libgeoclue-2.0.vapi

index ccd044729badcc092da0257ecfac22ec0fe9839d..7c253ed2376ab2b92d93c1db988c358c88a2dfd8 100644 (file)
@@ -45,6 +45,9 @@ namespace GLib {
                public static string? get_generic_icon_name (string type);
                [CCode (cheader_filename = "gio/gio.h")]
                public static GLib.Icon get_icon (string type);
+               [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gio/gio.h")]
+               [Version (since = "2.60")]
+               public static unowned string[] get_mime_dirs ();
                [CCode (cheader_filename = "gio/gio.h")]
                public static string? get_mime_type (string type);
                [CCode (cheader_filename = "gio/gio.h")]
@@ -64,6 +67,9 @@ namespace GLib {
                public static bool is_unknown (string type);
                [CCode (cheader_filename = "gio/gio.h", cname = "g_content_types_get_registered")]
                public static GLib.List<string> list_registered ();
+               [CCode (cheader_filename = "gio/gio.h")]
+               [Version (since = "2.60")]
+               public static void set_mime_dirs ([CCode (array_length = false, array_null_terminated = true)] string[]? dirs);
        }
        namespace DBus {
                [CCode (cheader_filename = "gio/gio.h")]
@@ -664,6 +670,8 @@ namespace GLib {
                public DBusConnection.for_address_sync (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public GLib.DBusCapabilityFlags get_capabilities ();
                public bool get_exit_on_close ();
+               [Version (since = "2.60")]
+               public GLib.DBusConnectionFlags get_flags ();
                public unowned string get_guid ();
                [Version (since = "2.34")]
                public uint32 get_last_serial ();
@@ -707,8 +715,7 @@ namespace GLib {
                [NoAccessorMethod]
                public bool closed { get; }
                public bool exit_on_close { get; set; }
-               [NoAccessorMethod]
-               public GLib.DBusConnectionFlags flags { construct; }
+               public GLib.DBusConnectionFlags flags { get; construct; }
                public string guid { get; construct; }
                public GLib.IOStream stream { get; construct; }
                public string unique_name { get; }
@@ -2807,6 +2814,8 @@ namespace GLib {
                public bool get_completed ();
                [Version (since = "2.36")]
                public unowned GLib.MainContext get_context ();
+               [Version (since = "2.60")]
+               public unowned string? get_name ();
                [Version (since = "2.36")]
                public int get_priority ();
                [Version (since = "2.36")]
@@ -2852,6 +2861,8 @@ namespace GLib {
                public void run_in_thread_sync (GLib.TaskThreadFunc task_func);
                [Version (since = "2.36")]
                public void set_check_cancellable (bool check_cancellable);
+               [Version (since = "2.60")]
+               public void set_name (string? name);
                [Version (since = "2.36")]
                public void set_priority (int priority);
                [Version (since = "2.36")]
@@ -2960,6 +2971,8 @@ namespace GLib {
                public unowned GLib.TlsDatabase get_database ();
                [Version (since = "2.30")]
                public unowned GLib.TlsInteraction get_interaction ();
+               [Version (since = "2.60")]
+               public unowned string? get_negotiated_protocol ();
                public unowned GLib.TlsCertificate get_peer_certificate ();
                public GLib.TlsCertificateFlags get_peer_certificate_errors ();
                [Version (deprecated = true, deprecated_since = "2.60.", since = "2.28")]
@@ -2969,6 +2982,8 @@ namespace GLib {
                public bool get_use_system_certdb ();
                public virtual bool handshake (GLib.Cancellable? cancellable = null) throws GLib.Error;
                public virtual async bool handshake_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [Version (since = "2.60")]
+               public void set_advertised_protocols ([CCode (array_length = false, array_null_terminated = true)] string[]? protocols);
                public void set_certificate (GLib.TlsCertificate certificate);
                [Version (since = "2.30")]
                public void set_database (GLib.TlsDatabase database);
@@ -2979,6 +2994,10 @@ namespace GLib {
                public void set_require_close_notify (bool require_close_notify);
                [Version (deprecated = true, deprecated_since = "2.30")]
                public void set_use_system_certdb (bool use_system_certdb);
+               [CCode (array_length = false, array_null_terminated = true)]
+               [NoAccessorMethod]
+               [Version (since = "2.60")]
+               public string[] advertised_protocols { owned get; set; }
                [NoAccessorMethod]
                public GLib.IOStream base_io_stream { owned get; construct; }
                public GLib.TlsCertificate certificate { get; set; }
@@ -2986,6 +3005,8 @@ namespace GLib {
                public GLib.TlsDatabase database { get; set; }
                [Version (since = "2.30")]
                public GLib.TlsInteraction interaction { get; set; }
+               [Version (since = "2.60")]
+               public string negotiated_protocol { get; }
                public GLib.TlsCertificate peer_certificate { get; }
                public GLib.TlsCertificateFlags peer_certificate_errors { get; }
                public GLib.TlsRehandshakeMode rehandshake_mode { get; set construct; }
@@ -3440,12 +3461,16 @@ namespace GLib {
                public unowned GLib.TlsCertificate get_certificate ();
                public unowned GLib.TlsDatabase get_database ();
                public unowned GLib.TlsInteraction get_interaction ();
+               [Version (since = "2.60")]
+               public abstract unowned string? get_negotiated_protocol ();
                public unowned GLib.TlsCertificate get_peer_certificate ();
                public GLib.TlsCertificateFlags get_peer_certificate_errors ();
                public GLib.TlsRehandshakeMode get_rehandshake_mode ();
                public bool get_require_close_notify ();
                public abstract bool handshake (GLib.Cancellable? cancellable = null) throws GLib.Error;
                public abstract async bool handshake_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [Version (since = "2.60")]
+               public abstract void set_advertised_protocols ([CCode (array_length = false, array_null_terminated = true)] string[]? protocols);
                public void set_certificate (GLib.TlsCertificate certificate);
                public void set_database (GLib.TlsDatabase database);
                public void set_interaction (GLib.TlsInteraction? interaction);
@@ -3454,6 +3479,10 @@ namespace GLib {
                public void set_require_close_notify (bool require_close_notify);
                public abstract bool shutdown (bool shutdown_read, bool shutdown_write, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public abstract async bool shutdown_async (bool shutdown_read, bool shutdown_write, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [CCode (array_length = false, array_null_terminated = true)]
+               [NoAccessorMethod]
+               [Version (since = "2.60")]
+               public abstract string[] advertised_protocols { owned get; set; }
                [NoAccessorMethod]
                public abstract GLib.DatagramBased base_socket { owned get; construct; }
                [ConcreteAccessor]
@@ -3462,6 +3491,8 @@ namespace GLib {
                public abstract GLib.TlsDatabase database { get; set; }
                [ConcreteAccessor]
                public abstract GLib.TlsInteraction interaction { get; set; }
+               [Version (since = "2.60")]
+               public abstract string negotiated_protocol { get; }
                [ConcreteAccessor]
                public abstract GLib.TlsCertificate peer_certificate { get; }
                [ConcreteAccessor]
index 06e5f63c4987ef1f8b1fb866dd0dfa7f5dfc6cdf..7a700f1301652fbcfd4f001dea116f3c145b6727 100644 (file)
@@ -438,17 +438,23 @@ namespace GI {
        [CCode (cheader_filename = "girepository.h", has_target = false)]
        public delegate void ObjectInfoUnrefFunction (void* object);
        [CCode (cheader_filename = "girepository.h", cname = "GI_MAJOR_VERSION")]
+       [Version (since = "1.60")]
        public const int MAJOR_VERSION;
        [CCode (cheader_filename = "girepository.h", cname = "GI_MICRO_VERSION")]
+       [Version (since = "1.60")]
        public const int MICRO_VERSION;
        [CCode (cheader_filename = "girepository.h", cname = "GI_MINOR_VERSION")]
+       [Version (since = "1.60")]
        public const int MINOR_VERSION;
        [CCode (cheader_filename = "girepository.h", cname = "GI_TYPE_TAG_N_TYPES")]
        public const int TYPE_TAG_N_TYPES;
        [CCode (cheader_filename = "girepository.h", cname = "gi_get_major_version")]
+       [Version (since = "1.60")]
        public static uint get_major_version ();
        [CCode (cheader_filename = "girepository.h", cname = "gi_get_micro_version")]
+       [Version (since = "1.60")]
        public static uint get_micro_version ();
        [CCode (cheader_filename = "girepository.h", cname = "gi_get_minor_version")]
+       [Version (since = "1.60")]
        public static uint get_minor_version ();
 }
index b1aa112b21110d3056b8b4e1677cb5b89e11613b..3b76a31d64ff59f60043bdffccc66e4e4d828db1 100644 (file)
@@ -580,4 +580,8 @@ namespace Graphene {
        [CCode (cheader_filename = "graphene-gobject.h", cname = "GRAPHENE_VEC4_LEN")]
        [Version (since = "1.0")]
        public const int VEC4_LEN;
+       [CCode (cheader_filename = "graphene-gobject.h", cname = "false")]
+       public const int @false;
+       [CCode (cheader_filename = "graphene-gobject.h", cname = "true")]
+       public const int @true;
 }
index 34b1cb5125e9d0c1c8a56154f3f67d086fd1b6eb..cd6af91270625a387bbe34b2d2a673c22f9bb543 100644 (file)
@@ -120,10 +120,21 @@ namespace GClue {
                public async bool call_add_agent (string arg_id, GLib.Cancellable? cancellable) throws GLib.Error;
                public bool call_add_agent_sync (string arg_id, GLib.Cancellable? cancellable = null) throws GLib.Error;
                [CCode (async_result_pos = 2.1)]
+               public async bool call_create_client (GLib.Cancellable? cancellable, out string out_client) throws GLib.Error;
+               public bool call_create_client_sync (out string out_client, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public async bool call_delete_client (string arg_client, GLib.Cancellable? cancellable) throws GLib.Error;
+               public bool call_delete_client_sync (string arg_client, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [CCode (async_result_pos = 2.1)]
                public async bool call_get_client (GLib.Cancellable? cancellable, out string out_client) throws GLib.Error;
                public bool call_get_client_sync (out string out_client, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public void complete_add_agent (owned GLib.DBusMethodInvocation invocation);
+               public void complete_create_client (owned GLib.DBusMethodInvocation invocation, string client);
+               public void complete_delete_client (owned GLib.DBusMethodInvocation invocation);
                public void complete_get_client (owned GLib.DBusMethodInvocation invocation, string client);
+               [NoWrapper]
+               public abstract bool handle_create_client (GLib.DBusMethodInvocation invocation);
+               [NoWrapper]
+               public abstract bool handle_delete_client (GLib.DBusMethodInvocation invocation, string arg_client);
                public static unowned GLib.DBusInterfaceInfo interface_info ();
                public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin);
                [NoAccessorMethod]