Added Vala bindings

This commit is contained in:
Sebastian Pölsterl 2008-11-30 23:41:20 +01:00 committed by Wim Taymans
parent 51775b87d1
commit ce20c2ff8c
6 changed files with 338 additions and 0 deletions

View file

@ -0,0 +1,113 @@
/* gst-rtsp-server.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
namespace Gst {
[CCode (cheader_filename = "gst/rtsp-server/rstp-client.h")]
public class RTSPClient : GLib.Object {
public void* address;
public weak Gst.RTSPConnection connection;
public weak Gst.RTSPMedia media;
public weak Gst.RTSPSessionPool pool;
public weak Gst.RTSPSession session;
public weak GLib.Thread thread;
public bool accept (GLib.IOChannel source);
public weak Gst.RTSPSessionPool get_session_pool ();
[CCode (has_construct_function = false)]
public RTSPClient (Gst.RTSPServer server);
public void set_session_pool (Gst.RTSPSessionPool pool);
[NoAccessorMethod]
public Gst.RTSPServer server { get; construct; }
}
[CCode (cheader_filename = "gst/rtsp-server/rstp-media.h")]
public class RTSPMedia : GLib.Object {
public bool prepared;
public weak GLib.Array streams;
public weak Gst.RTSPMediaStream get_stream (uint idx);
public uint n_streams ();
[CCode (has_construct_function = false)]
public RTSPMedia (string name);
[NoAccessorMethod]
public string location { get; construct; }
[NoAccessorMethod]
public Gst.RTSPUrl url { get; construct; }
}
[Compact]
[CCode (cheader_filename = "gst/rtsp-server/rstp-media.h")]
public class RTSPMediaStream {
public weak Gst.Caps caps;
public ulong caps_sig;
public weak Gst.Element element;
public uint idx;
public weak Gst.RTSPMedia media;
public weak string name;
public weak Gst.Element payloader;
public weak Gst.Pad srcpad;
}
[CCode (cheader_filename = "gst/rtsp-server/rstp-server.h")]
public class RTSPServer : Gst.Object {
public weak string host;
public weak GLib.IOChannel io_channel;
public weak GLib.TimeoutSource io_watch;
public weak Gst.RTSPSessionPool pool;
public int server_port;
public void* server_sin;
public weak Gst.PollFD server_sock;
public uint attach (GLib.MainContext context);
public virtual weak Gst.Element prepare_media (Gst.RTSPMedia media, Gst.Bin bin);
[NoAccessorMethod]
public int port { get; construct; }
}
[CCode (cheader_filename = "gst/gst.h")]
public class RTSPSession : GLib.Object {
public weak GLib.List medias;
public weak string sessionid;
public weak Gst.RTSPSessionMedia get_media (Gst.RTSPMedia media);
public static weak Gst.RTSPSessionStream get_stream (Gst.RTSPSessionMedia media, uint idx);
[CCode (has_construct_function = false)]
public RTSPSession (string sessionid);
}
[Compact]
[CCode (cheader_filename = "gst/gst.h")]
public class RTSPSessionMedia {
public weak Gst.Element fdsink;
public weak Gst.RTSPMedia media;
public weak Gst.Element pipeline;
public weak Gst.Element rtpbin;
public weak Gst.RTSPSession session;
public weak GLib.List streams;
public Gst.StateChangeReturn pause ();
public Gst.StateChangeReturn play ();
public Gst.StateChangeReturn stop ();
}
[CCode (cheader_filename = "gst/gst.h")]
public class RTSPSessionPool : GLib.Object {
public weak GLib.Mutex @lock;
public weak GLib.HashTable sessions;
public weak Gst.RTSPSession create ();
public weak Gst.RTSPSession find (string sessionid);
[CCode (has_construct_function = false)]
public RTSPSessionPool ();
public void remove (Gst.RTSPSession sess);
}
[Compact]
[CCode (cheader_filename = "gst/gst.h")]
public class RTSPSessionStream {
public weak Gst.RTSPTransport client_trans;
public weak string destination;
public uint idx;
public weak Gst.RTSPSessionMedia media;
public weak Gst.RTSPMediaStream media_stream;
public weak Gst.Pad recv_rtcp_sink;
public weak Gst.Pad send_rtcp_src;
public weak Gst.Pad send_rtp_sink;
public weak Gst.Pad send_rtp_src;
public weak Gst.RTSPTransport server_trans;
[NoArrayLength]
public weak Gst.Element[] udpsink;
[NoArrayLength]
public weak Gst.Element[] udpsrc;
public weak Gst.RTSPTransport set_transport (string destination, Gst.RTSPTransport ct);
}
[CCode (cheader_filename = "gst/gst.h")]
public const int HAVE_RTSP_URL_BOXED;
}

View file

@ -0,0 +1,4 @@
gstreamer-0.10
gstreamer-sdp-0.10
gstreamer-rtsp-0.10
gmodule-2.0

View file

@ -0,0 +1,2 @@
include/gstreamer-0.10/gst/rtsp-server
lib/libgstrtspserver-0.10.so

View file

@ -0,0 +1,213 @@
<?xml version="1.0"?>
<api version="1.0">
<namespace name="Gst">
<struct name="GstRTSPMediaStream">
<field name="media" type="GstRTSPMedia*"/>
<field name="idx" type="guint"/>
<field name="name" type="gchar*"/>
<field name="element" type="GstElement*"/>
<field name="srcpad" type="GstPad*"/>
<field name="payloader" type="GstElement*"/>
<field name="caps_sig" type="gulong"/>
<field name="caps" type="GstCaps*"/>
</struct>
<struct name="GstRTSPSessionMedia">
<method name="pause" symbol="gst_rtsp_session_media_pause">
<return-type type="GstStateChangeReturn"/>
<parameters>
<parameter name="media" type="GstRTSPSessionMedia*"/>
</parameters>
</method>
<method name="play" symbol="gst_rtsp_session_media_play">
<return-type type="GstStateChangeReturn"/>
<parameters>
<parameter name="media" type="GstRTSPSessionMedia*"/>
</parameters>
</method>
<method name="stop" symbol="gst_rtsp_session_media_stop">
<return-type type="GstStateChangeReturn"/>
<parameters>
<parameter name="media" type="GstRTSPSessionMedia*"/>
</parameters>
</method>
<field name="session" type="GstRTSPSession*"/>
<field name="media" type="GstRTSPMedia*"/>
<field name="pipeline" type="GstElement*"/>
<field name="rtpbin" type="GstElement*"/>
<field name="fdsink" type="GstElement*"/>
<field name="streams" type="GList*"/>
</struct>
<struct name="GstRTSPSessionStream">
<method name="set_transport" symbol="gst_rtsp_session_stream_set_transport">
<return-type type="GstRTSPTransport*"/>
<parameters>
<parameter name="stream" type="GstRTSPSessionStream*"/>
<parameter name="destination" type="gchar*"/>
<parameter name="ct" type="GstRTSPTransport*"/>
</parameters>
</method>
<field name="idx" type="guint"/>
<field name="media" type="GstRTSPSessionMedia*"/>
<field name="media_stream" type="GstRTSPMediaStream*"/>
<field name="destination" type="gchar*"/>
<field name="client_trans" type="GstRTSPTransport*"/>
<field name="server_trans" type="GstRTSPTransport*"/>
<field name="recv_rtcp_sink" type="GstPad*"/>
<field name="send_rtp_sink" type="GstPad*"/>
<field name="send_rtp_src" type="GstPad*"/>
<field name="send_rtcp_src" type="GstPad*"/>
<field name="udpsrc" type="GstElement*[]"/>
<field name="udpsink" type="GstElement*[]"/>
</struct>
<boxed name="GstRTSPUrl" type-name="GstRTSPUrl" get-type="gst_rtsp_url_get_type">
</boxed>
<object name="GstRTSPClient" parent="GObject" type-name="GstRTSPClient" get-type="gst_rtsp_client_get_type">
<method name="accept" symbol="gst_rtsp_client_accept">
<return-type type="gboolean"/>
<parameters>
<parameter name="client" type="GstRTSPClient*"/>
<parameter name="source" type="GIOChannel*"/>
</parameters>
</method>
<method name="get_session_pool" symbol="gst_rtsp_client_get_session_pool">
<return-type type="GstRTSPSessionPool*"/>
<parameters>
<parameter name="client" type="GstRTSPClient*"/>
</parameters>
</method>
<constructor name="new" symbol="gst_rtsp_client_new">
<return-type type="GstRTSPClient*"/>
<parameters>
<parameter name="server" type="GstRTSPServer*"/>
</parameters>
</constructor>
<method name="set_session_pool" symbol="gst_rtsp_client_set_session_pool">
<return-type type="void"/>
<parameters>
<parameter name="client" type="GstRTSPClient*"/>
<parameter name="pool" type="GstRTSPSessionPool*"/>
</parameters>
</method>
<property name="server" type="GstRTSPServer*" readable="1" writable="1" construct="0" construct-only="1"/>
<field name="server" type="GstRTSPServer*"/>
<field name="connection" type="GstRTSPConnection*"/>
<field name="address" type="struct sockaddr_in"/>
<field name="media" type="GstRTSPMedia*"/>
<field name="pool" type="GstRTSPSessionPool*"/>
<field name="session" type="GstRTSPSession*"/>
<field name="thread" type="GThread*"/>
</object>
<object name="GstRTSPMedia" parent="GObject" type-name="GstRTSPMedia" get-type="gst_rtsp_media_get_type">
<method name="get_stream" symbol="gst_rtsp_media_get_stream">
<return-type type="GstRTSPMediaStream*"/>
<parameters>
<parameter name="media" type="GstRTSPMedia*"/>
<parameter name="idx" type="guint"/>
</parameters>
</method>
<method name="n_streams" symbol="gst_rtsp_media_n_streams">
<return-type type="guint"/>
<parameters>
<parameter name="media" type="GstRTSPMedia*"/>
</parameters>
</method>
<constructor name="new" symbol="gst_rtsp_media_new">
<return-type type="GstRTSPMedia*"/>
<parameters>
<parameter name="name" type="gchar*"/>
</parameters>
</constructor>
<property name="location" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="url" type="GstRTSPUrl*" readable="1" writable="1" construct="0" construct-only="1"/>
<field name="location" type="gchar*"/>
<field name="url" type="GstRTSPUrl*"/>
<field name="prepared" type="gboolean"/>
<field name="streams" type="GArray*"/>
</object>
<object name="GstRTSPServer" parent="GstObject" type-name="GstRTSPServer" get-type="gst_rtsp_server_get_type">
<method name="attach" symbol="gst_rtsp_server_attach">
<return-type type="guint"/>
<parameters>
<parameter name="server" type="GstRTSPServer*"/>
<parameter name="context" type="GMainContext*"/>
</parameters>
</method>
<method name="prepare_media" symbol="gst_rtsp_server_prepare_media">
<return-type type="gboolean"/>
<parameters>
<parameter name="server" type="GstRTSPServer*"/>
<parameter name="media" type="GstRTSPMedia*"/>
<parameter name="bin" type="GstBin*"/>
</parameters>
</method>
<property name="port" type="gint" readable="1" writable="1" construct="0" construct-only="1"/>
<vfunc name="prepare_media">
<return-type type="GstElement*"/>
<parameters>
<parameter name="server" type="GstRTSPServer*"/>
<parameter name="media" type="GstRTSPMedia*"/>
<parameter name="bin" type="GstBin*"/>
</parameters>
</vfunc>
<field name="server_port" type="int"/>
<field name="host" type="gchar*"/>
<field name="server_sin" type="struct sockaddr_in"/>
<field name="server_sock" type="GstPollFD"/>
<field name="io_channel" type="GIOChannel*"/>
<field name="io_watch" type="GSource*"/>
<field name="pool" type="GstRTSPSessionPool*"/>
</object>
<object name="GstRTSPSession" parent="GObject" type-name="GstRTSPSession" get-type="gst_rtsp_session_get_type">
<method name="get_media" symbol="gst_rtsp_session_get_media">
<return-type type="GstRTSPSessionMedia*"/>
<parameters>
<parameter name="sess" type="GstRTSPSession*"/>
<parameter name="media" type="GstRTSPMedia*"/>
</parameters>
</method>
<method name="get_stream" symbol="gst_rtsp_session_get_stream">
<return-type type="GstRTSPSessionStream*"/>
<parameters>
<parameter name="media" type="GstRTSPSessionMedia*"/>
<parameter name="idx" type="guint"/>
</parameters>
</method>
<constructor name="new" symbol="gst_rtsp_session_new">
<return-type type="GstRTSPSession*"/>
<parameters>
<parameter name="sessionid" type="gchar*"/>
</parameters>
</constructor>
<field name="sessionid" type="gchar*"/>
<field name="medias" type="GList*"/>
</object>
<object name="GstRTSPSessionPool" parent="GObject" type-name="GstRTSPSessionPool" get-type="gst_rtsp_session_pool_get_type">
<method name="create" symbol="gst_rtsp_session_pool_create">
<return-type type="GstRTSPSession*"/>
<parameters>
<parameter name="pool" type="GstRTSPSessionPool*"/>
</parameters>
</method>
<method name="find" symbol="gst_rtsp_session_pool_find">
<return-type type="GstRTSPSession*"/>
<parameters>
<parameter name="pool" type="GstRTSPSessionPool*"/>
<parameter name="sessionid" type="gchar*"/>
</parameters>
</method>
<constructor name="new" symbol="gst_rtsp_session_pool_new">
<return-type type="GstRTSPSessionPool*"/>
</constructor>
<method name="remove" symbol="gst_rtsp_session_pool_remove">
<return-type type="void"/>
<parameters>
<parameter name="pool" type="GstRTSPSessionPool*"/>
<parameter name="sess" type="GstRTSPSession*"/>
</parameters>
</method>
<field name="lock" type="GMutex*"/>
<field name="sessions" type="GHashTable*"/>
</object>
<constant name="HAVE_RTSP_URL_BOXED" type="int" value="1"/>
</namespace>
</api>

View file

@ -0,0 +1,5 @@
Gst cprefix="Gst" lower_case_cprefix="gst_" cheader_filename="gst/gst.h"
GstRTSPMediaStream cheader_filename="gst/rtsp-server/rstp-media.h"
GstRTSPMedia cheader_filename="gst/rtsp-server/rstp-media.h"
GstRTSPClient cheader_filename="gst/rtsp-server/rstp-client.h"
GstRTSPServer cheader_filename="gst/rtsp-server/rstp-server.h"

View file

@ -0,0 +1 @@
Gst