From ce20c2ff8c0d1e15b861fbc9bb43681d5d283344 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20P=C3=B6lsterl?= Date: Sun, 30 Nov 2008 23:41:20 +0100 Subject: [PATCH] Added Vala bindings --- bindings/vala/gst-rtsp-server.vapi | 113 ++++++++++++ bindings/vala/packages/gst-rtsp-server.deps | 4 + bindings/vala/packages/gst-rtsp-server.files | 2 + bindings/vala/packages/gst-rtsp-server.gi | 213 +++++++++++++++++++++++ bindings/vala/packages/gst-rtsp-server.metadata | 5 + bindings/vala/packages/gst-rtsp-server.namespace | 1 + 6 files changed, 338 insertions(+) create mode 100644 bindings/vala/gst-rtsp-server.vapi create mode 100644 bindings/vala/packages/gst-rtsp-server.deps create mode 100644 bindings/vala/packages/gst-rtsp-server.files create mode 100644 bindings/vala/packages/gst-rtsp-server.gi create mode 100644 bindings/vala/packages/gst-rtsp-server.metadata create mode 100644 bindings/vala/packages/gst-rtsp-server.namespace diff --git a/bindings/vala/gst-rtsp-server.vapi b/bindings/vala/gst-rtsp-server.vapi new file mode 100644 index 0000000..744b1d5 --- /dev/null +++ b/bindings/vala/gst-rtsp-server.vapi @@ -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; +} diff --git a/bindings/vala/packages/gst-rtsp-server.deps b/bindings/vala/packages/gst-rtsp-server.deps new file mode 100644 index 0000000..c8d8ea9 --- /dev/null +++ b/bindings/vala/packages/gst-rtsp-server.deps @@ -0,0 +1,4 @@ +gstreamer-0.10 +gstreamer-sdp-0.10 +gstreamer-rtsp-0.10 +gmodule-2.0 diff --git a/bindings/vala/packages/gst-rtsp-server.files b/bindings/vala/packages/gst-rtsp-server.files new file mode 100644 index 0000000..f7e4d23 --- /dev/null +++ b/bindings/vala/packages/gst-rtsp-server.files @@ -0,0 +1,2 @@ +include/gstreamer-0.10/gst/rtsp-server +lib/libgstrtspserver-0.10.so diff --git a/bindings/vala/packages/gst-rtsp-server.gi b/bindings/vala/packages/gst-rtsp-server.gi new file mode 100644 index 0000000..cd14270 --- /dev/null +++ b/bindings/vala/packages/gst-rtsp-server.gi @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bindings/vala/packages/gst-rtsp-server.metadata b/bindings/vala/packages/gst-rtsp-server.metadata new file mode 100644 index 0000000..1381c63 --- /dev/null +++ b/bindings/vala/packages/gst-rtsp-server.metadata @@ -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" diff --git a/bindings/vala/packages/gst-rtsp-server.namespace b/bindings/vala/packages/gst-rtsp-server.namespace new file mode 100644 index 0000000..100750e --- /dev/null +++ b/bindings/vala/packages/gst-rtsp-server.namespace @@ -0,0 +1 @@ +Gst -- 2.7.4