Move plugin wrappers into seperate namespaces

This commit is contained in:
Sebastian Dröge 2009-05-06 14:09:23 +02:00
parent 890a6f31e3
commit 533f9a16b5
20 changed files with 97 additions and 137 deletions

View file

@ -1,4 +1,4 @@
<Type Name="DecodeBin" FullName="Gst.DecodeBin">
<Type Name="DecodeBin" FullName="Gst.BasePlugins.DecodeBin">
<TypeSignature Language="C#" Value="public class DecodeBin : Gst.Bin" />
<AssemblyInfo>
<AssemblyName>gstreamer-sharp</AssemblyName>
@ -15,7 +15,7 @@
<Members>
<Member MemberName=".ctor">
<Member MemberName=".ctor"><MemberSignature Language="C#" Value="public DecodeBin (GLib.Object o);" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>0.9.5.99</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="o" Type="GLib.Object" /></Parameters><Docs><param name="o">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DecodeBin (IntPtr raw);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
@ -24,12 +24,12 @@
<Parameters><Parameter Name="raw" Type="System.IntPtr" /></Parameters>
<Docs><param name="raw">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
</Member><Member MemberName="NewDecodedPad">
<MemberSignature Language="C#" Value="public event Gst.NewDecodedPadHandler NewDecodedPad;" />
<MemberSignature Language="C#" Value="public event Gst.BasePlugins.NewDecodedPadHandler NewDecodedPad;" />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.9.5.99</AssemblyVersion>
</AssemblyInfo>
<ReturnValue><ReturnType>Gst.NewDecodedPadHandler</ReturnType></ReturnValue>
<ReturnValue><ReturnType>Gst.BasePlugins.NewDecodedPadHandler</ReturnType></ReturnValue>
<Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
</Member><Member MemberName="OnNewDecodedPad">
<MemberSignature Language="C#" Value="protected virtual void OnNewDecodedPad (object o, GLib.SignalArgs args);" />

View file

@ -1,4 +1,4 @@
<Type Name="NewDecodedPadArgs" FullName="Gst.NewDecodedPadArgs">
<Type Name="NewDecodedPadArgs" FullName="Gst.BasePlugins.NewDecodedPadArgs">
<TypeSignature Language="C#" Value="public class NewDecodedPadArgs : GLib.SignalArgs" />
<AssemblyInfo>
<AssemblyName>gstreamer-sharp</AssemblyName>

View file

@ -1,4 +1,4 @@
<Type Name="NewDecodedPadHandler" FullName="Gst.NewDecodedPadHandler">
<Type Name="NewDecodedPadHandler" FullName="Gst.BasePlugins.NewDecodedPadHandler">
<TypeSignature Language="C#" Value="public delegate void NewDecodedPadHandler(object o, NewDecodedPadArgs args);" />
<AssemblyInfo>
<AssemblyName>gstreamer-sharp</AssemblyName>
@ -9,7 +9,7 @@
</Base>
<Parameters>
<Parameter Name="o" Type="System.Object" />
<Parameter Name="args" Type="Gst.NewDecodedPadArgs" />
<Parameter Name="args" Type="Gst.BasePlugins.NewDecodedPadArgs" />
</Parameters>
<ReturnValue>
<ReturnType>System.Void</ReturnType>

View file

@ -1,4 +1,4 @@
<Type Name="PlayBin" FullName="Gst.PlayBin">
<Type Name="PlayBin" FullName="Gst.BasePlugins.PlayBin">
<TypeSignature Language="C#" Value="public class PlayBin : Gst.Pipeline" />
<AssemblyInfo>
<AssemblyName>gstreamer-sharp</AssemblyName>
@ -20,7 +20,7 @@
<Member MemberName=".ctor">
<Member MemberName=".ctor"><MemberSignature Language="C#" Value="public PlayBin (GLib.Object o);" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>0.9.5.99</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="o" Type="GLib.Object" /></Parameters><Docs><param name="o">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public PlayBin (IntPtr raw);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>

View file

@ -1,4 +1,4 @@
<Type Name="HaveTypeArgs" FullName="Gst.HaveTypeArgs">
<Type Name="HaveTypeArgs" FullName="Gst.CorePlugins.HaveTypeArgs">
<TypeSignature Language="C#" Value="public class HaveTypeArgs : GLib.SignalArgs" />
<AssemblyInfo>
<AssemblyName>gstreamer-sharp</AssemblyName>

View file

