diff --git a/gstreamer-sharp/Bin.custom b/gstreamer-sharp/Bin.custom index 815cbc0c7d..65fc28384f 100644 --- a/gstreamer-sharp/Bin.custom +++ b/gstreamer-sharp/Bin.custom @@ -53,53 +53,6 @@ public Gst.Element GetByInterface (System.Type type) { return GetByInterface (t); } -[DllImport("libgstreamer-0.10.dll") ] -static extern IntPtr gst_bin_iterate_elements (IntPtr bin); -[DllImport("libgstreamer-0.10.dll") ] -static extern IntPtr gst_bin_iterate_recurse (IntPtr bin); -[DllImport("libgstreamer-0.10.dll") ] -static extern IntPtr gst_bin_iterate_sinks (IntPtr bin); -[DllImport("libgstreamer-0.10.dll") ] -static extern IntPtr gst_bin_iterate_sorted (IntPtr bin); -[DllImport("libgstreamer-0.10.dll") ] -static extern IntPtr gst_bin_iterate_sources (IntPtr bin); -[DllImport("libgstreamer-0.10.dll") ] -static extern IntPtr gst_bin_iterate_all_by_interface (IntPtr bin, IntPtr gtype); - -public IEnumerable Elements { - get { - return new Enumerable (gst_bin_iterate_elements (Handle)); - } -} - -public IEnumerable ElementsRecurse { - get { - return new Enumerable (gst_bin_iterate_recurse (Handle)); - } -} - -public IEnumerable ElementsSorted { - get { - return new Enumerable (gst_bin_iterate_sorted (Handle)); - } -} - -public IEnumerable SinkElements { - get { - return new Enumerable (gst_bin_iterate_sinks (Handle)); - } -} - -public IEnumerable SourceElements { - get { - return new Enumerable (gst_bin_iterate_sources (Handle)); - } -} - -public IEnumerable GetAllByInterface (GLib.GType type) { - return new Enumerable (gst_bin_iterate_all_by_interface (Handle, type.Val)); -} - public IEnumerable GetAllByInterface (System.Type type) { if (!type.IsSubclassOf (typeof (GLib.GInterfaceAdapter))) return null; diff --git a/gstreamer-sharp/Element.custom b/gstreamer-sharp/Element.custom index 748a30d4e1..a2243926d5 100644 --- a/gstreamer-sharp/Element.custom +++ b/gstreamer-sharp/Element.custom @@ -25,31 +25,6 @@ public static void Unlink (params Element [] elements) { } } -[DllImport("libgstreamer-0.10.dll") ] -static extern IntPtr gst_element_iterate_pads (IntPtr element); -[DllImport("libgstreamer-0.10.dll") ] -static extern IntPtr gst_element_iterate_src_pads (IntPtr element); -[DllImport("libgstreamer-0.10.dll") ] -static extern IntPtr gst_element_iterate_sink_pads (IntPtr element); - -public IEnumerable Pads { - get { - return new Enumerable (gst_element_iterate_pads (Handle)); - } -} - -public IEnumerable SinkPads { - get { - return new Enumerable (gst_element_iterate_sink_pads (Handle)); - } -} - -public IEnumerable SrcPads { - get { - return new Enumerable (gst_element_iterate_src_pads (Handle)); - } -} - public Gst.StateChangeReturn GetState (out Gst.State state, ulong timeout) { Gst.State pending; return GetState (out state, out pending, timeout); diff --git a/gstreamer-sharp/Gstreamer.metadata b/gstreamer-sharp/Gstreamer.metadata index e9336c74de..a3f0f0437e 100644 --- a/gstreamer-sharp/Gstreamer.metadata +++ b/gstreamer-sharp/Gstreamer.metadata @@ -45,6 +45,12 @@ true true true + GetElements + GetSinkElements + GetSourceElements + GetElementsSorted + GetElementsRecurse + GetAllByInterface @@ -305,6 +311,9 @@ /api/namespace/object[@name='ElementFactory'] /api/namespace/object[@name='ElementFactory'] + GetPads + GetSrcPads + GetSinkPads 1 @@ -472,6 +481,11 @@ out 1 + + + + + @@ -587,9 +601,9 @@ 1 1 1 - 1 - 1 + 1 + GetInternalLinks