[vala] gstreamer-0.10: Fix Gst.Registry bindings
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gstreamer-0.10: Fix Gst.Registry bindings
- Date: Thu, 24 Jun 2010 16:38:04 +0000 (UTC)
commit 709bad73ca042efc81b554825ec2cd2804c84c88
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date: Thu Jun 24 18:11:05 2010 +0200
gstreamer-0.10: Fix Gst.Registry bindings
Some nullable and parameter ownership changes
vapi/gstreamer-0.10.vapi | 18 ++++++------------
.../gstreamer-0.10/gstreamer-0.10.metadata | 11 +++++++----
2 files changed, 13 insertions(+), 16 deletions(-)
---
diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi
index 1c87f49..3e05286 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<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);
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
index e4f896c..c6ced5a 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]