From: Rico Tzschichholz Date: Sun, 4 Aug 2019 07:59:41 +0000 (+0200) Subject: vapi: Update GIR-based bindings X-Git-Tag: 0.45.90~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca5d2b7a0befc137f3bf7946f2cf719ea91fe027;p=thirdparty%2Fvala.git vapi: Update GIR-based bindings --- diff --git a/vapi/atspi-2.vapi b/vapi/atspi-2.vapi index 2889ccb47..b8b010459 100644 --- a/vapi/atspi-2.vapi +++ b/vapi/atspi-2.vapi @@ -77,6 +77,19 @@ namespace Atspi { public void set_cache_mask (Atspi.Cache mask); public virtual signal void region_changed (int current_offset, int last_offset); } + [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_application_get_type ()")] + public class Application : GLib.Object { + public weak string atspi_version; + public weak string bus_name; + public Atspi.Cache cache; + public weak GLib.HashTable hash; + public void* root; + public void* time_added; + public weak string toolkit_name; + public weak string toolkit_version; + [CCode (has_construct_function = false)] + protected Application (); + } [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_device_listener_get_type ()")] public class DeviceListener : GLib.Object { public weak GLib.List callbacks; @@ -157,7 +170,7 @@ namespace Atspi { } [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_object_get_type ()")] public class Object : GLib.Object { - public Atspi.Application app; + public weak Atspi.Application app; public weak string path; [CCode (has_construct_function = false)] protected Object (); @@ -382,22 +395,6 @@ namespace Atspi { public double get_minimum_value () throws GLib.Error; public bool set_current_value (double new_value) throws GLib.Error; } - [CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)] - public struct Application { - public weak GLib.Object parent; - public weak GLib.HashTable hash; - public weak string bus_name; - public void* root; - public Atspi.Cache cache; - public weak string toolkit_name; - public weak string toolkit_version; - public weak string atspi_version; - public void* time_added; - } - [CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)] - public struct ApplicationClass { - public weak GLib.ObjectClass parent_class; - } [CCode (cheader_filename = "atspi/atspi.h")] [SimpleType] public struct ControllerEventMask : uint { diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 2494bcfe8..2aa6db449 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -1286,6 +1286,9 @@ namespace GLib { public bool get_is_backup (); public bool get_is_hidden (); public bool get_is_symlink (); + [Version (since = "2.62")] + public GLib.DateTime? get_modification_date_time (); + [Version (deprecated = true, deprecated_since = "2.62")] public GLib.TimeVal get_modification_time (); public unowned string get_name (); public int64 get_size (); @@ -1319,6 +1322,9 @@ namespace GLib { public void set_icon (GLib.Icon icon); public void set_is_hidden (bool is_hidden); public void set_is_symlink (bool is_symlink); + [Version (since = "2.62")] + public void set_modification_date_time (GLib.DateTime mtime); + [Version (deprecated = true, deprecated_since = "2.62")] public void set_modification_time (GLib.TimeVal mtime); public void set_name (string name); public void set_size (int64 size); diff --git a/vapi/gst-editing-services-1.0.vapi b/vapi/gst-editing-services-1.0.vapi index 9d8aa0cb8..2f9f22878 100644 --- a/vapi/gst-editing-services-1.0.vapi +++ b/vapi/gst-editing-services-1.0.vapi @@ -178,7 +178,7 @@ namespace GES { public static unowned GES.Asset get_default (); public virtual bool load_from_uri (GES.Timeline timeline, string uri) throws GLib.Error; [CCode (cname = "ges_formatter_class_register_metas")] - public class void register_metas (string name, string description, string extension, string mimetype, double version, Gst.Rank rank); + public class void register_metas (string name, string description, string extensions, string caps, double version, Gst.Rank rank); public virtual bool save_to_uri (GES.Timeline timeline, string uri, bool overwrite) throws GLib.Error; } [CCode (cheader_filename = "ges/ges.h", type_id = "ges_group_get_type ()")] @@ -295,6 +295,8 @@ namespace GES { public Project (string? uri); public bool add_asset (GES.Asset asset); public bool add_encoding_profile (Gst.PbUtils.EncodingProfile profile); + [Version (since = "1.18")] + public void add_formatter (GES.Formatter formatter); public bool create_asset (string? id, GLib.Type extractable_type); public GES.Asset? create_asset_sync (string? id, GLib.Type extractable_type) throws GLib.Error; public GES.Asset? get_asset (string id, GLib.Type extractable_type); @@ -312,6 +314,8 @@ namespace GES { [Version (since = "1.8")] public virtual signal void asset_loading (GES.Asset asset); public virtual signal void asset_removed (GES.Asset asset); + [Version (since = "1.18")] + public signal void error_loading (GES.Timeline timeline, GLib.Error error); public signal void error_loading_asset (GLib.Error error, string id, GLib.Type extractable_type); public virtual signal void loaded (GES.Timeline timeline); [Version (since = "1.18")] @@ -598,6 +602,8 @@ namespace GES { public unowned Gst.Caps get_caps (); public GLib.List get_elements (); public bool get_mixing (); + [Version (since = "1.18")] + public Gst.Caps get_restriction_caps (); public unowned GES.Timeline? get_timeline (); public bool remove_element (GES.TrackElement object); public void set_mixing (bool mixing); @@ -610,7 +616,6 @@ namespace GES { [NoAccessorMethod] public string id { owned get; set; } public bool mixing { get; set construct; } - [NoAccessorMethod] public Gst.Caps restriction_caps { owned get; set; } [NoAccessorMethod] public GES.TrackType track_type { get; construct; } @@ -701,6 +706,8 @@ namespace GES { public static GES.UriClipAsset finish (GLib.AsyncResult res) throws GLib.Error; public Gst.ClockTime get_duration (); public unowned Gst.PbUtils.DiscovererInfo get_info (); + [Version (since = "1.18")] + public Gst.ClockTime get_max_duration (); public unowned GLib.List get_stream_assets (); public bool is_image (); [CCode (cname = "ges_uri_clip_asset_request_sync", has_construct_function = false)] @@ -709,6 +716,8 @@ namespace GES { public class void set_timeout (Gst.ClockTime timeout); [NoAccessorMethod] public uint64 duration { get; set; } + [NoAccessorMethod] + public bool is_nested_timeline { get; } } [CCode (cheader_filename = "ges/ges.h", type_id = "ges_uri_source_asset_get_type ()")] public class UriSourceAsset : GES.TrackElementAsset, GES.MetaContainer, GLib.AsyncInitable, GLib.Initable { @@ -1058,6 +1067,9 @@ namespace GES { [CCode (cheader_filename = "ges/ges.h")] public static void deinit (); [CCode (cheader_filename = "ges/ges.h")] + [Version (since = "1.18")] + public static unowned GES.Asset find_formatter_for_uri (string uri); + [CCode (cheader_filename = "ges/ges.h")] public static bool init (); [CCode (cheader_filename = "ges/ges.h")] public static bool init_check ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] ref string[]? argv) throws GLib.Error; diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index b67e22be6..178a12071 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -7322,7 +7322,7 @@ namespace Gtk { public bool show_editor { get; set; } } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_color_chooser_widget_get_type ()")] - public class ColorChooserWidget : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.ColorChooser, Gtk.ConstraintTarget, Gtk.Orientable { + public class ColorChooserWidget : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ColorChooser, Gtk.ConstraintTarget { [CCode (has_construct_function = false, type = "GtkWidget*")] public ColorChooserWidget (); [NoAccessorMethod] @@ -7390,7 +7390,7 @@ namespace Gtk { public ComboBoxText (); public void append (string? id, string text); public void append_text (string text); - public string get_active_text (); + public string? get_active_text (); public void insert (int position, string? id, string text); public void insert_text (int position, string text); public void prepend (string? id, string text); diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi index 410d48e9a..f2c5a166e 100644 --- a/vapi/libsoup-2.4.vapi +++ b/vapi/libsoup-2.4.vapi @@ -825,6 +825,8 @@ namespace Soup { [Version (since = "2.50")] public void add_early_handler (string? path, owned Soup.ServerCallback callback); public void add_handler (string? path, owned Soup.ServerCallback callback); + [Version (since = "2.68")] + public void add_websocket_extension (GLib.Type extension_type); public void add_websocket_handler (string? path, string? origin, [CCode (array_length = false, array_null_terminated = true)] string[]? protocols, owned Soup.ServerWebsocketCallback callback); public void disconnect (); [Version (deprecated = true)] @@ -852,6 +854,8 @@ namespace Soup { public void quit (); public void remove_auth_domain (Soup.AuthDomain auth_domain); public void remove_handler (string path); + [Version (since = "2.68")] + public void remove_websocket_extension (GLib.Type extension_type); [Version (deprecated = true)] public void run (); [Version (deprecated = true)] @@ -1163,6 +1167,8 @@ namespace Soup { public ushort get_close_code (); public unowned string get_close_data (); public Soup.WebsocketConnectionType get_connection_type (); + [Version (since = "2.68")] + public unowned GLib.List get_extensions (); public unowned GLib.IOStream get_io_stream (); [Version (since = "2.58")] public uint get_keepalive_interval (); @@ -1180,7 +1186,12 @@ namespace Soup { public void set_keepalive_interval (uint interval); [Version (since = "2.56")] public void set_max_incoming_payload_size (uint64 max_incoming_payload_size); + [CCode (has_construct_function = false)] + [Version (since = "2.68")] + public WebsocketConnection.with_extensions (GLib.IOStream stream, Soup.URI uri, Soup.WebsocketConnectionType type, string? origin, string? protocol, owned GLib.List extensions); public Soup.WebsocketConnectionType connection_type { get; construct; } + [Version (since = "2.68")] + public void* extensions { get; construct; } public GLib.IOStream io_stream { get; construct; } [Version (since = "2.58")] public uint keepalive_interval { get; set construct; } @@ -1197,6 +1208,30 @@ namespace Soup { [Version (since = "2.60")] public virtual signal void pong (GLib.Bytes message); } + [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_websocket_extension_get_type ()")] + public abstract class WebsocketExtension : GLib.Object { + [CCode (has_construct_function = false)] + protected WebsocketExtension (); + public virtual bool configure (Soup.WebsocketConnectionType connection_type, GLib.HashTable? @params) throws GLib.Error; + [Version (since = "2.68")] + public virtual string? get_request_params (); + [Version (since = "2.68")] + public virtual string? get_response_params (); + [Version (since = "2.68")] + public virtual GLib.Bytes process_incoming_message (ref uint8 header, owned GLib.Bytes payload) throws GLib.Error; + [Version (since = "2.68")] + public virtual GLib.Bytes process_outgoing_message (ref uint8 header, owned GLib.Bytes payload) throws GLib.Error; + } + [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_websocket_extension_deflate_get_type ()")] + public class WebsocketExtensionDeflate : Soup.WebsocketExtension { + [CCode (has_construct_function = false)] + protected WebsocketExtensionDeflate (); + } + [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_websocket_extension_manager_get_type ()")] + public class WebsocketExtensionManager : GLib.Object, Soup.SessionFeature { + [CCode (has_construct_function = false)] + protected WebsocketExtensionManager (); + } [CCode (cheader_filename = "libsoup/soup.h", has_type_id = false)] [Compact] [Version (since = "2.52")] @@ -2014,12 +2049,24 @@ namespace Soup { [Version (since = "2.50")] public static void websocket_client_prepare_handshake (Soup.Message msg, string? origin, [CCode (array_length = false, array_null_terminated = true)] string[]? protocols); [CCode (cheader_filename = "libsoup/soup.h")] + [Version (since = "2.68")] + public static void websocket_client_prepare_handshake_with_extensions (Soup.Message msg, string? origin, [CCode (array_length = false, array_null_terminated = true)] string[]? protocols, GLib.GenericArray? supported_extensions); + [CCode (cheader_filename = "libsoup/soup.h")] [Version (since = "2.50")] public static bool websocket_client_verify_handshake (Soup.Message msg) throws GLib.Error; [CCode (cheader_filename = "libsoup/soup.h")] + [Version (since = "2.68")] + public static bool websocket_client_verify_handshake_with_extensions (Soup.Message msg, GLib.GenericArray? supported_extensions, out GLib.List accepted_extensions) throws GLib.Error; + [CCode (cheader_filename = "libsoup/soup.h")] [Version (since = "2.50")] public static bool websocket_server_check_handshake (Soup.Message msg, string? origin, [CCode (array_length = false, array_null_terminated = true)] string[]? protocols) throws GLib.Error; [CCode (cheader_filename = "libsoup/soup.h")] + [Version (since = "2.68")] + public static bool websocket_server_check_handshake_with_extensions (Soup.Message msg, string? origin, [CCode (array_length = false, array_null_terminated = true)] string[]? protocols, GLib.GenericArray? supported_extensions) throws GLib.Error; + [CCode (cheader_filename = "libsoup/soup.h")] [Version (since = "2.50")] public static bool websocket_server_process_handshake (Soup.Message msg, string? expected_origin, [CCode (array_length = false, array_null_terminated = true)] string[]? protocols); + [CCode (cheader_filename = "libsoup/soup.h")] + [Version (since = "2.68")] + public static bool websocket_server_process_handshake_with_extensions (Soup.Message msg, string? expected_origin, [CCode (array_length = false, array_null_terminated = true)] string[]? protocols, GLib.GenericArray? supported_extensions, out GLib.List accepted_extensions); } diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi index 45d6ac666..cdd8def35 100644 --- a/vapi/webkit2gtk-4.0.vapi +++ b/vapi/webkit2gtk-4.0.vapi @@ -1335,7 +1335,7 @@ namespace WebKit { public unowned string? get_local_storage_directory (); [Version (since = "2.10")] public unowned string? get_offline_application_cache_directory (); - [Version (since = "2.10")] + [Version (deprecated = true, deprecated_since = "2.24.", since = "2.10")] public unowned string? get_websql_directory (); [Version (since = "2.16")] public async bool remove (WebKit.WebsiteDataTypes types, GLib.List website_data, GLib.Cancellable? cancellable = null) throws GLib.Error; @@ -1354,7 +1354,7 @@ namespace WebKit { public string local_storage_directory { get; construct; } [Version (since = "2.10")] public string offline_application_cache_directory { get; construct; } - [Version (since = "2.10")] + [Version (deprecated = true, deprecated_since = "2.24.", since = "2.10")] public string websql_directory { get; construct; } } [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_window_properties_get_type ()")]