]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-0.10: Fix Gst.Registry bindings
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 24 Jun 2010 16:11:05 +0000 (18:11 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 24 Jun 2010 16:11:05 +0000 (18:11 +0200)
Some nullable and parameter ownership changes

vapi/gstreamer-0.10.vapi
vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata

index 1c87f490459a23ad21f72a3018dbf30a2522164a..3e05286bb4e2e89e102f4660cf9da775cbab9387 100644 (file)
@@ -1080,18 +1080,12 @@ namespace Gst {
        }
        [CCode (cheader_filename = "gst/gst.h")]
        public class Registry : Gst.Object {
-               public weak GLib.HashTable basename_hash;
-               public int cache_file;
-               public weak GLib.HashTable feature_hash;
-               public weak GLib.List features;
-               public weak GLib.List paths;
-               public weak GLib.List plugins;
-               public bool add_feature (Gst.PluginFeature feature);
+               public bool add_feature (owned Gst.PluginFeature feature);
                public void add_path (string path);
-               public bool add_plugin (Gst.Plugin plugin);
+               public bool add_plugin (owned Gst.Plugin plugin);
                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);
-               public Gst.Plugin find_plugin (string name);
+               public Gst.PluginFeature? find_feature (string name, GLib.Type type);
+               public Gst.Plugin? find_plugin (string name);
                public static bool fork_is_enabled ();
                public static void fork_set_enabled (bool enabled);
                public static unowned Gst.Registry get_default ();
@@ -1100,8 +1094,8 @@ namespace Gst {
                public uint32 get_feature_list_cookie ();
                public GLib.List<string> get_path_list ();
                public GLib.List<Gst.Plugin> get_plugin_list ();
-               public Gst.Plugin lookup (string filename);
-               public Gst.PluginFeature lookup_feature (string name);
+               public Gst.Plugin? lookup (string filename);
+               public Gst.PluginFeature? lookup_feature (string name);
                public GLib.List<Gst.Plugin> plugin_filter (Gst.PluginFilter filter, bool first);
                public void remove_feature (Gst.PluginFeature feature);
                public void remove_plugin (Gst.Plugin plugin);
index e4f896c82307842cef97d2367344898b1b87fcfe..c6ced5ac6468839b2655360a26fb7e90662f1d9a 100644 (file)
@@ -487,17 +487,20 @@ gst_query_parse_uri.uri is_out="1" transfer_ownership="1"
 gst_query_set_formats ellipsis="1"
 gst_query_set_formatsv.n_formats hidden="1"
 gst_query_set_formatsv.formats is_array="1" array_length_pos="0.9"
+GstRegistry.* hidden="1"
 gst_registry_feature_filter.filter delegate_target_pos="2.1"
 gst_registry_feature_filter transfer_ownership="1" type_arguments="PluginFeature"
 gst_registry_get_feature_list transfer_ownership="1" type_arguments="PluginFeature"
 gst_registry_get_feature_list_by_plugin transfer_ownership="1" type_arguments="PluginFeature"
 gst_registry_get_path_list transfer_ownership="1" type_arguments="string"
 gst_registry_get_plugin_list transfer_ownership="1" type_arguments="Plugin"
-gst_registry_lookup transfer_ownership="1"
-gst_registry_lookup_feature transfer_ownership="1"
-gst_registry_find_plugin transfer_ownership="1"
-gst_registry_find_feature transfer_ownership="1"
+gst_registry_lookup transfer_ownership="1" nullable="1"
+gst_registry_lookup_feature transfer_ownership="1" nullable="1"
+gst_registry_find_plugin transfer_ownership="1" nullable="1"
+gst_registry_find_feature transfer_ownership="1" nullable="1"
 gst_registry_plugin_filter transfer_ownership="1" type_arguments="Plugin"
+gst_registry_add_plugin.plugin transfer_ownership="1"
+gst_registry_add_feature.feature transfer_ownership="1"
 gst_segment_clip.clip_start is_out="1"
 gst_segment_clip.clip_stop is_out="1"
 gst_segment_copy transfer_ownership="1"