@ -1,4 +1,4 @@
<Type Name="HaveTypeHandler" FullName="Gst.HaveTypeHandler">
<Type Name="HaveTypeHandler" FullName="Gst.CorePlugins.HaveTypeHandler">
<TypeSignature Language="C#" Value="public delegate void HaveTypeHandler(object o, HaveTypeArgs args);" />
<AssemblyInfo>
<AssemblyName>gstreamer-sharp</AssemblyName>
@ -9,7 +9,7 @@
</Base>
<Parameters>
<Parameter Name="o" Type="System.Object" />
<Parameter Name="args" Type="Gst.HaveTypeArgs" />
<Parameter Name="args" Type="Gst.CorePlugins.HaveTypeArgs" />
</Parameters>
<ReturnValue>
<ReturnType>System.Void</ReturnType>

View file

@ -1,4 +1,4 @@
<Type Name="TypeFindElement" FullName="Gst.TypeFindElement">
<Type Name="TypeFindElement" FullName="Gst.CorePlugins.TypeFindElement">
<TypeSignature Language="C#" Value="public class TypeFindElement : Gst.Element" />
<AssemblyInfo>
<AssemblyName>gstreamer-sharp</AssemblyName>
@ -19,7 +19,7 @@
<Member MemberName=".ctor">
<Member MemberName=".ctor"><MemberSignature Language="C#" Value="public TypeFindElement (GLib.Object o);" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>0.9.5.99</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="o" Type="GLib.Object" /></Parameters><Docs><param name="o">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public TypeFindElement (IntPtr raw);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
@ -37,20 +37,20 @@
<ReturnValue><ReturnType>Gst.Caps</ReturnType></ReturnValue>
<Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
</Member><Member MemberName="HaveType">
<MemberSignature Language="C#" Value="public event Gst.HaveTypeHandler HaveType;" />
<MemberSignature Language="C#" Value="public event Gst.CorePlugins.HaveTypeHandler HaveType;" />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.9.5.99</AssemblyVersion>
</AssemblyInfo>
<ReturnValue><ReturnType>Gst.HaveTypeHandler</ReturnType></ReturnValue>
<ReturnValue><ReturnType>Gst.CorePlugins.HaveTypeHandler</ReturnType></ReturnValue>
<Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
</Member><Member MemberName="Make">
<MemberSignature Language="C#" Value="public static Gst.TypeFindElement Make (string name);" />
<MemberSignature Language="C#" Value="public static Gst.CorePlugins.TypeFindElement Make (string name);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.9.5.99</AssemblyVersion>
</AssemblyInfo>
<ReturnValue><ReturnType>Gst.TypeFindElement</ReturnType></ReturnValue>
<ReturnValue><ReturnType>Gst.CorePlugins.TypeFindElement</ReturnType></ReturnValue>
<Parameters><Parameter Name="name" Type="System.String" /></Parameters>
<Docs><param name="name">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs>
</Member><Member MemberName="Maximum">

View file

@ -20,18 +20,9 @@
<AssemblyInfo>
<AssemblyVersion>0.9.5.99</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="iface_type" Type="GLib.GType" />
</Parameters>
<Docs>
<param name="iface_type">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
<ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue>
<Parameters><Parameter Name="iface_type" Type="GLib.GType" /></Parameters>
<Docs><param name="iface_type">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs>
</Member>
</Members>
</Type>

View file

