1 /* gst-rtsp-server-0.10.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
5 [CCode (cheader_filename = "gst/rtsp-server/rtsp-client.h")]
6 public class RTSPClient : GLib.Object {
8 public weak Gst.RTSPConnection connection;
9 public weak Gst.RTSPMedia media;
10 public weak Gst.RTSPSessionPool pool;
11 public weak GLib.Thread thread;
12 public bool accept (GLib.IOChannel source);
13 public weak Gst.RTSPSessionPool get_session_pool ();
14 [CCode (has_construct_function = false)]
15 public RTSPClient (Gst.RTSPServer server);
16 public void set_session_pool (Gst.RTSPSessionPool pool);
18 public Gst.RTSPServer server { get; construct; }
20 [CCode (cheader_filename = "gst/rtsp-server/rtsp-media.h")]
21 public class RTSPMedia : GLib.Object {
23 public weak GLib.Array streams;
24 public weak Gst.RTSPMediaStream get_stream (uint idx);
25 public uint n_streams ();
26 [CCode (has_construct_function = false)]
27 public RTSPMedia (string name);
29 public string location { get; construct; }
31 public Gst.RTSPUrl url { get; construct; }
34 [CCode (cheader_filename = "gst/rtsp-server/rstp-media.h")]
35 public class RTSPMediaStream {
36 public weak Gst.Caps caps;
37 public ulong caps_sig;
38 public weak Gst.Element element;
40 public weak Gst.RTSPMedia media;
41 public weak string name;
42 public weak Gst.Element payloader;
43 public weak Gst.Pad srcpad;
45 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h")]
46 public class RTSPServer : Gst.Object {
47 public weak string host;
48 public weak GLib.IOChannel io_channel;
49 public weak GLib.TimeoutSource io_watch;
50 public weak Gst.RTSPSessionPool pool;
51 public int server_port;
52 public void* server_sin;
53 public weak Gst.PollFD server_sock;
54 public uint attach (GLib.MainContext context);
55 public virtual weak Gst.Element prepare_media (Gst.RTSPMedia media, Gst.Bin bin);
57 public int port { get; construct; }
59 [CCode (cheader_filename = "gst/rtsp-server/rtsp-session.h")]
60 public class RTSPSession : GLib.Object {
61 public weak GLib.List medias;
62 public weak string sessionid;
63 public weak Gst.RTSPSessionMedia get_media (Gst.RTSPMedia media);
64 public static weak Gst.RTSPSessionStream get_stream (Gst.RTSPSessionMedia media, uint idx);
65 [CCode (has_construct_function = false)]
66 public RTSPSession (string sessionid);
69 [CCode (cheader_filename = "gst/rtsp-server/rtsp-session.h")]
70 public class RTSPSessionMedia {
71 public weak Gst.Element fdsink;
72 public weak Gst.RTSPMedia media;
73 public weak Gst.Element pipeline;
74 public weak Gst.Element rtpbin;
75 public weak Gst.RTSPSession session;
76 public weak GLib.List streams;
77 public Gst.StateChangeReturn pause ();
78 public Gst.StateChangeReturn play ();
79 public Gst.StateChangeReturn stop ();
81 [CCode (cheader_filename = "gst/rtsp-server/rtsp-session.h")]
82 public class RTSPSessionPool : GLib.Object {
83 public weak GLib.Mutex @lock;
84 public weak GLib.HashTable sessions;
85 public weak Gst.RTSPSession create ();
86 public weak Gst.RTSPSession find (string sessionid);
87 [CCode (has_construct_function = false)]
88 public RTSPSessionPool ();
89 public void remove (Gst.RTSPSession sess);
92 [CCode (cheader_filename = "gst/rtsp-server/rtsp-session-pool.h")]
93 public class RTSPSessionStream {
94 public weak Gst.RTSPTransport client_trans;
95 public weak string destination;
97 public weak Gst.RTSPSessionMedia media;
98 public weak Gst.RTSPMediaStream media_stream;
99 public weak Gst.Pad recv_rtcp_sink;
100 public weak Gst.Pad send_rtcp_src;
101 public weak Gst.Pad send_rtp_sink;
102 public weak Gst.Pad send_rtp_src;
103 public weak Gst.RTSPTransport server_trans;
105 public weak Gst.Element[] udpsink;
107 public weak Gst.Element[] udpsrc;
108 public weak Gst.RTSPTransport set_transport (string destination, Gst.RTSPTransport ct);