From 6d4975fe8f6a3b256d26ce73d97aaa79d2c26d12 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 27 Mar 2010 16:47:21 +0100 Subject: [PATCH] gstreamer: Fix Gst.ElementFactory bindings Use correct ownership of returns/parameters, correct generic types and hide private API. --- vapi/gstreamer-0.10.vapi | 14 ++++---------- .../gstreamer-0.10/gstreamer-0.10.metadata | 4 ++++ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi index d0622c30e..61dd1afdc 100644 --- a/vapi/gstreamer-0.10.vapi +++ b/vapi/gstreamer-0.10.vapi @@ -429,25 +429,19 @@ namespace Gst { } [CCode (cheader_filename = "gst/gst.h")] public class ElementFactory : Gst.PluginFeature { - public Gst.ElementDetails details; - public weak GLib.List interfaces; - public uint numpadtemplates; - public weak GLib.List staticpadtemplates; - public GLib.Type type; - public weak string uri_protocols; - public uint uri_type; public bool can_sink_caps (Gst.Caps caps); public bool can_src_caps (Gst.Caps caps); public Gst.Element? create (string? name); - public static unowned Gst.ElementFactory find (string name); + public static Gst.ElementFactory? find (string name); public unowned string get_author (); public unowned string get_description (); public GLib.Type get_element_type (); public unowned string get_klass (); public unowned string get_longname (); public uint get_num_pad_templates (); - public unowned GLib.List get_static_pad_templates (); - public unowned string get_uri_protocols (); + public unowned GLib.List get_static_pad_templates (); + [CCode (array_length = false, array_null_terminated = true)] + public string[]? get_uri_protocols (); public int get_uri_type (); public bool has_interface (string interfacename); public static Gst.Element? make (string factoryname, string? name); diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata index cf5c003f6..6e2605012 100644 --- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata +++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata @@ -162,10 +162,14 @@ gst_element_register.plugin nullable="1" gst_element_message_full.text nullable="1" gst_element_message_full.debug nullable="1" GstElementDetails is_value_type="1" +GstElementFactory.* hidden="1" gst_element_factory_make transfer_ownership="1" nullable="1" gst_element_factory_make.name nullable="1" gst_element_factory_create transfer_ownership="1" nullable="1" gst_element_factory_create.name nullable="1" +gst_element_factory_get_static_pad_templates type_arguments="StaticPadTemplate" +gst_element_factory_find transfer_ownership="1" nullable="1" +gst_element_factory_get_uri_protocols is_array="1" array_null_terminated="1" transfer_ownership="1" nullable="1" GstEvent base_class="GstMiniObject" GstEvent.mini_object hidden="1" GstEventClass hidden="1" -- 2.47.3