From: Sebastian Dröge Date: Thu, 24 Jun 2010 16:11:05 +0000 (+0200) Subject: gstreamer-0.10: Fix Gst.Registry bindings X-Git-Tag: 0.9.3~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=709bad73ca042efc81b554825ec2cd2804c84c88;p=thirdparty%2Fvala.git gstreamer-0.10: Fix Gst.Registry bindings Some nullable and parameter ownership changes --- diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi index 1c87f4904..3e05286bb 100644 --- a/vapi/gstreamer-0.10.vapi +++ b/vapi/gstreamer-0.10.vapi @@ -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 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 get_path_list (); public GLib.List 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 plugin_filter (Gst.PluginFilter filter, bool first); public void remove_feature (Gst.PluginFeature feature); public void remove_plugin (Gst.Plugin plugin); diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata index e4f896c82..c6ced5ac6 100644 --- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata +++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata @@ -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"