]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Update GIR-based bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 18 Dec 2018 10:07:57 +0000 (11:07 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 18 Dec 2018 11:37:25 +0000 (12:37 +0100)
vapi/gio-2.0.vapi
vapi/gobject-introspection-1.0.vapi
vapi/metadata/GIRepository-2.0.metadata
vapi/pango.vapi

index 97634a97f7897e93af2dd70ef08ac7ac73576730..74cd6befa845e02834703af00645623aace4e50b 100644 (file)
@@ -2069,6 +2069,10 @@ namespace GLib {
                public virtual GLib.List<GLib.InetAddress> lookup_by_name (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
                [Version (since = "2.22")]
                public virtual async GLib.List<GLib.InetAddress> lookup_by_name_async (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [Version (since = "2.60")]
+               public virtual GLib.List<GLib.InetAddress> lookup_by_name_with_flags (string hostname, GLib.ResolverNameLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [Version (since = "2.60")]
+               public virtual async GLib.List<GLib.InetAddress> lookup_by_name_with_flags_async (string hostname, GLib.ResolverNameLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
                [Version (since = "2.34")]
                public virtual GLib.List<GLib.Variant> lookup_records (string rrname, GLib.ResolverRecordType record_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
                [Version (since = "2.34")]
@@ -4366,6 +4370,14 @@ namespace GLib {
                FOR_SESSION,
                PERMANENTLY
        }
+       [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOLVER_NAME_LOOKUP_FLAGS_", type_id = "g_resolver_name_lookup_flags_get_type ()")]
+       [Flags]
+       [Version (since = "2.60")]
+       public enum ResolverNameLookupFlags {
+               DEFAULT,
+               IPV4_ONLY,
+               IPV6_ONLY
+       }
        [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOLVER_RECORD_", type_id = "g_resolver_record_type_get_type ()")]
        [Version (since = "2.34")]
        public enum ResolverRecordType {
index 1c3d25cd67a969eec1aec4b8e258eb2637436e9d..06e5f63c4987ef1f8b1fb866dd0dfa7f5dfc6cdf 100644 (file)
@@ -437,4 +437,18 @@ namespace GI {
        public delegate void ObjectInfoSetValueFunction (GLib.Value value, void* object);
        [CCode (cheader_filename = "girepository.h", has_target = false)]
        public delegate void ObjectInfoUnrefFunction (void* object);
+       [CCode (cheader_filename = "girepository.h", cname = "GI_MAJOR_VERSION")]
+       public const int MAJOR_VERSION;
+       [CCode (cheader_filename = "girepository.h", cname = "GI_MICRO_VERSION")]
+       public const int MICRO_VERSION;
+       [CCode (cheader_filename = "girepository.h", cname = "GI_MINOR_VERSION")]
+       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")]
+       public static uint get_major_version ();
+       [CCode (cheader_filename = "girepository.h", cname = "gi_get_micro_version")]
+       public static uint get_micro_version ();
+       [CCode (cheader_filename = "girepository.h", cname = "gi_get_minor_version")]
+       public static uint get_minor_version ();
 }
index 64313818c54bfd678dede90a4860fd00f1affa39..2f1f9aef193617687aeb5812aac7f19a2e7e73bb 100644 (file)
@@ -1,4 +1,5 @@
 * skip=false
+cclosure_marshal_generic skip
 info_new skip
 
 CallbackInfo base_type="GI.CallableInfo"
index b74e27334df65ec84e01e6212d2982a1033e25f0..73f575152f3caec719922d2d05ae219d09cc1fbb 100644 (file)
@@ -810,7 +810,6 @@ namespace Pango {
                EXACT
        }
        [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_DIRECTION_", type_id = "pango_direction_get_type ()")]
-       [Version (deprecated = true, deprecated_since = "1.44")]
        public enum Direction {
                LTR,
                RTL,