[vala/0.36: 26/173] gstreamer-1.0: Various binding fixes



commit 51c26cb2fc39bb5d2b812739e3418f6393e2ab38
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Jun 12 22:08:56 2017 +0200

    gstreamer-1.0: Various binding fixes

 vapi/gstreamer-1.0.vapi       |   16 ++++++++--------
 vapi/gstreamer-video-1.0.vapi |   32 ++++++++++++++++----------------
 2 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index 0d7db64..6cf911c 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -1111,7 +1111,7 @@ namespace Gst {
                [CCode (cname = "gst_device_provider_class_add_static_metadata")]
                public class void add_static_metadata (string key, owned string value);
                public bool can_monitor ();
-               public void device_add (owned Gst.Device device);
+               public void device_add (Gst.Device device);
                public void device_remove (Gst.Device device);
                public Gst.Bus get_bus ();
                public GLib.List<Gst.Device> get_devices ();
@@ -1191,7 +1191,7 @@ namespace Gst {
                public class void add_metadata (string key, string value);
                public bool add_pad (Gst.Pad pad);
                [CCode (cname = "gst_element_class_add_pad_template")]
-               public class void add_pad_template (owned Gst.PadTemplate templ);
+               public class void add_pad_template (Gst.PadTemplate templ);
                [Version (since = "1.10")]
                public ulong add_property_deep_notify_watch (string? property_name, bool include_value);
                [Version (since = "1.10")]
@@ -1707,13 +1707,13 @@ namespace Gst {
                public GLib.Mutex @lock;
                [CCode (has_construct_function = false)]
                protected Object ();
-               public bool add_control_binding (owned Gst.ControlBinding binding);
+               public bool add_control_binding (Gst.ControlBinding binding);
                public static bool check_uniqueness (GLib.List<Gst.Object> list, string name);
                public static void default_deep_notify (GLib.Object object, Gst.Object orig, GLib.ParamSpec 
pspec, [CCode (array_length = false, array_null_terminated = true)] string[]? excluded_props);
                public void default_error (GLib.Error error, string? debug);
                public Gst.ControlBinding? get_control_binding (string property_name);
                public Gst.ClockTime get_control_rate ();
-               public bool get_g_value_array (string property_name, Gst.ClockTime timestamp, Gst.ClockTime 
interval, uint n_values, GLib.Value values);
+               public bool get_g_value_array (string property_name, Gst.ClockTime timestamp, Gst.ClockTime 
interval, [CCode (array_length_cname = "n_values", array_length_pos = 3.5, array_length_type = "guint")] 
GLib.Value[] values);
                public string? get_name ();
                public Gst.Object? get_parent ();
                public string get_path_string ();
@@ -2118,8 +2118,8 @@ namespace Gst {
        public class Registry : Gst.Object {
                [CCode (has_construct_function = false)]
                protected Registry ();
-               public bool add_feature (owned Gst.PluginFeature feature);
-               public bool add_plugin (owned Gst.Plugin plugin);
+               public bool add_feature (Gst.PluginFeature feature);
+               public bool add_plugin (Gst.Plugin plugin);
                public bool check_feature_version (string feature_name, uint min_major, uint min_minor, uint 
min_micro);
                public GLib.List<Gst.PluginFeature> feature_filter ([CCode (delegate_target_pos = 2.1)] 
Gst.PluginFeatureFilter filter, bool first);
                public Gst.PluginFeature? find_feature (string name, GLib.Type type);
@@ -2822,7 +2822,7 @@ namespace Gst {
                public Gst.PadDirection direction;
                public Gst.PadPresence presence;
                public Gst.StaticCaps static_caps;
-               public Gst.PadTemplate @get ();
+               public unowned Gst.PadTemplate @get ();
                public Gst.Caps get_caps ();
                public static GLib.Type get_type ();
        }
@@ -3951,7 +3951,7 @@ namespace Gst {
        public static bool preset_set_app_dir (string app_dir);
        [CCode (cheader_filename = "gst/gst.h")]
        [Version (since = "1.6")]
-       public static unowned string protection_select_system (string system_identifiers);
+       public static unowned string protection_select_system ([CCode (array_length = false, 
array_null_terminated = true)] string[] system_identifiers);
        [CCode (cheader_filename = "gst/gst.h")]
        public static bool segtrap_is_enabled ();
        [CCode (cheader_filename = "gst/gst.h")]
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index e778f39..602cd9d 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -421,28 +421,28 @@ namespace Gst {
                [GIR (name = "Navigation")]
                public interface Navigation : GLib.Object {
                        public static Gst.Video.NavigationEventType event_get_type (Gst.Event event);
-                       public static bool event_parse_command (Gst.Event event, Gst.Video.NavigationCommand 
command);
-                       public static bool event_parse_key_event (Gst.Event event, string key);
-                       public static bool event_parse_mouse_button_event (Gst.Event event, int button, 
double x, double y);
-                       public static bool event_parse_mouse_move_event (Gst.Event event, double x, double y);
+                       public static bool event_parse_command (Gst.Event event, out 
Gst.Video.NavigationCommand command);
+                       public static bool event_parse_key_event (Gst.Event event, out unowned string key);
+                       public static bool event_parse_mouse_button_event (Gst.Event event, out int button, 
out double x, out double y);
+                       public static bool event_parse_mouse_move_event (Gst.Event event, out double x, out 
double y);
                        public static Gst.Video.NavigationMessageType message_get_type (Gst.Message message);
                        public static Gst.Message message_new_angles_changed (Gst.Object src, uint cur_angle, 
uint n_angles);
                        public static Gst.Message message_new_commands_changed (Gst.Object src);
                        [Version (since = "1.6")]
                        public static Gst.Message message_new_event (Gst.Object src, Gst.Event event);
                        public static Gst.Message message_new_mouse_over (Gst.Object src, bool active);
-                       public static bool message_parse_angles_changed (Gst.Message message, uint cur_angle, 
uint n_angles);
+                       public static bool message_parse_angles_changed (Gst.Message message, out uint 
cur_angle, out uint n_angles);
                        [Version (since = "1.6")]
                        public static bool message_parse_event (Gst.Message message, out Gst.Event event);
-                       public static bool message_parse_mouse_over (Gst.Message message, bool active);
+                       public static bool message_parse_mouse_over (Gst.Message message, out bool active);
                        public static Gst.Video.NavigationQueryType query_get_type (Gst.Query query);
                        public static Gst.Query query_new_angles ();
                        public static Gst.Query query_new_commands ();
-                       public static bool query_parse_angles (Gst.Query query, uint cur_angle, uint 
n_angles);
+                       public static bool query_parse_angles (Gst.Query query, out uint cur_angle, out uint 
n_angles);
                        public static bool query_parse_commands_length (Gst.Query query, out uint n_cmds);
                        public static bool query_parse_commands_nth (Gst.Query query, uint nth, out 
Gst.Video.NavigationCommand cmd);
                        public static void query_set_angles (Gst.Query query, uint cur_angle, uint n_angles);
-                       public static void query_set_commandsv (Gst.Query query, int n_cmds, 
Gst.Video.NavigationCommand cmds);
+                       public static void query_set_commandsv (Gst.Query query, [CCode (array_length_cname = 
"n_cmds", array_length_pos = 1.5)] Gst.Video.NavigationCommand[] cmds);
                        public void send_command (Gst.Video.NavigationCommand command);
                        public abstract void send_event (Gst.Structure structure);
                        public void send_key_event (string event, string key);
@@ -1469,13 +1469,13 @@ namespace Gst {
                [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_get_type")]
                public static Gst.Video.NavigationEventType navigation_event_get_type (Gst.Event event);
                [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_command")]
-               public static bool navigation_event_parse_command (Gst.Event event, 
Gst.Video.NavigationCommand command);
+               public static bool navigation_event_parse_command (Gst.Event event, out 
Gst.Video.NavigationCommand command);
                [CCode (cheader_filename = "gst/video/video.h", cname = 
"gst_navigation_event_parse_key_event")]
-               public static bool navigation_event_parse_key_event (Gst.Event event, string key);
+               public static bool navigation_event_parse_key_event (Gst.Event event, out unowned string key);
                [CCode (cheader_filename = "gst/video/video.h", cname = 
"gst_navigation_event_parse_mouse_button_event")]
-               public static bool navigation_event_parse_mouse_button_event (Gst.Event event, int button, 
double x, double y);
+               public static bool navigation_event_parse_mouse_button_event (Gst.Event event, out int 
button, out double x, out double y);
                [CCode (cheader_filename = "gst/video/video.h", cname = 
"gst_navigation_event_parse_mouse_move_event")]
-               public static bool navigation_event_parse_mouse_move_event (Gst.Event event, double x, double 
y);
+               public static bool navigation_event_parse_mouse_move_event (Gst.Event event, out double x, 
out double y);
                [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_get_type")]
                public static Gst.Video.NavigationMessageType navigation_message_get_type (Gst.Message 
message);
                [CCode (cheader_filename = "gst/video/video.h", cname = 
"gst_navigation_message_new_angles_changed")]
@@ -1488,12 +1488,12 @@ namespace Gst {
                [CCode (cheader_filename = "gst/video/video.h", cname = 
"gst_navigation_message_new_mouse_over")]
                public static Gst.Message navigation_message_new_mouse_over (Gst.Object src, bool active);
                [CCode (cheader_filename = "gst/video/video.h", cname = 
"gst_navigation_message_parse_angles_changed")]
-               public static bool navigation_message_parse_angles_changed (Gst.Message message, uint 
cur_angle, uint n_angles);
+               public static bool navigation_message_parse_angles_changed (Gst.Message message, out uint 
cur_angle, out uint n_angles);
                [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_parse_event")]
                [Version (since = "1.6")]
                public static bool navigation_message_parse_event (Gst.Message message, out Gst.Event event);
                [CCode (cheader_filename = "gst/video/video.h", cname = 
"gst_navigation_message_parse_mouse_over")]
-               public static bool navigation_message_parse_mouse_over (Gst.Message message, bool active);
+               public static bool navigation_message_parse_mouse_over (Gst.Message message, out bool active);
                [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_get_type")]
                public static Gst.Video.NavigationQueryType navigation_query_get_type (Gst.Query query);
                [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_new_angles")]
@@ -1501,7 +1501,7 @@ namespace Gst {
                [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_new_commands")]
                public static Gst.Query navigation_query_new_commands ();
                [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_parse_angles")]
-               public static bool navigation_query_parse_angles (Gst.Query query, uint cur_angle, uint 
n_angles);
+               public static bool navigation_query_parse_angles (Gst.Query query, out uint cur_angle, out 
uint n_angles);
                [CCode (cheader_filename = "gst/video/video.h", cname = 
"gst_navigation_query_parse_commands_length")]
                public static bool navigation_query_parse_commands_length (Gst.Query query, out uint n_cmds);
                [CCode (cheader_filename = "gst/video/video.h", cname = 
"gst_navigation_query_parse_commands_nth")]
@@ -1509,7 +1509,7 @@ namespace Gst {
                [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_set_angles")]
                public static void navigation_query_set_angles (Gst.Query query, uint cur_angle, uint 
n_angles);
                [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_set_commandsv")]
-               public static void navigation_query_set_commandsv (Gst.Query query, int n_cmds, 
Gst.Video.NavigationCommand cmds);
+               public static void navigation_query_set_commandsv (Gst.Query query, [CCode 
(array_length_cname = "n_cmds", array_length_pos = 1.5)] Gst.Video.NavigationCommand[] cmds);
                [CCode (cheader_filename = "gst/video/video.h")]
                public static GLib.Type overlay_composition_meta_api_get_type ();
                [CCode (cheader_filename = "gst/video/video.h")]


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