summaryrefslogtreecommitdiff
path: root/vapi
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-08-28 08:38:05 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2019-08-28 08:40:01 +0200
commit0acf13a66dad3f64838952618577204e2ac874c1 (patch)
treec6f4bcef199c71675f5f4d75e02c1427a44132c1 /vapi
parente31a1aae6971cf241fcd42522b74c7c1a9a5baa3 (diff)
downloadvala-0acf13a66dad3f64838952618577204e2ac874c1.tar.gz
Regenerate GIR-based bindings to pick up out/ref instance-parameters
Diffstat (limited to 'vapi')
-rw-r--r--vapi/clutter-1.0.vapi2
-rw-r--r--vapi/gio-2.0.vapi8
-rw-r--r--vapi/gst-editing-services-1.0.vapi1
-rw-r--r--vapi/gstreamer-1.0.vapi20
-rw-r--r--vapi/gstreamer-base-1.0.vapi8
-rw-r--r--vapi/gstreamer-rtsp-server-1.0.vapi1
-rw-r--r--vapi/gstreamer-video-1.0.vapi1
-rw-r--r--vapi/gstreamer-webrtc-1.0.vapi1
-rw-r--r--vapi/libgsf-1.vapi1
-rw-r--r--vapi/libsoup-2.4.vapi3
-rw-r--r--vapi/metadata/GooCanvas-2.0.metadata1
-rw-r--r--vapi/metadata/Gtk-3.0.metadata6
12 files changed, 49 insertions, 4 deletions
diff --git a/vapi/clutter-1.0.vapi b/vapi/clutter-1.0.vapi
index cbbc60e59..8a9299468 100644
--- a/vapi/clutter-1.0.vapi
+++ b/vapi/clutter-1.0.vapi
@@ -8106,7 +8106,7 @@ namespace Clutter {
[Version (since = "1.12")]
public static Clutter.ActorBox? alloc ();
[Version (since = "1.2")]
- public void clamp_to_pixel ();
+ public static void clamp_to_pixel (ref Clutter.ActorBox box);
[Version (since = "1.0")]
public bool contains (float x, float y);
[Version (since = "1.0")]
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 2aa6db449..2091d501c 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -877,14 +877,22 @@ namespace GLib {
public unowned GLib.DBusPropertyInfo get_property_info ();
public unowned string get_sender ();
public void* get_user_data ();
+ [DestroysInstance]
public void return_dbus_error (string error_name, string error_message);
+ [DestroysInstance]
public void return_error (GLib.Quark domain, int code, string format, ...);
+ [DestroysInstance]
public void return_error_literal (GLib.Quark domain, int code, string message);
+ [DestroysInstance]
public void return_error_valist (GLib.Quark domain, int code, string format, [CCode (type = "va_list")] va_list var_args);
+ [DestroysInstance]
public void return_gerror (GLib.Error error);
+ [DestroysInstance]
public void return_value (GLib.Variant? parameters);
+ [DestroysInstance]
[Version (since = "2.30")]
public void return_value_with_unix_fd_list (GLib.Variant? parameters, GLib.UnixFDList? fd_list);
+ [DestroysInstance]
[Version (since = "2.30")]
public void take_error (owned GLib.Error error);
}
diff --git a/vapi/gst-editing-services-1.0.vapi b/vapi/gst-editing-services-1.0.vapi
index 97e3f0487..5cc0c61fd 100644
--- a/vapi/gst-editing-services-1.0.vapi
+++ b/vapi/gst-editing-services-1.0.vapi
@@ -139,6 +139,7 @@ namespace GES {
public bool remove (GES.TimelineElement child);
[NoWrapper]
public virtual bool remove_child (GES.TimelineElement element);
+ [DestroysInstance]
public virtual GLib.List<GES.Container> ungroup (bool recursive);
[NoAccessorMethod]
public uint height { get; }
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index 4e7636f57..bae27da5f 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -562,6 +562,7 @@ namespace Gst {
public size_t padding;
public size_t prefix;
public Gst.AllocationParams? copy ();
+ [DestroysInstance]
public void free ();
public void init ();
}
@@ -581,6 +582,7 @@ namespace Gst {
public static Gst.Allocator? find (string? name);
public virtual void free (owned Gst.Memory memory);
public static void register (string name, owned Gst.Allocator allocator);
+ [DestroysInstance]
public void set_default ();
}
[CCode (cheader_filename = "gst/gst.h", ref_function = "gst_atomic_queue_ref", type_id = "gst_atomic_queue_get_type ()", unref_function = "gst_atomic_queue_unref")]
@@ -673,8 +675,10 @@ namespace Gst {
public unowned Gst.ReferenceTimestampMeta? add_reference_timestamp_meta (Gst.Caps reference, Gst.ClockTime timestamp, Gst.ClockTime duration);
[CCode (has_construct_function = false)]
public Buffer.allocate (Gst.Allocator? allocator, size_t size, Gst.AllocationParams? @params);
+ [DestroysInstance]
public Gst.Buffer append (owned Gst.Buffer buf2);
public void append_memory (owned Gst.Memory mem);
+ [DestroysInstance]
public Gst.Buffer append_region (owned Gst.Buffer buf2, ssize_t offset, ssize_t size);
[Version (since = "1.6")]
public Gst.Buffer copy_deep ();
@@ -850,6 +854,7 @@ namespace Gst {
public Caps.empty_simple (string media_type);
[Version (since = "1.6")]
public void filter_and_map_in_place (Gst.CapsFilterMapFunc func);
+ [DestroysInstance]
public Gst.Caps fixate ();
[Version (since = "1.6")]
public bool @foreach (Gst.CapsForeachFunc func);
@@ -877,10 +882,14 @@ namespace Gst {
public bool is_subset_structure_full (Gst.Structure structure, Gst.CapsFeatures? features);
[Version (since = "1.6")]
public bool map_in_place (Gst.CapsMapFunc func);
+ [DestroysInstance]
public Gst.Caps merge (owned Gst.Caps caps2);
+ [DestroysInstance]
public Gst.Caps merge_structure (owned Gst.Structure structure);
+ [DestroysInstance]
[Version (since = "1.2")]
public Gst.Caps merge_structure_full (owned Gst.Structure structure, owned Gst.CapsFeatures? features);
+ [DestroysInstance]
public Gst.Caps normalize ();
public void remove_structure (uint idx);
[Version (since = "1.2")]
@@ -892,10 +901,12 @@ namespace Gst {
public void set_value (string field, GLib.Value value);
[CCode (has_construct_function = false)]
public Caps.simple (string media_type, string fieldname, ...);
+ [DestroysInstance]
public Gst.Caps simplify ();
public Gst.Structure? steal_structure (uint index);
public Gst.Caps subtract (Gst.Caps subtrahend);
public string to_string ();
+ [DestroysInstance]
public Gst.Caps truncate ();
}
[CCode (cheader_filename = "gst/gst.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_caps_features_get_type ()")]
@@ -913,6 +924,7 @@ namespace Gst {
public Gst.CapsFeatures copy ();
[CCode (has_construct_function = false)]
public CapsFeatures.empty ();
+ [DestroysInstance]
public void free ();
public static Gst.CapsFeatures? from_string (string features);
public unowned string? get_nth (uint i);
@@ -1065,6 +1077,7 @@ namespace Gst {
public unowned Gst.DateTime @ref ();
public GLib.DateTime? to_g_date_time ();
public string? to_iso8601_string ();
+ [DestroysInstance]
public void unref ();
[CCode (has_construct_function = false)]
public DateTime.y (int year);
@@ -1539,6 +1552,7 @@ namespace Gst {
public bool is_span (Gst.Memory mem2, out size_t offset);
[Version (since = "1.2")]
public bool is_type (string mem_type);
+ [DestroysInstance]
public Gst.Memory? make_mapped (out Gst.MapInfo info, Gst.MapFlags flags);
public bool map (out Gst.MapInfo info, Gst.MapFlags flags);
[CCode (has_construct_function = false, simple_generics = true)]
@@ -1739,6 +1753,7 @@ namespace Gst {
public T get_qdata<T> (GLib.Quark quark);
public bool is_writable ();
public bool @lock (Gst.LockFlags flags);
+ [DestroysInstance]
[ReturnsModifiedPointer]
public Gst.MiniObject make_writable ();
public unowned Gst.MiniObject @ref ();
@@ -1955,6 +1970,7 @@ namespace Gst {
[CCode (has_construct_function = false)]
public ParseContext ();
public Gst.ParseContext? copy ();
+ [DestroysInstance]
public void free ();
[CCode (array_length = false, array_null_terminated = true)]
public string[]? get_missing_elements ();
@@ -2043,6 +2059,7 @@ namespace Gst {
[Version (since = "1.16")]
public bool fd_has_pri (Gst.PollFD fd);
public void fd_ignored (Gst.PollFD fd);
+ [DestroysInstance]
public void free ();
public void get_read_gpollfd (GLib.PollFD fd);
public bool read_control ();
@@ -2268,6 +2285,7 @@ namespace Gst {
public Gst.Segment copy ();
public void copy_into (Gst.Segment dest);
public bool do_seek (double rate, Gst.Format format, Gst.SeekFlags flags, Gst.SeekType start_type, uint64 start, Gst.SeekType stop_type, uint64 stop, out bool update);
+ [DestroysInstance]
public void free ();
public void init (Gst.Format format);
[Version (since = "1.6")]
@@ -2346,6 +2364,7 @@ namespace Gst {
public bool fixate_field_nearest_int (string field_name, int target);
public bool fixate_field_string (string field_name, string target);
public bool @foreach (Gst.StructureForeachFunc func);
+ [DestroysInstance]
public void free ();
[CCode (cname = "gst_structure_from_string", has_construct_function = false)]
public Structure.from_string (string string, out unowned string end);
@@ -2624,6 +2643,7 @@ namespace Gst {
public bool is_writable ();
[Version (since = "1.6")]
public Gst.Uri? join (Gst.Uri? ref_uri);
+ [DestroysInstance]
[ReturnsModifiedPointer]
[Version (since = "1.6")]
public Gst.Uri make_writable ();
diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi
index a5c98e292..2fe905ea7 100644
--- a/vapi/gstreamer-base-1.0.vapi
+++ b/vapi/gstreamer-base-1.0.vapi
@@ -147,6 +147,7 @@ namespace Gst {
public uint size;
public BitReader ([CCode (array_length_type = "guint")] uint8[] data);
[CCode (cname = "gst_bit_reader_free")]
+ [DestroysInstance]
public void free ();
[CCode (cname = "gst_bit_reader_get_bits_uint16")]
public bool get_bits_uint16 (out uint16 val, uint nbits);
@@ -197,6 +198,7 @@ namespace Gst {
[CCode (cname = "gst_byte_reader_dup_string_utf8")]
public bool dup_string_utf8 ([CCode (array_length = false, array_null_terminated = true)] out string[] str);
[CCode (cname = "gst_byte_reader_free")]
+ [DestroysInstance]
public void free ();
[CCode (cname = "gst_byte_reader_get_data")]
public bool get_data ([CCode (array_length_cname = "size", array_length_pos = 0.5, array_length_type = "guint")] out unowned uint8[] val);
@@ -332,10 +334,13 @@ namespace Gst {
[CCode (cname = "gst_byte_writer_fill")]
public bool fill (uint8 value, uint size);
[CCode (cname = "gst_byte_writer_free")]
+ [DestroysInstance]
public void free ();
[CCode (cname = "gst_byte_writer_free_and_get_buffer")]
+ [DestroysInstance]
public Gst.Buffer free_and_get_buffer ();
[CCode (cname = "gst_byte_writer_free_and_get_data")]
+ [DestroysInstance]
public uint8 free_and_get_data ();
[CCode (cname = "gst_byte_writer_get_remaining")]
public uint get_remaining ();
@@ -837,10 +842,13 @@ namespace Gst {
[CCode (cname = "gst_bit_writer_align_bytes")]
public bool align_bytes (uint8 trailing_bit);
[CCode (cname = "gst_bit_writer_free")]
+ [DestroysInstance]
public void free ();
[CCode (cname = "gst_bit_writer_free_and_get_buffer")]
+ [DestroysInstance]
public Gst.Buffer free_and_get_buffer ();
[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 ();
diff --git a/vapi/gstreamer-rtsp-server-1.0.vapi b/vapi/gstreamer-rtsp-server-1.0.vapi
index b61111372..c09136e24 100644
--- a/vapi/gstreamer-rtsp-server-1.0.vapi
+++ b/vapi/gstreamer-rtsp-server-1.0.vapi
@@ -754,6 +754,7 @@ namespace Gst {
[CCode (has_construct_function = false)]
public Thread (Gst.RTSPServer.ThreadType type);
public bool reuse ();
+ [DestroysInstance]
public void stop ();
}
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPThreadPool", lower_case_cprefix = "gst_rtsp_thread_pool_", type_id = "gst_rtsp_thread_pool_get_type ()")]
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index bf3e5ebc8..919d4a14c 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -357,6 +357,7 @@ namespace Gst {
public Gst.Video.OverlayComposition copy ();
public unowned Gst.Video.OverlayRectangle get_rectangle (uint n);
public uint get_seqnum ();
+ [DestroysInstance]
[ReturnsModifiedPointer]
public Gst.Video.OverlayComposition make_writable ();
public uint n_rectangles ();
diff --git a/vapi/gstreamer-webrtc-1.0.vapi b/vapi/gstreamer-webrtc-1.0.vapi
index ad22c5a15..32b070ca2 100644
--- a/vapi/gstreamer-webrtc-1.0.vapi
+++ b/vapi/gstreamer-webrtc-1.0.vapi
@@ -103,6 +103,7 @@ namespace Gst {
[CCode (has_construct_function = false)]
public WebRTCSessionDescription (Gst.WebRTCSDPType type, owned Gst.SDP.Message sdp);
public Gst.WebRTCSessionDescription copy ();
+ [DestroysInstance]
public void free ();
}
[CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_BUNDLE_POLICY_", type_id = "gst_webrtc_bundle_policy_get_type ()")]
diff --git a/vapi/libgsf-1.vapi b/vapi/libgsf-1.vapi
index f2e1894aa..4a9493a7f 100644
--- a/vapi/libgsf-1.vapi
+++ b/vapi/libgsf-1.vapi
@@ -139,6 +139,7 @@ namespace Gsf {
[CCode (vfunc_name = "OpenSibling")]
public virtual Gsf.Input sibling (string name) throws GLib.Error;
public Gsf.off_t tell ();
+ [DestroysInstance]
public Gsf.Input uncompress ();
[NoAccessorMethod]
public Gsf.Infile container { owned get; }
diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi
index 3d35a2376..36b741e1e 100644
--- a/vapi/libsoup-2.4.vapi
+++ b/vapi/libsoup-2.4.vapi
@@ -532,6 +532,7 @@ namespace Soup {
public HSTSPolicy (string domain, ulong max_age, bool include_subdomains);
public Soup.HSTSPolicy copy ();
public bool equal (Soup.HSTSPolicy policy2);
+ [DestroysInstance]
public void free ();
[CCode (has_construct_function = false)]
public HSTSPolicy.from_response (Soup.Message msg);
@@ -1283,7 +1284,7 @@ namespace Soup {
[CCode (cheader_filename = "libsoup/soup.h", has_type_id = false)]
public struct MessageHeadersIter {
public static void init (out Soup.MessageHeadersIter iter, Soup.MessageHeaders hdrs);
- public bool next (out unowned string name, out unowned string value);
+ public static bool next (ref Soup.MessageHeadersIter iter, out unowned string name, out unowned string value);
}
[CCode (cheader_filename = "libsoup/soup.h", has_type_id = false)]
[Version (since = "2.26")]
diff --git a/vapi/metadata/GooCanvas-2.0.metadata b/vapi/metadata/GooCanvas-2.0.metadata
index 423957285..d2b436e21 100644
--- a/vapi/metadata/GooCanvas-2.0.metadata
+++ b/vapi/metadata/GooCanvas-2.0.metadata
@@ -30,6 +30,7 @@ CanvasItemSimple
.get_path_bounds.bounds out unowned=false
CanvasItemModel
.get_simple_transform.* out
+ .get_simple_transform.model out=false
.get_transform.transform out
CanvasLineDash
.dashes array array_length_field="num_dashes" unowned=false
diff --git a/vapi/metadata/Gtk-3.0.metadata b/vapi/metadata/Gtk-3.0.metadata
index 934db7ce3..9f478c88c 100644
--- a/vapi/metadata/Gtk-3.0.metadata
+++ b/vapi/metadata/Gtk-3.0.metadata
@@ -40,12 +40,14 @@ AccelLabel
// Bug #: Virtual methods without invokers
Entry
.get_frame_size.* out
+ .get_frame_size.entry out=false
.get_text_area_size.* out
+ .get_text_area_size.entry out=false
EntryBuffer
.get_text#virtual_method name="get_text_internal"
.get_text#virtual_method.n_bytes out default=null
Range
- .get_range_border.* out
+ .get_range_border.border_ out
.get_range_size_request.minimum out
.get_range_size_request.natural out
RcStyle
@@ -57,7 +59,7 @@ Widget
.adjust_size_allocation.*_size ref
.adjust_size_allocation.allocated_pos ref
.adjust_size_request.*_size ref
- .compute_expand#virtual_method.* out
+ .compute_expand#virtual_method.*expand_p out
.dispatch_child_properties_changed.pspecs array array_length_idx=0
RecentChooser
.get_recent_manager skip=false