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



commit 8b6def0c16662866ecc6db9961d984005f306ffa
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Feb 20 16:40:07 2018 +0100

    vapi: Update GIR-based bindings

 vapi/gstreamer-1.0.vapi         |   24 +++++++++++++-----------
 vapi/gstreamer-pbutils-1.0.vapi |   10 +++++-----
 vapi/gtk+-3.0.vapi              |    4 ++--
 vapi/gtk+-4.0.vapi              |    8 +-------
 vapi/metadata/Gdk-4.0.metadata  |    5 -----
 5 files changed, 21 insertions(+), 30 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index 93ee837..c1828ec 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -370,6 +370,7 @@ namespace Gst {
        }
        namespace URI {
                [CCode (cheader_filename = "gst/gst.h")]
+               [Version (deprecated = true)]
                public static string @construct (string protocol, string location);
                [CCode (cheader_filename = "gst/gst.h")]
                public static GLib.Quark error_quark ();
@@ -1393,7 +1394,7 @@ namespace Gst {
                public bool parse_group_id (out uint group_id);
                public void parse_latency (out Gst.ClockTime latency);
                [Version (since = "1.6")]
-               public void parse_protection (out unowned string system_id, out unowned Gst.Buffer data, 
string? origin);
+               public void parse_protection (out unowned string system_id, out unowned Gst.Buffer data, out 
unowned string origin);
                public void parse_qos (out Gst.QOSType type, out double proportion, out Gst.ClockTimeDiff 
diff, out Gst.ClockTime timestamp);
                public void parse_seek (out double rate, out Gst.Format format, out Gst.SeekFlags flags, out 
Gst.SeekType start_type, out int64 start, out Gst.SeekType stop_type, out int64 stop);
                public void parse_segment (out unowned Gst.Segment segment);
@@ -1535,8 +1536,8 @@ namespace Gst {
                public weak Gst.Memory parent;
                public size_t size;
                public Gst.Memory copy (ssize_t offset, ssize_t size);
-               public size_t get_sizes (size_t offset, size_t maxsize);
-               public bool is_span (Gst.Memory mem2, size_t offset);
+               public size_t get_sizes (out size_t offset, out size_t maxsize);
+               public bool is_span (Gst.Memory mem2, out size_t offset);
                [Version (since = "1.2")]
                public bool is_type (string mem_type);
                public Gst.Memory? make_mapped (out Gst.MapInfo info, Gst.MapFlags flags);
@@ -1614,25 +1615,25 @@ namespace Gst {
                public void parse_clock_lost (out unowned Gst.Clock clock);
                public void parse_clock_provide (out unowned Gst.Clock clock, out bool ready);
                [Version (since = "1.2")]
-               public bool parse_context_type (out string context_type);
+               public bool parse_context_type (out unowned string context_type);
                [Version (since = "1.4")]
                public void parse_device_added (out Gst.Device device);
                [Version (since = "1.4")]
                public void parse_device_removed (out Gst.Device device);
                public void parse_error (out GLib.Error gerror, out string debug);
                [Version (since = "1.10")]
-               public void parse_error_details (out Gst.Structure structure);
+               public void parse_error_details (out unowned Gst.Structure structure);
                [Version (since = "1.2")]
                public bool parse_group_id (out uint group_id);
                [Version (since = "1.2")]
                public void parse_have_context (out Gst.Context context);
                public void parse_info (out GLib.Error gerror, out string debug);
                [Version (since = "1.10")]
-               public void parse_info_details (out Gst.Structure structure);
+               public void parse_info_details (out unowned Gst.Structure structure);
                public void parse_new_clock (out unowned Gst.Clock clock);
                public void parse_progress (out Gst.ProgressType type, out string code, out string text);
                [Version (since = "1.10")]
-               public void parse_property_notify (out unowned Gst.Object object, out string property_name, 
out GLib.Value property_value);
+               public void parse_property_notify (out unowned Gst.Object object, out unowned string 
property_name, out GLib.Value property_value);
                public void parse_qos (out bool live, out uint64 running_time, out uint64 stream_time, out 
uint64 timestamp, out uint64 duration);
                public void parse_qos_stats (out Gst.Format format, out uint64 processed, out uint64 dropped);
                public void parse_qos_values (out int64 jitter, out double proportion, out int quality);
@@ -1655,7 +1656,7 @@ namespace Gst {
                public void parse_toc (out Gst.Toc toc, out bool updated);
                public void parse_warning (out GLib.Error gerror, out string debug);
                [Version (since = "1.10")]
-               public void parse_warning_details (out Gst.Structure structure);
+               public void parse_warning_details (out unowned Gst.Structure structure);
                [CCode (has_construct_function = false)]
                public Message.progress (Gst.Object src, Gst.ProgressType type, string code, string text);
                [CCode (has_construct_function = false)]
@@ -2109,7 +2110,7 @@ namespace Gst {
                [CCode (has_construct_function = false)]
                public Query.latency ();
                public void parse_accept_caps (out unowned Gst.Caps caps);
-               public void parse_accept_caps_result (bool result);
+               public void parse_accept_caps_result (out bool result);
                public void parse_allocation (out unowned Gst.Caps caps, out bool need_pool);
                public void parse_buffering_percent (out bool busy, out int percent);
                public void parse_buffering_range (out Gst.Format format, out int64 start, out int64 stop, 
out int64 estimated_total);
@@ -2128,7 +2129,7 @@ namespace Gst {
                public void parse_nth_allocation_param (uint index, out Gst.Allocator allocator, out unowned 
Gst.AllocationParams @params);
                public void parse_nth_allocation_pool (uint index, out Gst.BufferPool pool, out uint size, 
out uint min_buffers, out uint max_buffers);
                public bool parse_nth_buffering_range (uint index, out int64 start, out int64 stop);
-               public void parse_nth_format (out uint nth, out Gst.Format format);
+               public void parse_nth_format (uint nth, out Gst.Format format);
                public Gst.PadMode parse_nth_scheduling_mode (uint index);
                public void parse_position (out Gst.Format format, out int64 cur);
                public void parse_scheduling (out Gst.SchedulingFlags flags, out int minsize, out int 
maxsize, out int align);
@@ -2255,6 +2256,7 @@ namespace Gst {
                [Version (since = "1.8")]
                public int position_from_stream_time_full (Gst.Format format, uint64 stream_time, out uint64 
position);
                public bool set_running_time (Gst.Format format, uint64 running_time);
+               [Version (deprecated = true)]
                public uint64 to_position (Gst.Format format, uint64 running_time);
                public uint64 to_running_time (Gst.Format format, uint64 position);
                [Version (since = "1.6")]
@@ -2413,7 +2415,7 @@ namespace Gst {
                public bool get_float (string tag, out float value);
                public bool get_float_index (string tag, uint index, out float value);
                public bool get_int (string tag, out int value);
-               public bool get_int64 (string tag, int64 value);
+               public bool get_int64 (string tag, out int64 value);
                public bool get_int64_index (string tag, uint index, out int64 value);
                public bool get_int_index (string tag, uint index, out int value);
                public bool get_pointer (string tag, out void* value);
diff --git a/vapi/gstreamer-pbutils-1.0.vapi b/vapi/gstreamer-pbutils-1.0.vapi
index 36be75c..867c2a2 100644
--- a/vapi/gstreamer-pbutils-1.0.vapi
+++ b/vapi/gstreamer-pbutils-1.0.vapi
@@ -69,7 +69,7 @@ namespace Gst {
                        public void stop ();
                        [NoAccessorMethod]
                        public uint64 timeout { get; set construct; }
-                       public virtual signal void discovered (Gst.PbUtils.DiscovererInfo info, GLib.Error 
err);
+                       public virtual signal void discovered (Gst.PbUtils.DiscovererInfo info, GLib.Error? 
err);
                        public virtual signal void finished ();
                        public virtual signal void source_setup (Gst.Element source);
                        public virtual signal void starting ();
@@ -203,14 +203,14 @@ namespace Gst {
                        public bool is_enabled ();
                        public bool is_equal (Gst.PbUtils.EncodingProfile b);
                        public void set_allow_dynamic_output (bool allow_dynamic_output);
-                       public void set_description (string description);
+                       public void set_description (string? description);
                        public void set_enabled (bool enabled);
                        public void set_format (Gst.Caps format);
-                       public void set_name (string name);
+                       public void set_name (string? name);
                        public void set_presence (uint presence);
                        public void set_preset (string? preset);
-                       public void set_preset_name (string preset_name);
-                       public void set_restriction (owned Gst.Caps restriction);
+                       public void set_preset_name (string? preset_name);
+                       public void set_restriction (owned Gst.Caps? restriction);
                        [NoAccessorMethod]
                        public Gst.Caps restriction_caps { owned get; set; }
                }
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 2aba884..24cc791 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -7217,7 +7217,7 @@ namespace Gtk {
                [Version (since = "2.10")]
                public StatusIcon.from_pixbuf (Gdk.Pixbuf pixbuf);
                [CCode (has_construct_function = false)]
-               [Version (deprecated = true, deprecated_since = "3.10", since = "2.10")]
+               [Version (since = "2.10")]
                public StatusIcon.from_stock (string stock_id);
                [Version (since = "2.10")]
                public bool get_geometry (out unowned Gdk.Screen screen, out Gdk.Rectangle area, out 
Gtk.Orientation orientation);
@@ -8979,7 +8979,7 @@ namespace Gtk {
                public int insert_column_with_attributes (int position, string? title, Gtk.CellRenderer cell, 
...);
                public int insert_column_with_data_func (int position, string title, Gtk.CellRenderer cell, 
owned Gtk.TreeCellDataFunc func);
                [Version (since = "3.0")]
-               public bool is_blank_at_pos (int x, int y, out Gtk.TreePath path, out Gtk.TreeViewColumn 
column, out int cell_x, out int cell_y);
+               public bool is_blank_at_pos (int x, int y, out Gtk.TreePath? path, out unowned 
Gtk.TreeViewColumn? column, out int cell_x, out int cell_y);
                [CCode (cname = "gtk_tree_view_row_expanded")]
                public bool is_row_expanded (Gtk.TreePath path);
                [Version (since = "2.12")]
diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi
index 5343a6d..f35dcd0 100644
--- a/vapi/gtk+-4.0.vapi
+++ b/vapi/gtk+-4.0.vapi
@@ -9983,8 +9983,6 @@ namespace Gtk {
                [NoAccessorMethod]
                public uint gtk_long_press_time { get; set; }
                [NoAccessorMethod]
-               public string gtk_modules { owned get; set; }
-               [NoAccessorMethod]
                public bool gtk_primary_button_warps_slider { get; set; }
                [NoAccessorMethod]
                public string gtk_print_backends { owned get; set; }
@@ -11114,7 +11112,7 @@ namespace Gtk {
                public int insert_column (Gtk.TreeViewColumn column, int position);
                public int insert_column_with_attributes (int position, string? title, Gtk.CellRenderer cell, 
...);
                public int insert_column_with_data_func (int position, string title, Gtk.CellRenderer cell, 
owned Gtk.TreeCellDataFunc func);
-               public bool is_blank_at_pos (int x, int y, out Gtk.TreePath path, out Gtk.TreeViewColumn 
column, out int cell_x, out int cell_y);
+               public bool is_blank_at_pos (int x, int y, out Gtk.TreePath? path, out unowned 
Gtk.TreeViewColumn? column, out int cell_x, out int cell_y);
                [CCode (cname = "gtk_tree_view_row_expanded")]
                public bool is_row_expanded (Gtk.TreePath path);
                public bool is_rubber_banding_active ();
@@ -13226,10 +13224,6 @@ namespace Gtk {
        public delegate void MenuDetachFunc (Gtk.Widget attach_widget, Gtk.Menu menu);
        [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 4.9)]
        public delegate void MenuPositionFunc (Gtk.Menu menu, ref int x, ref int y, out bool push_in);
-       [CCode (cheader_filename = "gtk/gtk.h", has_target = false)]
-       public delegate void ModuleDisplayInitFunc (Gdk.Display display);
-       [CCode (cheader_filename = "gtk/gtk.h", has_target = false)]
-       public delegate void ModuleInitFunc ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] 
string[]? argv);
        [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 1.9)]
        public delegate void PageSetupDoneFunc (Gtk.PageSetup page_setup);
        [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 2.9)]
diff --git a/vapi/metadata/Gdk-4.0.metadata b/vapi/metadata/Gdk-4.0.metadata
index 0347561..e552a3b 100644
--- a/vapi/metadata/Gdk-4.0.metadata
+++ b/vapi/metadata/Gdk-4.0.metadata
@@ -15,9 +15,7 @@ Event
         ._get_center skip
         ._get_distance skip
 Window abstract=false
-        .add_filter skip=false
         .create_similar_image_surface type="Cairo.ImageSurface"
-        .remove_filter skip=false
         .moved_to_rect.*_rect type="Gdk.Rectangle"
 Rectangle struct
         .x skip
@@ -62,6 +60,3 @@ EventSetting skip
 EventTouch skip
 EventTouchpadPinch skip
 EventTouchpadSwipe skip
-
-FilterFunc.data closure=2
-XEvent skip


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