[vala: 2/2] vapi: Update GIR-based bindings



commit 2c46fb18e1c89e46105d05fef5eecfd14b872cfe
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Sep 9 13:43:21 2019 +0200

    vapi: Update GIR-based bindings

 vapi/graphene-gobject-1.0.vapi | 23 +++++++++++++++++++++++
 vapi/gstreamer-1.0.vapi        |  2 ++
 vapi/webkit2gtk-4.0.vapi       | 11 +++++++++--
 3 files changed, 34 insertions(+), 2 deletions(-)
---
diff --git a/vapi/graphene-gobject-1.0.vapi b/vapi/graphene-gobject-1.0.vapi
index fdb484818..69801535d 100644
--- a/vapi/graphene-gobject-1.0.vapi
+++ b/vapi/graphene-gobject-1.0.vapi
@@ -321,6 +321,18 @@ namespace Graphene {
                public unowned Graphene.Ray? init (Graphene.Point3D? origin, Graphene.Vec3? direction);
                public unowned Graphene.Ray? init_from_ray (Graphene.Ray src);
                public unowned Graphene.Ray? init_from_vec3 (Graphene.Vec3? origin, Graphene.Vec3? direction);
+               [Version (since = "1.10")]
+               public Graphene.RayIntersectionKind intersect_box (Graphene.Box b, out float t_out);
+               [Version (since = "1.10")]
+               public Graphene.RayIntersectionKind intersect_sphere (Graphene.Sphere s, out float t_out);
+               [Version (since = "1.10")]
+               public Graphene.RayIntersectionKind intersect_triangle (Graphene.Triangle t, out float t_out);
+               [Version (since = "1.10")]
+               public bool intersects_box (Graphene.Box b);
+               [Version (since = "1.10")]
+               public bool intersects_sphere (Graphene.Sphere s);
+               [Version (since = "1.10")]
+               public bool intersects_triangle (Graphene.Triangle t);
        }
        [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_rect_t", type_id = 
"graphene_rect_get_type ()")]
        [Version (since = "1.0")]
@@ -416,7 +428,11 @@ namespace Graphene {
                public Graphene.Vec3 get_normal ();
                public Graphene.Plane get_plane ();
                public void get_points (out Graphene.Point3D a, out Graphene.Point3D b, out Graphene.Point3D 
c);
+               [Version (since = "1.10")]
+               public bool get_uv (Graphene.Point3D? p, Graphene.Vec2 uv_a, Graphene.Vec2 uv_b, 
Graphene.Vec2 uv_c, out Graphene.Vec2 res);
                public void get_vertices (out Graphene.Vec3 a, out Graphene.Vec3 b, out Graphene.Vec3 c);
+               [Version (since = "1.10")]
+               public unowned Graphene.Triangle? init_from_float ([CCode (array_length = false)] float a[3], 
[CCode (array_length = false)] float b[3], [CCode (array_length = false)] float c[3]);
                public unowned Graphene.Triangle? init_from_point3d (Graphene.Point3D? a, Graphene.Point3D? 
b, Graphene.Point3D? c);
                public unowned Graphene.Triangle? init_from_vec3 (Graphene.Vec3? a, Graphene.Vec3? b, 
Graphene.Vec3? c);
        }
@@ -640,6 +656,13 @@ namespace Graphene {
                RXYZ,
                RZYZ
        }
+       [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_ray_intersection_kind_t", cprefix 
= "GRAPHENE_RAY_INTERSECTION_KIND_", has_type_id = false)]
+       [Version (since = "1.10")]
+       public enum RayIntersectionKind {
+               NONE,
+               ENTER,
+               LEAVE
+       }
        [CCode (cheader_filename = "graphene-gobject.h", cname = "GRAPHENE_HAS_GCC")]
        public const int HAS_GCC;
        [CCode (cheader_filename = "graphene-gobject.h", cname = "GRAPHENE_HAS_SCALAR")]
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index bae27da5f..55ead7014 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -1842,6 +1842,8 @@ namespace Gst {
                public Gst.Element? get_parent_element ();
                public Gst.Pad? get_peer ();
                public Gst.FlowReturn get_range (uint64 offset, uint size, out Gst.Buffer buffer);
+               [Version (since = "1.18")]
+               public Gst.Pad? get_single_internal_link ();
                public Gst.Event? get_sticky_event (Gst.EventType event_type, uint idx);
                [Version (since = "1.10")]
                public Gst.Stream? get_stream ();
diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi
index cdd8def35..690d4ae94 100644
--- a/vapi/webkit2gtk-4.0.vapi
+++ b/vapi/webkit2gtk-4.0.vapi
@@ -965,6 +965,8 @@ namespace WebKit {
                [Version (since = "2.6")]
                public void remove_all_style_sheets ();
                public void remove_filter (WebKit.UserContentFilter filter);
+               [Version (since = "2.26")]
+               public void remove_filter_by_id (string filter_id);
                [Version (since = "2.8")]
                public void unregister_script_message_handler (string name);
                [Version (since = "2.22")]
@@ -1040,7 +1042,7 @@ namespace WebKit {
                [CCode (array_length = false, array_null_terminated = true)]
                public unowned string[] get_spell_checking_languages ();
                public WebKit.TLSErrorsPolicy get_tls_errors_policy ();
-               [Version (since = "2.10")]
+               [Version (deprecated = true, deprecated_since = "2.26", since = "2.10")]
                public uint get_web_process_count_limit ();
                [Version (since = "2.10")]
                public unowned WebKit.WebsiteDataManager get_website_data_manager ();
@@ -1073,7 +1075,7 @@ namespace WebKit {
                public void set_web_extensions_directory (string directory);
                [Version (since = "2.4")]
                public void set_web_extensions_initialization_user_data (GLib.Variant user_data);
-               [Version (since = "2.10")]
+               [Version (deprecated = true, deprecated_since = "2.26", since = "2.10")]
                public void set_web_process_count_limit (uint limit);
                [CCode (has_construct_function = false)]
                [Version (since = "2.10")]
@@ -1329,6 +1331,8 @@ namespace WebKit {
                public unowned WebKit.CookieManager get_cookie_manager ();
                [Version (since = "2.10")]
                public unowned string? get_disk_cache_directory ();
+               [Version (since = "2.26")]
+               public unowned string? get_hsts_cache_directory ();
                [Version (since = "2.10")]
                public unowned string? get_indexeddb_directory ();
                [Version (since = "2.10")]
@@ -1345,6 +1349,8 @@ namespace WebKit {
                public string base_data_directory { get; construct; }
                [Version (since = "2.10")]
                public string disk_cache_directory { get; construct; }
+               [Version (since = "2.26")]
+               public string hsts_cache_directory { get; construct; }
                [Version (since = "2.10")]
                public string indexeddb_directory { get; construct; }
                [NoAccessorMethod]
@@ -1618,6 +1624,7 @@ namespace WebKit {
                PLUGIN_DATA,
                COOKIES,
                DEVICE_ID_HASH_SALT,
+               HSTS_CACHE,
                ALL
        }
        [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_DOWNLOAD_ERROR_")]


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