From 665d2a801a33bb44b7f3246bc9bae4ce999684ea Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Wed, 1 Feb 2017 19:40:43 +0100 Subject: vapi: Update GIR-based bindings --- vapi/geocode-glib-1.0.vapi | 5 +++ vapi/gstreamer-audio-1.0.vapi | 5 ++- vapi/gstreamer-check-1.0.vapi | 14 ++++++++ vapi/libgdata.vapi | 1 + vapi/webkit2gtk-4.0.vapi | 78 +++++++++++++++++++++++++++++++++++++++---- 5 files changed, 95 insertions(+), 8 deletions(-) diff --git a/vapi/geocode-glib-1.0.vapi b/vapi/geocode-glib-1.0.vapi index d4dd698be..8de842105 100644 --- a/vapi/geocode-glib-1.0.vapi +++ b/vapi/geocode-glib-1.0.vapi @@ -20,6 +20,7 @@ namespace Geocode { public class BoundingBox : GLib.Object { [CCode (has_construct_function = false)] public BoundingBox (double top, double bottom, double left, double right); + [Version (since = "3.23.1")] public bool equal (Geocode.BoundingBox b); public double get_bottom (); public double get_left (); @@ -56,6 +57,7 @@ namespace Geocode { public class Location : GLib.Object { [CCode (has_construct_function = false)] public Location (double latitude, double longitude, double accuracy = LocationAccuracy.UNKNOWN); + [Version (since = "3.23.1")] public bool equal (Geocode.Location b); public double get_accuracy (); public double get_altitude (); @@ -83,6 +85,7 @@ namespace Geocode { public uint64 timestamp { get; construct; } } [CCode (cheader_filename = "geocode-glib/geocode-glib.h", type_id = "geocode_mock_backend_get_type ()")] + [Version (since = "3.23.1")] public class MockBackend : GLib.Object, Geocode.Backend { [CCode (has_construct_function = false)] public MockBackend (); @@ -112,6 +115,7 @@ namespace Geocode { public class Place : GLib.Object { [CCode (has_construct_function = false)] public Place (string name, Geocode.PlaceType place_type); + [Version (since = "3.23.1")] public bool equal (Geocode.Place b); public unowned string get_administrative_area (); public unowned string get_area (); @@ -191,6 +195,7 @@ namespace Geocode { public abstract async GLib.List reverse_resolve_async (GLib.HashTable @params, GLib.Cancellable? cancellable) throws GLib.Error; } [CCode (cheader_filename = "geocode-glib/geocode-glib.h", has_type_id = false)] + [Version (since = "3.23.1")] public struct MockBackendQuery { public weak GLib.HashTable @params; public bool is_forward; diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi index 19438a205..322ed6bcd 100644 --- a/vapi/gstreamer-audio-1.0.vapi +++ b/vapi/gstreamer-audio-1.0.vapi @@ -735,7 +735,10 @@ namespace Gst { EAC3, DTS, MPEG2_AAC, - MPEG4_AAC + MPEG4_AAC, + MPEG2_AAC_RAW, + MPEG4_AAC_RAW, + FLAC } [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_RING_BUFFER_STATE_", type_id = "gst_audio_ring_buffer_state_get_type ()")] [GIR (name = "AudioRingBufferState")] diff --git a/vapi/gstreamer-check-1.0.vapi b/vapi/gstreamer-check-1.0.vapi index d8c461c0a..87d404892 100644 --- a/vapi/gstreamer-check-1.0.vapi +++ b/vapi/gstreamer-check-1.0.vapi @@ -9,6 +9,11 @@ namespace Gst { [Version (since = "1.6")] public class HarnessThread { } + [CCode (cheader_filename = "gst/check/check.h", has_type_id = false)] + [Compact] + [GIR (name = "CheckLogFilter")] + public class LogFilter { + } [CCode (cheader_filename = "gst/check/gstbufferstraw.h,gst/check/gstcheck.h,gst/check/gstconsistencychecker.h,gst/check/internal-check.h", cname = "GstStreamConsistency", has_type_id = false, lower_case_cprefix = "gst_consistency_checker_")] [Compact] [GIR (name = "StreamConsistency")] @@ -182,6 +187,9 @@ namespace Gst { [CCode (cheader_filename = "gst/check/check.h", cname = "GstHarnessPrepareEventFunc", has_target = false)] [Version (since = "1.8")] public delegate Gst.Event HarnessPrepareEventFunc (Gst.Check.Harness h, void* data); + [CCode (cheader_filename = "gst/check/check.h", instance_pos = 3.9)] + [Version (since = "1.12")] + public delegate bool LogFilterFunc (string log_domain, GLib.LogLevelFlags log_level, string message); [CCode (cheader_filename = "gst/check/check.h")] public static void abi_list (Gst.Check.ABIStruct list, bool have_abi_sizes); [CCode (cheader_filename = "gst/check/check.h")] @@ -197,6 +205,9 @@ namespace Gst { [CCode (cheader_filename = "gst/check/check.h")] public static Gst.FlowReturn chain_func (Gst.Pad pad, Gst.Object parent, Gst.Buffer buffer); [CCode (cheader_filename = "gst/check/check.h")] + [Version (since = "1.12")] + public static void clear_log_filter (); + [CCode (cheader_filename = "gst/check/check.h")] public static void drop_buffers (); [CCode (cheader_filename = "gst/check/check.h")] public static void element_push_buffer (string element_name, Gst.Buffer buffer_in, Gst.Caps caps_in, Gst.Buffer buffer_out, Gst.Caps caps_out); @@ -213,6 +224,9 @@ namespace Gst { [Version (since = "1.6")] public static void object_destroyed_on_unref (void* object_to_unref); [CCode (cheader_filename = "gst/check/check.h")] + [Version (since = "1.12")] + public static void remove_log_filter (Gst.Check.LogFilter filter); + [CCode (cheader_filename = "gst/check/check.h")] public static Gst.Element setup_element (string factory); [CCode (cheader_filename = "gst/check/check.h")] public static void setup_events (Gst.Pad srcpad, Gst.Element element, Gst.Caps? caps, Gst.Format format); diff --git a/vapi/libgdata.vapi b/vapi/libgdata.vapi index e38231a60..45759f0e7 100644 --- a/vapi/libgdata.vapi +++ b/vapi/libgdata.vapi @@ -1893,6 +1893,7 @@ namespace GData { [CCode (has_construct_function = false)] [Version (since = "0.4.0")] public Parsable.from_xml (GLib.Type parsable_type, string xml, int length) throws GLib.Error; + public unowned string get_content_type (); [NoWrapper] public virtual void get_json (Json.Builder builder); [CCode (cname = "gdata_parsable_get_json")] diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi index 1d390df01..f3934de9c 100644 --- a/vapi/webkit2gtk-4.0.vapi +++ b/vapi/webkit2gtk-4.0.vapi @@ -510,6 +510,7 @@ namespace WebKit { public bool get_enable_offline_web_application_cache (); public bool get_enable_page_cache (); public bool get_enable_plugins (); + [Version (deprecated = true, deprecated_since = "2.16.")] public bool get_enable_private_browsing (); public bool get_enable_resizable_text_areas (); public bool get_enable_site_specific_quirks (); @@ -523,6 +524,8 @@ namespace WebKit { public bool get_enable_write_console_messages_to_stdout (); public bool get_enable_xss_auditor (); public unowned string get_fantasy_font_family (); + [Version (since = "2.16")] + public WebKit.HardwareAccelerationPolicy get_hardware_acceleration_policy (); public bool get_javascript_can_access_clipboard (); public bool get_javascript_can_open_windows_automatically (); public bool get_load_icons_ignoring_image_load_setting (); @@ -567,6 +570,7 @@ namespace WebKit { public void set_enable_offline_web_application_cache (bool enabled); public void set_enable_page_cache (bool enabled); public void set_enable_plugins (bool enabled); + [Version (deprecated = true, deprecated_since = "2.16.")] public void set_enable_private_browsing (bool enabled); public void set_enable_resizable_text_areas (bool enabled); public void set_enable_site_specific_quirks (bool enabled); @@ -580,6 +584,8 @@ namespace WebKit { public void set_enable_write_console_messages_to_stdout (bool enabled); public void set_enable_xss_auditor (bool enabled); public void set_fantasy_font_family (string fantasy_font_family); + [Version (since = "2.16")] + public void set_hardware_acceleration_policy (WebKit.HardwareAccelerationPolicy policy); public void set_javascript_can_access_clipboard (bool enabled); public void set_javascript_can_open_windows_automatically (bool enabled); public void set_load_icons_ignoring_image_load_setting (bool enabled); @@ -625,6 +631,7 @@ namespace WebKit { public bool enable_offline_web_application_cache { get; set construct; } public bool enable_page_cache { get; set construct; } public bool enable_plugins { get; set construct; } + [Version (deprecated = true, deprecated_since = "2.16.")] public bool enable_private_browsing { get; set construct; } public bool enable_resizable_text_areas { get; set construct; } public bool enable_site_specific_quirks { get; set construct; } @@ -638,6 +645,8 @@ namespace WebKit { public bool enable_write_console_messages_to_stdout { get; set construct; } public bool enable_xss_auditor { get; set construct; } public string fantasy_font_family { get; set construct; } + [Version (since = "2.16")] + public WebKit.HardwareAccelerationPolicy hardware_acceleration_policy { get; set construct; } public bool javascript_can_access_clipboard { get; set construct; } public bool javascript_can_open_windows_automatically { get; set construct; } public bool load_icons_ignoring_image_load_setting { get; set construct; } @@ -754,6 +763,9 @@ namespace WebKit { public void allow_tls_certificate_for_host (GLib.TlsCertificate certificate, string host); public void clear_cache (); public WebKit.Download download_uri (string uri); + [CCode (has_construct_function = false)] + [Version (since = "2.16")] + public WebContext.ephemeral (); public WebKit.CacheModel get_cache_model (); public unowned WebKit.CookieManager get_cookie_manager (); public static unowned WebKit.WebContext get_default (); @@ -771,6 +783,8 @@ namespace WebKit { public uint get_web_process_count_limit (); [Version (since = "2.10")] public unowned WebKit.WebsiteDataManager get_website_data_manager (); + [Version (since = "2.16")] + public bool is_ephemeral (); public void prefetch_dns (string hostname); public void register_uri_scheme (string scheme, owned WebKit.URISchemeRequestCallback callback); public void set_additional_plugins_directory (string directory); @@ -927,6 +941,9 @@ namespace WebKit { public double estimated_load_progress { get; } public void* favicon { get; } [NoAccessorMethod] + [Version (since = "2.16")] + public bool is_ephemeral { get; construct; } + [NoAccessorMethod] public bool is_loading { get; } [NoAccessorMethod] [Version (since = "2.8")] @@ -989,24 +1006,47 @@ namespace WebKit { [Version (since = "2.12")] public void unref (); } + [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_website_data_ref", type_id = "webkit_website_data_get_type ()", unref_function = "webkit_website_data_unref")] + [Compact] + public class WebsiteData { + [Version (since = "2.16")] + public unowned string get_name (); + [Version (since = "2.16")] + public uint64 get_size (WebKit.WebsiteDataTypes types); + [Version (since = "2.16")] + public WebKit.WebsiteDataTypes get_types (); + [Version (since = "2.16")] + public unowned WebKit.WebsiteData @ref (); + [Version (since = "2.16")] + public void unref (); + } [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_website_data_manager_get_type ()")] public class WebsiteDataManager : GLib.Object { [CCode (has_construct_function = false)] protected WebsiteDataManager (); + [Version (since = "2.16")] + public async bool clear (WebKit.WebsiteDataTypes types, GLib.TimeSpan timespan, GLib.Cancellable? cancellable) throws GLib.Error; + [CCode (has_construct_function = false)] + [Version (since = "2.16")] + public WebsiteDataManager.ephemeral (); + [Version (since = "2.16")] + public async GLib.List fetch (WebKit.WebsiteDataTypes types, GLib.Cancellable? cancellable) throws GLib.Error; [Version (since = "2.10")] - public unowned string get_base_cache_directory (); + public unowned string? get_base_cache_directory (); [Version (since = "2.10")] - public unowned string get_base_data_directory (); + public unowned string? get_base_data_directory (); [Version (since = "2.10")] - public unowned string get_disk_cache_directory (); + public unowned string? get_disk_cache_directory (); [Version (since = "2.10")] - public unowned string get_indexeddb_directory (); + public unowned string? get_indexeddb_directory (); [Version (since = "2.10")] - public unowned string get_local_storage_directory (); + public unowned string? get_local_storage_directory (); [Version (since = "2.10")] - public unowned string get_offline_application_cache_directory (); + public unowned string? get_offline_application_cache_directory (); [Version (since = "2.10")] - public unowned string get_websql_directory (); + public unowned string? get_websql_directory (); + [Version (since = "2.16")] + public async bool remove (WebKit.WebsiteDataTypes types, GLib.List website_data, GLib.Cancellable? cancellable) throws GLib.Error; [Version (since = "2.10")] public string base_cache_directory { get; construct; } [Version (since = "2.10")] @@ -1015,6 +1055,9 @@ namespace WebKit { public string disk_cache_directory { get; construct; } [Version (since = "2.10")] public string indexeddb_directory { get; construct; } + [NoAccessorMethod] + [Version (since = "2.16")] + public bool is_ephemeral { get; construct; } [Version (since = "2.10")] public string local_storage_directory { get; construct; } [Version (since = "2.10")] @@ -1153,6 +1196,13 @@ namespace WebKit { BACKWARDS, WRAP_AROUND } + [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_HARDWARE_ACCELERATION_POLICY_", type_id = "webkit_hardware_acceleration_policy_get_type ()")] + [Version (since = "2.16")] + public enum HardwareAccelerationPolicy { + ON_DEMAND, + ALWAYS, + NEVER + } [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_HIT_TEST_RESULT_CONTEXT_", type_id = "webkit_hit_test_result_context_get_type ()")] [Flags] public enum HitTestResultContext { @@ -1255,6 +1305,20 @@ namespace WebKit { USER, AUTHOR } + [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_WEBSITE_DATA_", type_id = "webkit_website_data_types_get_type ()")] + [Flags] + [Version (since = "2.16")] + public enum WebsiteDataTypes { + MEMORY_CACHE, + DISK_CACHE, + OFFLINE_APPLICATION_CACHE, + SESSION_STORAGE, + LOCAL_STORAGE, + WEBSQL_DATABASES, + INDEXEDDB_DATABASES, + PLUGIN_DATA, + ALL + } [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_DOWNLOAD_ERROR_")] public errordomain DownloadError { NETWORK, -- cgit v1.2.1