[vala] vapi: Update GIR-based bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] vapi: Update GIR-based bindings
- Date: Sat, 25 Feb 2017 16:37:59 +0000 (UTC)
commit e5360061300b784c7474bceedd7fcbe7dffdf0b9
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Feb 25 17:37:18 2017 +0100
vapi: Update GIR-based bindings
vapi/gstreamer-1.0.vapi | 14 ++++++++++++++
vapi/gstreamer-video-1.0.vapi | 7 +++++++
vapi/libgdata.vapi | 2 ++
vapi/webkit2gtk-4.0.vapi | 32 ++++++++++++++++++++++++++++++--
4 files changed, 53 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index ccda643..1cd3542 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -1775,6 +1775,8 @@ namespace Gst {
public Gst.Stream? get_stream ();
[Version (since = "1.2")]
public string? get_stream_id ();
+ [Version (since = "1.12")]
+ public Gst.TaskState get_task_state ();
public bool has_current_caps ();
public bool is_active ();
public bool is_blocked ();
@@ -1871,6 +1873,11 @@ namespace Gst {
[HasEmitter]
public virtual signal void pad_created (Gst.Pad pad);
}
+ [CCode (cheader_filename = "gst/gst.h", lower_case_csuffix = "param_spec_array", type_id =
"gst_param_spec_array_get_type ()")]
+ public class ParamArray : GLib.ParamSpec {
+ [CCode (has_construct_function = false)]
+ protected ParamArray ();
+ }
[CCode (cheader_filename = "gst/gst.h", lower_case_csuffix = "param_spec_fraction", type_id =
"gst_param_spec_fraction_get_type ()")]
public class ParamFraction : GLib.ParamSpec {
[CCode (has_construct_function = false)]
@@ -2740,6 +2747,11 @@ namespace Gst {
public unowned Gst.Query get_query ();
}
[CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
+ public struct ParamSpecArray {
+ public weak GLib.ParamSpec parent_instance;
+ public weak GLib.ParamSpec element_spec;
+ }
+ [CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
public struct ParamSpecFraction {
public weak GLib.ParamSpec parent_instance;
public int min_num;
@@ -3911,6 +3923,8 @@ namespace Gst {
[CCode (cheader_filename = "gst/gst.h")]
public static bool is_initialized ();
[CCode (cheader_filename = "gst/gst.h")]
+ public static GLib.ParamSpec param_spec_array (string name, string nick, string blurb, GLib.ParamSpec
element_spec, GLib.ParamFlags flags);
+ [CCode (cheader_filename = "gst/gst.h")]
public static GLib.ParamSpec param_spec_fraction (string name, string nick, string blurb, int
min_num, int min_denom, int max_num, int max_denom, int default_num, int default_denom, GLib.ParamFlags
flags);
[CCode (cheader_filename = "gst/gst.h", cname = "gst_parse_bin_from_description_full",
returns_floating_reference = true)]
public static Gst.Element parse_bin_from_description (string bin_description, bool
ghost_unlinked_pads, Gst.ParseContext? context = null, Gst.ParseFlags flags = Gst.ParseFlags.NONE) throws
GLib.Error;
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index a113444..12ff1c9 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -368,9 +368,14 @@ namespace Gst {
public void free ();
[CCode (has_construct_function = false)]
[Version (since = "1.12")]
+ public TimeCode.from_date_time (uint fps_n, uint fps_d, GLib.DateTime dt,
Gst.Video.TimeCodeFlags flags, uint field_count);
+ [CCode (has_construct_function = false)]
+ [Version (since = "1.12")]
public TimeCode.from_string (string tc_str);
public void increment_frame ();
public void init (uint fps_n, uint fps_d, GLib.DateTime latest_daily_jam,
Gst.Video.TimeCodeFlags flags, uint hours, uint minutes, uint seconds, uint frames, uint field_count);
+ [Version (since = "1.12")]
+ public void init_from_date_time (uint fps_n, uint fps_d, GLib.DateTime dt,
Gst.Video.TimeCodeFlags flags, uint field_count);
public bool is_valid ();
public uint64 nsec_since_daily_jam ();
public GLib.DateTime to_date_time ();
@@ -1238,6 +1243,8 @@ namespace Gst {
public const string CONVERTER_OPT_SRC_X;
[CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_SRC_Y")]
public const string CONVERTER_OPT_SRC_Y;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_THREADS")]
+ public const string CONVERTER_OPT_THREADS;
[CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_DECODER_MAX_ERRORS")]
public const int DECODER_MAX_ERRORS;
[CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_DECODER_SINK_NAME")]
diff --git a/vapi/libgdata.vapi b/vapi/libgdata.vapi
index 45759f0..11d939d 100644
--- a/vapi/libgdata.vapi
+++ b/vapi/libgdata.vapi
@@ -988,6 +988,7 @@ namespace GData {
public uint get_items_per_page ();
public unowned GLib.List<GData.Link> get_links ();
public unowned string get_logo ();
+ public unowned string? get_next_page_token ();
[Version (since = "0.7.0")]
public unowned string get_rights ();
public uint get_start_index ();
@@ -1007,6 +1008,7 @@ namespace GData {
public string id { get; }
public uint items_per_page { get; }
public string logo { get; }
+ public string next_page_token { get; }
[Version (since = "0.7.0")]
public string rights { get; }
public uint start_index { get; }
diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi
index f3934de..df78fa3 100644
--- a/vapi/webkit2gtk-4.0.vapi
+++ b/vapi/webkit2gtk-4.0.vapi
@@ -114,10 +114,13 @@ namespace WebKit {
public class CookieManager : GLib.Object {
[CCode (has_construct_function = false)]
protected CookieManager ();
+ [Version (deprecated = true, deprecated_since = "2.16")]
public void delete_all_cookies ();
+ [Version (deprecated = true, deprecated_since = "2.16")]
public void delete_cookies_for_domain (string domain);
public async WebKit.CookieAcceptPolicy get_accept_policy (GLib.Cancellable? cancellable)
throws GLib.Error;
[CCode (array_length = false, array_null_terminated = true)]
+ [Version (deprecated = true, deprecated_since = "2.16")]
public async string[] get_domains_with_cookies (GLib.Cancellable? cancellable) throws
GLib.Error;
public void set_accept_policy (WebKit.CookieAcceptPolicy policy);
public void set_persistent_storage (string filename, WebKit.CookiePersistentStorage storage);
@@ -397,6 +400,24 @@ namespace WebKit {
public void ignore ();
public void use ();
}
+ [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_print_custom_widget_get_type ()")]
+ public class PrintCustomWidget : GLib.Object {
+ [CCode (has_construct_function = false)]
+ [Version (since = "2.16")]
+ public PrintCustomWidget (Gtk.Widget widget, string title);
+ [Version (since = "2.16")]
+ public unowned string get_title ();
+ [Version (since = "2.16")]
+ public unowned Gtk.Widget get_widget ();
+ [Version (since = "2.16")]
+ public string title { get; construct; }
+ [Version (since = "2.16")]
+ public Gtk.Widget widget { get; construct; }
+ [Version (since = "2.16")]
+ public virtual signal void apply ();
+ [Version (since = "2.16")]
+ public virtual signal void update (Gtk.PageSetup widget, Gtk.PrintSettings page_setup);
+ }
[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_print_operation_get_type ()")]
public class PrintOperation : GLib.Object {
[CCode (has_construct_function = false)]
@@ -411,6 +432,8 @@ namespace WebKit {
public Gtk.PrintSettings print_settings { get; set; }
[NoAccessorMethod]
public WebKit.WebView web_view { owned get; construct; }
+ [Version (since = "2.16")]
+ public signal WebKit.PrintCustomWidget create_custom_widget ();
public signal void failed (WebKit.PrintError error);
public signal void finished ();
}
@@ -465,7 +488,7 @@ namespace WebKit {
[Version (since = "2.16")]
public uint16 get_port ();
[Version (since = "2.16")]
- public unowned string get_protocol ();
+ public unowned string? get_protocol ();
[Version (since = "2.16")]
public bool is_opaque ();
[Version (since = "2.16")]
@@ -636,7 +659,7 @@ namespace WebKit {
public bool enable_resizable_text_areas { get; set construct; }
public bool enable_site_specific_quirks { get; set construct; }
public bool enable_smooth_scrolling { get; set construct; }
- [Version (since = "2.3")]
+ [Version (since = "2.4")]
public bool enable_spatial_navigation { get; set construct; }
public bool enable_tabs_to_links { get; set construct; }
public bool enable_webaudio { get; set construct; }
@@ -894,6 +917,8 @@ namespace WebKit {
public unowned string get_uri ();
[Version (since = "2.6")]
public unowned WebKit.UserContentManager get_user_content_manager ();
+ [Version (since = "2.16")]
+ public unowned WebKit.WebsiteDataManager get_website_data_manager ();
public unowned WebKit.WindowProperties get_window_properties ();
public double get_zoom_level ();
public void go_back ();
@@ -1035,6 +1060,8 @@ namespace WebKit {
public unowned string? get_base_cache_directory ();
[Version (since = "2.10")]
public unowned string? get_base_data_directory ();
+ [Version (since = "2.16")]
+ public unowned WebKit.CookieManager get_cookie_manager ();
[Version (since = "2.10")]
public unowned string? get_disk_cache_directory ();
[Version (since = "2.10")]
@@ -1317,6 +1344,7 @@ namespace WebKit {
WEBSQL_DATABASES,
INDEXEDDB_DATABASES,
PLUGIN_DATA,
+ COOKIES,
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]