@ -17,6 +17,12 @@
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ImplementsInterfaceAdapter ();" />
<MemberType>Constructor</MemberType>
@ -24,114 +30,58 @@
<AssemblyVersion>0.9.5.99</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
</Member><Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ImplementsInterfaceAdapter (Gst.ImplementsInterfaceImplementor implementor);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.9.5.99</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="implementor" Type="Gst.ImplementsInterfaceImplementor" />
</Parameters>
<Docs>
<param name="implementor">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<Parameters><Parameter Name="implementor" Type="Gst.ImplementsInterfaceImplementor" /></Parameters>
<Docs><param name="implementor">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
</Member><Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ImplementsInterfaceAdapter (IntPtr handle);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.9.5.99</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="handle" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="handle">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetObject">
<Parameters><Parameter Name="handle" Type="System.IntPtr" /></Parameters>
<Docs><param name="handle">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
</Member><Member MemberName="GetObject">
<MemberSignature Language="C#" Value="public static Gst.ImplementsInterface GetObject (GLib.Object obj);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.9.5.99</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Gst.ImplementsInterface</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="GLib.Object" />
</Parameters>
<Docs>
<param name="obj">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetObject">
<ReturnValue><ReturnType>Gst.ImplementsInterface</ReturnType></ReturnValue>
<Parameters><Parameter Name="obj" Type="GLib.Object" /></Parameters>
<Docs><param name="obj">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs>
</Member><Member MemberName="GetObject">
<MemberSignature Language="C#" Value="public static Gst.ImplementsInterface GetObject (IntPtr handle, bool owned);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.9.5.99</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Gst.ImplementsInterface</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="handle" Type="System.IntPtr" />
<Parameter Name="owned" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="handle">To be added.</param>
<param name="owned">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Implementor">
<ReturnValue><ReturnType>Gst.ImplementsInterface</ReturnType></ReturnValue>
<Parameters><Parameter Name="handle" Type="System.IntPtr" /><Parameter Name="owned" Type="System.Boolean" /></Parameters>
<Docs><param name="handle">To be added.</param><param name="owned">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs>
</Member><Member MemberName="Implementor">
<MemberSignature Language="C#" Value="public Gst.ImplementsInterfaceImplementor Implementor { get; }" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.9.5.99</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Gst.ImplementsInterfaceImplementor</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Supported">
<ReturnValue><ReturnType>Gst.ImplementsInterfaceImplementor</ReturnType></ReturnValue>
<Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
</Member><Member MemberName="Supported">
<MemberSignature Language="C#" Value="public bool Supported (GLib.GType iface_type);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.9.5.99</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="iface_type" Type="GLib.GType" />
</Parameters>
<Docs>
<param name="iface_type">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
<ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue>
<Parameters><Parameter Name="iface_type" Type="GLib.GType" /></Parameters>
<Docs><param name="iface_type">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs>
</Member>
</Members>
</Type>

View file

@ -25,18 +25,9 @@
<AssemblyInfo>
<AssemblyVersion>0.9.5.99</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="iface_type" Type="GLib.GType" />
</Parameters>
<Docs>
<param name="iface_type">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
<ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue>
<Parameters><Parameter Name="iface_type" Type="GLib.GType" /></Parameters>
<Docs><param name="iface_type">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs>
</Member>
</Members>
</Type>

View file

@ -39,7 +39,6 @@
<Type Name="ClockType" Kind="Enumeration" />
<Type Name="CoreError" Kind="Enumeration" />
<Type Name="Date" Kind="Structure" />
<Type Name="DecodeBin" Kind="Class" />
<Type Name="DoLatencyArgs" Kind="Class" />
<Type Name="DoLatencyHandler" Kind="Delegate" />
<Type Name="DoubleRange" Kind="Structure" />
@ -68,8 +67,6 @@
<Type Name="GhostPad" Kind="Class" />
<Type Name="HaveDataArgs" Kind="Class" />
<Type Name="HaveDataHandler" Kind="Delegate" />
<Type Name="HaveTypeArgs" Kind="Class" />
<Type Name="HaveTypeHandler" Kind="Delegate" />
<Type Name="ImplementsInterface" Kind="Interface" />
<Type Name="ImplementsInterfaceAdapter" Kind="Class" />
<Type Name="ImplementsInterfaceImplementor" Kind="Interface" />
@ -95,8 +92,6 @@
<Type Name="MessageType" Kind="Enumeration" />
<Type Name="MiniObject" Kind="Class" />
<Type Name="MiniObjectFlags" Kind="Enumeration" />
<Type Name="NewDecodedPadArgs" Kind="Class" />
<Type Name="NewDecodedPadHandler" Kind="Delegate" />
<Type Name="NewUriArgs" Kind="Class" />
<Type Name="NewUriHandler" Kind="Delegate" />
<Type Name="Object" Kind="Class" />
@ -144,7 +139,6 @@
<Type Name="ParseFlags" Kind="Enumeration" />
<Type Name="Pipeline" Kind="Class" />
<Type Name="PipelineFlags" Kind="Enumeration" />
<Type Name="PlayBin" Kind="Class" />
<Type Name="Plugin" Kind="Class" />
<Type Name="PluginAddedArgs" Kind="Class" />
<Type Name="PluginAddedHandler" Kind="Delegate" />
@ -190,7 +184,6 @@
<Type Name="TaskFunction" Kind="Delegate" />
<Type Name="TaskState" Kind="Enumeration" />
<Type Name="TypeFind" Kind="Class" />
<Type Name="TypeFindElement" Kind="Class" />
<Type Name="TypeFindFactory" Kind="Class" />
<Type Name="TypeFindFunction" Kind="Delegate" />
<Type Name="TypeFindGetLengthFunction" Kind="Delegate" />
@ -206,6 +199,17 @@
<Type Name="Util" Kind="Class" />
<Type Name="Version" Kind="Class" />
</Namespace>
<Namespace Name="Gst.BasePlugins">
<Type Name="DecodeBin" Kind="Class" />
<Type Name="NewDecodedPadArgs" Kind="Class" />
<Type Name="NewDecodedPadHandler" Kind="Delegate" />
<Type Name="PlayBin" Kind="Class" />
</Namespace>
<Namespace Name="Gst.CorePlugins">
<Type Name="HaveTypeArgs" Kind="Class" />
<Type Name="HaveTypeHandler" Kind="Delegate" />
<Type Name="TypeFindElement" Kind="Class" />
</Namespace>
</Types>
<Title>gst-sharp</Title>
</Overview>

