[vala/staging] vapi: Update GIR-based bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vapi: Update GIR-based bindings
- Date: Mon, 28 Sep 2020 08:32:59 +0000 (UTC)
commit 110fcfa4222496636cf84dc461640bef416621b7
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Sep 28 10:32:00 2020 +0200
vapi: Update GIR-based bindings
vapi/gtk+-3.0.vapi | 2 +-
vapi/gudev-1.0.vapi | 8 ++++++++
vapi/harfbuzz-gobject.vapi | 31 +++++++++++++++++++------------
vapi/pango.vapi | 2 ++
4 files changed, 30 insertions(+), 13 deletions(-)
---
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 63485280e..9db2cd808 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -13161,7 +13161,7 @@ namespace Gtk {
[Version (since = "2.6")]
public static void show_about_dialog (Gtk.Window? parent, ...);
[CCode (cheader_filename = "gtk/gtk.h")]
- [Version (since = "2.14")]
+ [Version (deprecated = true, deprecated_since = "3.22", since = "2.14")]
public static bool show_uri (Gdk.Screen? screen, string uri, uint32 timestamp) throws GLib.Error;
[CCode (cheader_filename = "gtk/gtk.h")]
[Version (since = "3.22")]
diff --git a/vapi/gudev-1.0.vapi b/vapi/gudev-1.0.vapi
index b74c611e3..0e6da3b75 100644
--- a/vapi/gudev-1.0.vapi
+++ b/vapi/gudev-1.0.vapi
@@ -47,13 +47,20 @@ namespace GUdev {
public unowned string get_subsystem ();
public unowned string? get_sysfs_attr (string name);
public bool get_sysfs_attr_as_boolean (string name);
+ public bool get_sysfs_attr_as_boolean_uncached (string name);
public double get_sysfs_attr_as_double (string name);
+ public double get_sysfs_attr_as_double_uncached (string name);
public int get_sysfs_attr_as_int (string name);
+ public int get_sysfs_attr_as_int_uncached (string name);
[CCode (array_length = false, array_null_terminated = true)]
public unowned string[]? get_sysfs_attr_as_strv (string name);
+ [CCode (array_length = false, array_null_terminated = true)]
+ public unowned string[]? get_sysfs_attr_as_strv_uncached (string name);
public uint64 get_sysfs_attr_as_uint64 (string name);
+ public uint64 get_sysfs_attr_as_uint64_uncached (string name);
[CCode (array_length = false, array_null_terminated = true)]
public unowned string[] get_sysfs_attr_keys ();
+ public unowned string? get_sysfs_attr_uncached (string name);
public unowned string get_sysfs_path ();
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "165")]
@@ -62,6 +69,7 @@ namespace GUdev {
public uint64 get_usec_since_initialized ();
public bool has_property (string key);
public bool has_sysfs_attr (string key);
+ public bool has_sysfs_attr_uncached (string key);
}
[CCode (cheader_filename = "gudev/gudev.h", type_id = "g_udev_enumerator_get_type ()")]
[Version (since = "165")]
diff --git a/vapi/harfbuzz-gobject.vapi b/vapi/harfbuzz-gobject.vapi
index b83742765..1322c35cd 100644
--- a/vapi/harfbuzz-gobject.vapi
+++ b/vapi/harfbuzz-gobject.vapi
@@ -161,7 +161,7 @@ namespace HarfBuzz {
[Version (since = "0.9.2")]
public static uint get_index (HarfBuzz.Face face);
[Version (since = "1.6.0")]
- public static uint get_table_tags (HarfBuzz.Face face, uint start_offset, uint table_count,
HarfBuzz.Tag table_tags);
+ public static uint get_table_tags (HarfBuzz.Face face, uint start_offset, [CCode
(array_length_cname = "table_count", array_length_pos = 2.5, array_length_type = "guint")] out HarfBuzz.Tag[]
table_tags);
[Version (since = "0.9.2")]
public static uint get_upem (HarfBuzz.Face face);
[Version (since = "0.9.2")]
@@ -498,10 +498,12 @@ namespace HarfBuzz {
public class ShapePlan {
[Version (since = "0.9.7")]
public static HarfBuzz.ShapePlan create (HarfBuzz.Face face, HarfBuzz.SegmentProperties
props, [CCode (array_length_cname = "num_user_features", array_length_pos = 3.5, array_length_type =
"guint")] HarfBuzz.Feature[] user_features, [CCode (array_length = false, array_null_terminated = true)]
string[] shaper_list);
- public static HarfBuzz.ShapePlan create2 (HarfBuzz.Face face, HarfBuzz.SegmentProperties
props, HarfBuzz.Feature user_features, uint num_user_features, int coords, uint num_coords, string
shaper_list);
+ [Version (since = "1.4.0")]
+ public static HarfBuzz.ShapePlan create2 (HarfBuzz.Face face, HarfBuzz.SegmentProperties
props, [CCode (array_length_cname = "num_user_features", array_length_pos = 3.5, array_length_type =
"guint")] HarfBuzz.Feature[] user_features, [CCode (array_length_cname = "num_coords", array_length_pos =
4.5, array_length_type = "guint")] int[] coords, [CCode (array_length = false, array_null_terminated = true)]
string[] shaper_list);
[Version (since = "0.9.7")]
public static HarfBuzz.ShapePlan create_cached (HarfBuzz.Face face,
HarfBuzz.SegmentProperties props, [CCode (array_length_cname = "num_user_features", array_length_pos = 3.5,
array_length_type = "guint")] HarfBuzz.Feature[] user_features, [CCode (array_length = false,
array_null_terminated = true)] string[] shaper_list);
- public static HarfBuzz.ShapePlan create_cached2 (HarfBuzz.Face face,
HarfBuzz.SegmentProperties props, HarfBuzz.Feature user_features, uint num_user_features, int coords, uint
num_coords, string shaper_list);
+ [Version (since = "1.4.0")]
+ public static HarfBuzz.ShapePlan create_cached2 (HarfBuzz.Face face,
HarfBuzz.SegmentProperties props, [CCode (array_length_cname = "num_user_features", array_length_pos = 3.5,
array_length_type = "guint")] HarfBuzz.Feature[] user_features, [CCode (array_length_cname = "num_coords",
array_length_pos = 4.5, array_length_type = "guint")] int[] coords, [CCode (array_length = false,
array_null_terminated = true)] string[] shaper_list);
[Version (since = "0.9.7")]
public static HarfBuzz.Bool execute (HarfBuzz.ShapePlan shape_plan, HarfBuzz.Font font,
HarfBuzz.Buffer buffer, [CCode (array_length_cname = "num_features", array_length_pos = 4.1,
array_length_type = "guint")] HarfBuzz.Feature[] features);
[Version (since = "0.9.7")]
@@ -533,7 +535,8 @@ namespace HarfBuzz {
[CCode (cname = "hb_unicode_general_category")]
[Version (since = "0.9.2")]
public static HarfBuzz.UnicodeGeneralCategory general_category (HarfBuzz.UnicodeFuncs ufuncs,
HarfBuzz.Codepoint unicode);
- public static HarfBuzz.UnicodeFuncs get_default ();
+ [Version (since = "0.9.2")]
+ public static unowned HarfBuzz.UnicodeFuncs get_default ();
[Version (since = "0.9.2")]
public static HarfBuzz.UnicodeFuncs get_empty ();
[Version (since = "0.9.2")]
@@ -1824,7 +1827,7 @@ namespace HarfBuzz {
public static unowned HarfBuzz.OtNameEntry[] ot_name_list_names (HarfBuzz.Face face);
[CCode (cheader_filename = "hb-gobject.h")]
[Version (since = "0.9.2")]
- public static void ot_shape_glyphs_closure (HarfBuzz.Font font, HarfBuzz.Buffer buffer,
HarfBuzz.Feature features, uint num_features, HarfBuzz.Set glyphs);
+ public static void ot_shape_glyphs_closure (HarfBuzz.Font font, HarfBuzz.Buffer buffer, [CCode
(array_length_cname = "num_features", array_length_pos = 3.5, array_length_type = "guint")]
HarfBuzz.Feature[] features, out unowned HarfBuzz.Set glyphs);
[CCode (cheader_filename = "hb-gobject.h")]
public static HarfBuzz.Tag ot_tag_from_language (HarfBuzz.Language language);
[CCode (cheader_filename = "hb-gobject.h")]
@@ -1842,36 +1845,40 @@ namespace HarfBuzz {
public static void ot_tags_to_script_and_language (HarfBuzz.Tag script_tag, HarfBuzz.Tag
language_tag, HarfBuzz.Script? script, HarfBuzz.Language? language);
[CCode (cheader_filename = "hb-gobject.h")]
[Version (deprecated = true, deprecated_since = "2.2.0", since = "1.4.2")]
- public static HarfBuzz.Bool ot_var_find_axis (HarfBuzz.Face face, HarfBuzz.Tag axis_tag, uint
axis_index, HarfBuzz.OtVarAxis axis_info);
+ public static HarfBuzz.Bool ot_var_find_axis (HarfBuzz.Face face, HarfBuzz.Tag axis_tag, uint
axis_index, out HarfBuzz.OtVarAxis axis_info);
[CCode (cheader_filename = "hb-gobject.h")]
[Version (since = "2.2.0")]
- public static HarfBuzz.Bool ot_var_find_axis_info (HarfBuzz.Face face, HarfBuzz.Tag axis_tag,
HarfBuzz.OtVarAxisInfo axis_info);
+ public static HarfBuzz.Bool ot_var_find_axis_info (HarfBuzz.Face face, HarfBuzz.Tag axis_tag, out
HarfBuzz.OtVarAxisInfo axis_info);
[CCode (cheader_filename = "hb-gobject.h")]
[Version (deprecated = true, deprecated_since = "2.2.0", since = "1.4.2")]
- public static uint ot_var_get_axes (HarfBuzz.Face face, uint start_offset, uint axes_count,
HarfBuzz.OtVarAxis axes_array);
+ public static uint ot_var_get_axes (HarfBuzz.Face face, uint start_offset, [CCode (array_length_cname
= "axes_count", array_length_pos = 2.5, array_length_type = "guint")] out unowned HarfBuzz.OtVarAxis[]
axes_array);
[CCode (cheader_filename = "hb-gobject.h")]
[Version (since = "1.4.2")]
public static uint ot_var_get_axis_count (HarfBuzz.Face face);
[CCode (cheader_filename = "hb-gobject.h")]
[Version (since = "2.2.0")]
- public static uint ot_var_get_axis_infos (HarfBuzz.Face face, uint start_offset, uint axes_count,
HarfBuzz.OtVarAxisInfo axes_array);
+ public static uint ot_var_get_axis_infos (HarfBuzz.Face face, uint start_offset, [CCode
(array_length_cname = "axes_count", array_length_pos = 2.5, array_length_type = "guint")] out unowned
HarfBuzz.OtVarAxisInfo[] axes_array);
[CCode (cheader_filename = "hb-gobject.h")]
+ [Version (since = "2.2.0")]
public static uint ot_var_get_named_instance_count (HarfBuzz.Face face);
[CCode (cheader_filename = "hb-gobject.h")]
[Version (since = "1.4.2")]
public static HarfBuzz.Bool ot_var_has_data (HarfBuzz.Face face);
[CCode (cheader_filename = "hb-gobject.h")]
- public static uint ot_var_named_instance_get_design_coords (HarfBuzz.Face face, uint instance_index,
uint coords_length, float coords);
+ [Version (since = "2.2.0")]
+ public static uint ot_var_named_instance_get_design_coords (HarfBuzz.Face face, uint instance_index,
[CCode (array_length_cname = "coords_length", array_length_pos = 2.5, array_length_type = "guint")] out
float[] coords);
[CCode (cheader_filename = "hb-gobject.h")]
+ [Version (since = "2.2.0")]
public static HarfBuzz.OtNameId ot_var_named_instance_get_postscript_name_id (HarfBuzz.Face face,
uint instance_index);
[CCode (cheader_filename = "hb-gobject.h")]
+ [Version (since = "2.2.0")]
public static HarfBuzz.OtNameId ot_var_named_instance_get_subfamily_name_id (HarfBuzz.Face face, uint
instance_index);
[CCode (cheader_filename = "hb-gobject.h")]
[Version (since = "1.4.2")]
- public static void ot_var_normalize_coords (HarfBuzz.Face face, uint coords_length, float
design_coords, int normalized_coords);
+ public static void ot_var_normalize_coords (HarfBuzz.Face face, uint coords_length, float
design_coords, out int normalized_coords);
[CCode (cheader_filename = "hb-gobject.h")]
[Version (since = "1.4.2")]
- public static void ot_var_normalize_variations (HarfBuzz.Face face, HarfBuzz.Variation variations,
uint variations_length, int coords, uint coords_length);
+ public static void ot_var_normalize_variations (HarfBuzz.Face face, HarfBuzz.Variation variations,
uint variations_length, [CCode (array_length_cname = "coords_length", array_length_pos = 4.1,
array_length_type = "guint")] out int[] coords);
[CCode (cheader_filename = "hb-gobject.h")]
[Version (since = "0.9.2")]
public static void shape (HarfBuzz.Font font, HarfBuzz.Buffer buffer, [CCode (array_length_cname =
"num_features", array_length_pos = 3.1, array_length_type = "guint")] HarfBuzz.Feature[]? features);
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index 1fa6bb0fd..b669bfa55 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -436,6 +436,8 @@ namespace Pango {
public static unowned Pango.Language? from_string (string? language);
[Version (since = "1.16")]
public static unowned Pango.Language get_default ();
+ [Version (since = "1.48")]
+ public static unowned Pango.Language? get_preferred ();
public unowned string get_sample_string ();
[CCode (array_length_pos = 0.1)]
[Version (since = "1.22")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]