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




commit 52c225d65cf0bb9d26040170e965a09c6d231da7
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Dec 15 16:27:56 2021 +0100

    vapi: Update GIR-based bindings

 vapi/gstreamer-base-1.0.vapi |  6 +++---
 vapi/libgsf-1.vapi           |  2 ++
 vapi/pango.vapi              | 19 +++++++++++++++++--
 3 files changed, 22 insertions(+), 5 deletions(-)
---
diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi
index 0fed6e130..af72cab47 100644
--- a/vapi/gstreamer-base-1.0.vapi
+++ b/vapi/gstreamer-base-1.0.vapi
@@ -884,8 +884,8 @@ namespace Gst {
                        [CCode (array_length = false, cname = "gst_bit_writer_free_and_get_data")]
                        [DestroysInstance]
                        public uint8[] free_and_get_data ();
-                       [CCode (cname = "gst_bit_writer_get_data")]
-                       public uint8 get_data ();
+                       [CCode (array_length = false, cname = "gst_bit_writer_get_data")]
+                       public unowned uint8[] get_data ();
                        [CCode (cname = "gst_bit_writer_get_remaining")]
                        public uint get_remaining ();
                        [CCode (cname = "gst_bit_writer_get_size")]
@@ -899,7 +899,7 @@ namespace Gst {
                        [CCode (cname = "gst_bit_writer_put_bits_uint8")]
                        public bool put_bits_uint8 (uint8 value, uint nbits);
                        [CCode (cname = "gst_bit_writer_put_bytes")]
-                       public bool put_bytes ([CCode (array_length_cname = "nbytes", array_length_pos = 1.1, 
array_length_type = "guint", type = "const guint8*")] uint8[] data);
+                       public bool put_bytes ([CCode (array_length_cname = "nbytes", array_length_pos = 1.1, 
array_length_type = "guint")] uint8[] data);
                        [CCode (cname = "gst_bit_writer_reset")]
                        public void reset ();
                        [CCode (cname = "gst_bit_writer_reset_and_get_buffer")]
diff --git a/vapi/libgsf-1.vapi b/vapi/libgsf-1.vapi
index cc630983f..0d418b07e 100644
--- a/vapi/libgsf-1.vapi
+++ b/vapi/libgsf-1.vapi
@@ -108,6 +108,8 @@ namespace Gsf {
                public Gsf.InfileZip internal_parent { construct; }
                [NoAccessorMethod]
                public Gsf.Input source { owned get; construct; }
+               [NoAccessorMethod]
+               public bool zip64 { get; }
        }
        [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_input_get_type ()")]
        public abstract class Input : GLib.Object {
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index f7d9f3f8a..d3ef67ef0 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -241,6 +241,8 @@ namespace Pango {
                [Version (since = "1.14")]
                public Pango.FontDescription describe_with_absolute_size ();
                public static void descriptions_free ([CCode (array_length_cname = "n_descs", 
array_length_pos = 1.1)] owned Pango.FontDescription[]? descs);
+               [Version (since = "1.50")]
+               public static Pango.Font? deserialize (Pango.Context context, GLib.Bytes bytes) throws 
GLib.Error;
                public virtual Pango.Coverage get_coverage (Pango.Language language);
                [Version (since = "1.46")]
                public unowned Pango.FontFace get_face ();
@@ -678,13 +680,21 @@ namespace Pango {
                public void free ();
                [Version (since = "1.50")]
                public static Pango.TabArray? from_string (string text);
+               [Version (since = "1.50")]
+               public unichar get_decimal_point (int tab_index);
                public bool get_positions_in_pixels ();
                public int get_size ();
                public void get_tab (int tab_index, out Pango.TabAlign alignment, out int location);
                public void get_tabs (out Pango.TabAlign alignments, [CCode (array_length = false)] out int[] 
locations);
                public void resize (int new_size);
+               [Version (since = "1.50")]
+               public void set_decimal_point (int tab_index, unichar decimal_point);
+               [Version (since = "1.50")]
+               public void set_positions_in_pixels (bool positions_in_pixels);
                public void set_tab (int tab_index, Pango.TabAlign alignment, int location);
                [Version (since = "1.50")]
+               public void sort ();
+               [Version (since = "1.50")]
                public string to_string ();
                [CCode (has_construct_function = false)]
                public TabArray.with_positions (int size, bool positions_in_pixels, Pango.TabAlign 
first_alignment, ...);
@@ -963,12 +973,14 @@ namespace Pango {
        }
        [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_LAYOUT_DESERIALIZE_", type_id = 
"pango_layout_deserialize_flags_get_type ()")]
        [Flags]
+       [Version (since = "1.50")]
        public enum LayoutDeserializeFlags {
                DEFAULT,
                CONTEXT
        }
        [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_LAYOUT_SERIALIZE_", type_id = 
"pango_layout_serialize_flags_get_type ()")]
        [Flags]
+       [Version (since = "1.50")]
        public enum LayoutSerializeFlags {
                DEFAULT,
                CONTEXT,
@@ -1150,7 +1162,10 @@ namespace Pango {
        }
        [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_TAB_", type_id = 
"pango_tab_align_get_type ()")]
        public enum TabAlign {
-               LEFT
+               LEFT,
+               RIGHT,
+               CENTER,
+               DECIMAL
        }
        [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_TEXT_TRANSFORM_", type_id = 
"pango_text_transform_get_type ()")]
        [Version (since = "1.50")]
@@ -1203,9 +1218,9 @@ namespace Pango {
                WORD_CHAR
        }
        [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_LAYOUT_DESERIALIZE_")]
+       [Version (since = "1.50")]
        public errordomain LayoutDeserializeError {
                INVALID,
-               INVALID_SYNTAX,
                INVALID_VALUE,
                MISSING_VALUE;
                public static GLib.Quark quark ();


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