View file

@ -0,0 +1,6 @@
<Namespace Name="Gst.BasePlugins">
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Namespace>

View file

@ -0,0 +1,6 @@
<Namespace Name="Gst.CorePlugins">
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Namespace>

View file

@ -44,13 +44,12 @@ sources = \
AssemblyInfo.cs \
GError.cs \
Value.cs \
plugins-base/PlayBin.cs \
plugins-base/DecodeBin.cs \
plugins-base/TypeFindElement.cs \
GstSharp.PadQueryTypeFunctionNative.cs \
PadQueryTypeFunction.cs \
TypeFindDelegates.cs \
PresetDefault.cs
PresetDefault.cs \
coreplugins/*.cs \
baseplugins/*.cs
overrides = \
override/URIHandlerAdapter.cs

View file

@ -10,7 +10,7 @@
using System;
using Gst;
namespace Gst
namespace Gst.BasePlugins
{
public delegate void NewDecodedPadHandler(object o, NewDecodedPadArgs args);
@ -32,6 +32,10 @@ namespace Gst
public DecodeBin(IntPtr raw) : base(raw)
{
}
public DecodeBin (GLib.Object o) : base (o.Handle)
{
}
protected virtual void OnNewDecodedPad(object o, GLib.SignalArgs args)
{

View file

@ -11,7 +11,7 @@ using System;
using System.Collections;
using System.Runtime.InteropServices;
namespace Gst
namespace Gst.BasePlugins
{
public class PlayBin : Pipeline
{
@ -19,6 +19,8 @@ namespace Gst
{
}
public PlayBin(GLib.Object o) : base (o.Handle) {}
[GLib.Property("uri")]
public string Uri {
get {

View file

@ -9,7 +9,7 @@
using System;
namespace Gst
namespace Gst.CorePlugins
{
public delegate void HaveTypeHandler(object o, HaveTypeArgs args);
@ -34,9 +34,13 @@ namespace Gst
{
}
public TypeFindElement(GLib.Object o) : base(o.Handle)
{
}
public static TypeFindElement Make(string name)
{
return ElementFactory.Make("typefind", name) as TypeFindElement;
return new TypeFindElement (ElementFactory.Make("typefind", name));
}
protected virtual void OnHaveType(object o, GLib.SignalArgs args)

View file

@ -9,6 +9,7 @@
using System;
using Gst;
using Gst.BasePlugins;
public delegate void ErrorHandler(object o, ErrorArgs args);
public delegate void ProgressHandler(object o, ProgressArgs args);
@ -95,7 +96,7 @@ public class DecodeBinTranscoder : IDisposable
filesink = ElementFactory.Make("filesink", "filesink");
audioconvert = ElementFactory.Make("audioconvert", "audioconvert");
encoder = ElementFactory.Make("wavenc", "wavenc");
decodebin = ElementFactory.Make("decodebin", "decodebin") as DecodeBin;
decodebin = new DecodeBin (ElementFactory.Make("decodebin", "decodebin"));
decodebin.NewDecodedPad += OnNewDecodedPad;
pipeline.Add (filesrc, decodebin, audioconvert, encoder, filesink);

View file

@ -4,6 +4,7 @@ using System;
using GLib;
using Gst;
using Gst.BasePlugins;
public class PlayBinPlayer
@ -25,7 +26,7 @@ public class PlayBinPlayer
Gst.Application.Init ();
loop = new MainLoop ();
play = ElementFactory.Make ("playbin", "play") as PlayBin;
play = new PlayBin (ElementFactory.Make ("playbin", "play"));
if (play == null) {
Console.WriteLine ("error creating a playbin gstreamer object");

View file

@ -1,5 +1,6 @@
using System;
using Gst;
using Gst.CorePlugins;
public static class GstTypefindTest
{