Updated Vala bindings
[platform/upstream/gstreamer.git] / bindings / vala / gst-rtsp-server-0.10.vapi
1 /* gst-rtsp-server-0.10.vapi generated by vapigen, do not modify. */
2
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
4 namespace Gst {
5         [CCode (cheader_filename = "gst/rtsp-server/rtsp-client.h")]
6         public class RTSPClient : GLib.Object {
7                 public void* address;
8                 public weak Gst.RTSPConnection connection;
9                 public weak Gst.RTSPMediaFactory factory;
10                 public weak Gst.RTSPMediaMapping mapping;
11                 public weak Gst.RTSPSessionPool pool;
12                 public weak GLib.Thread thread;
13                 public bool accept (GLib.IOChannel channel);
14                 public Gst.RTSPMediaMapping get_media_mapping ();
15                 public Gst.RTSPSessionPool get_session_pool ();
16                 [CCode (has_construct_function = false)]
17                 public RTSPClient ();
18                 public void set_media_mapping (Gst.RTSPMediaMapping mapping);
19                 public void set_session_pool (Gst.RTSPSessionPool pool);
20         }
21         [CCode (cheader_filename = "gst/rtsp-server/rtsp-media.h")]
22         public class RTSPMedia : GLib.Object {
23                 public weak Gst.Element element;
24                 public weak GLib.Array streams;
25                 public unowned Gst.RTSPMediaStream get_stream (uint idx);
26                 public uint n_streams ();
27         }
28         [CCode (cheader_filename = "gst/rtsp-server/rtsp-media-factory.h")]
29         public class RTSPMediaFactory : GLib.Object {
30                 public virtual Gst.RTSPMedia @construct (Gst.RTSPUrl url);
31                 [NoWrapper]
32                 public virtual Gst.Element get_element (Gst.RTSPUrl url);
33                 public string get_launch ();
34                 public bool is_shared ();
35                 [CCode (has_construct_function = false)]
36                 public RTSPMediaFactory ();
37                 public void set_launch (string launch);
38                 public void set_shared (bool shared);
39                 public string launch { get; set; }
40         }
41         [CCode (cheader_filename = "gst/rtsp-server/rtsp-media-mapping.h")]
42         public class RTSPMediaMapping : GLib.Object {
43                 public weak GLib.HashTable mappings;
44                 public void add_factory (string path, Gst.RTSPMediaFactory factory);
45                 public Gst.RTSPMediaFactory find_factory (Gst.RTSPUrl url);
46                 [NoWrapper]
47                 public virtual Gst.RTSPMediaFactory find_media (Gst.RTSPUrl url);
48                 [CCode (has_construct_function = false)]
49                 public RTSPMediaMapping ();
50                 public void remove_factory (string path);
51         }
52         [Compact]
53         [CCode (cheader_filename = "gst/rtsp-server/rstp-media.h")]
54         public class RTSPMediaStream {
55                 public weak Gst.Caps caps;
56                 public ulong caps_sig;
57                 public weak Gst.Element element;
58                 public uint idx;
59                 public weak Gst.RTSPMedia media;
60                 public weak Gst.Element payloader;
61                 public weak Gst.Pad srcpad;
62         }
63         [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h")]
64         public class RTSPServer : GLib.Object {
65                 public weak string host;
66                 public weak GLib.IOChannel io_channel;
67                 public weak GLib.TimeoutSource io_watch;
68                 public int server_port;
69                 public void* server_sin;
70                 public weak Gst.PollFD server_sock;
71                 [NoWrapper]
72                 public virtual Gst.RTSPClient accept_client (GLib.IOChannel channel);
73                 public uint attach (GLib.MainContext context);
74                 public GLib.TimeoutSource create_watch ();
75                 public int get_backlog ();
76                 public GLib.IOChannel get_io_channel ();
77                 public Gst.RTSPMediaMapping get_media_mapping ();
78                 public int get_port ();
79                 public Gst.RTSPSessionPool get_session_pool ();
80                 public static bool io_func (GLib.IOChannel channel, GLib.IOCondition condition, Gst.RTSPServer server);
81                 [CCode (has_construct_function = false)]
82                 public RTSPServer ();
83                 public void set_backlog (int backlog);
84                 public void set_media_mapping (Gst.RTSPMediaMapping mapping);
85                 public void set_port (int port);
86                 public void set_session_pool (Gst.RTSPSessionPool pool);
87                 public int backlog { get; set; }
88                 [NoAccessorMethod]
89                 public Gst.RTSPMediaMapping mapping { owned get; set; }
90                 [NoAccessorMethod]
91                 public Gst.RTSPSessionPool pool { owned get; set; }
92                 public int port { get; set; }
93         }
94         [CCode (cheader_filename = "gst/rtsp-server/rtsp-session.h")]
95         public class RTSPSession : GLib.Object {
96                 public weak GLib.List medias;
97                 public weak string sessionid;
98                 public unowned Gst.RTSPSessionMedia get_media (Gst.RTSPUrl url, Gst.RTSPMediaFactory factory);
99                 [CCode (has_construct_function = false)]
100                 public RTSPSession (string sessionid);
101         }
102         [Compact]
103         [CCode (cheader_filename = "gst/rtsp-server/rtsp-session.h")]
104         public class RTSPSessionMedia {
105                 public weak Gst.RTSPMediaFactory factory;
106                 public weak Gst.Element fdsink;
107                 public weak Gst.RTSPMedia media;
108                 public weak Gst.Element pipeline;
109                 public weak Gst.Element rtpbin;
110                 public weak Gst.RTSPSession session;
111                 public weak GLib.List streams;
112                 public unowned Gst.RTSPSessionStream get_stream (uint idx);
113                 public Gst.StateChangeReturn pause ();
114                 public Gst.StateChangeReturn play ();
115                 public Gst.StateChangeReturn stop ();
116         }
117         [CCode (cheader_filename = "gst/rtsp-server/rtsp-session-pool.h")]
118         public class RTSPSessionPool : GLib.Object {
119                 public weak GLib.Mutex @lock;
120                 public weak GLib.HashTable sessions;
121                 public Gst.RTSPSession create ();
122                 [NoWrapper]
123                 public virtual string create_session_id ();
124                 public Gst.RTSPSession find (string sessionid);
125                 [CCode (has_construct_function = false)]
126                 public RTSPSessionPool ();
127                 public void remove (Gst.RTSPSession sess);
128         }
129         [Compact]
130         [CCode (cheader_filename = "gst/rtsp-server/rtsp-session.h")]
131         public class RTSPSessionStream {
132                 public weak Gst.RTSPTransport client_trans;
133                 public weak string destination;
134                 public uint idx;
135                 public weak Gst.RTSPSessionMedia media;
136                 public weak Gst.RTSPMediaStream media_stream;
137                 public weak Gst.Pad recv_rtcp_sink;
138                 public weak Gst.Pad send_rtcp_src;
139                 public weak Gst.Pad send_rtp_sink;
140                 public weak Gst.Pad send_rtp_src;
141                 public weak Gst.RTSPTransport server_trans;
142                 [CCode (array_length = false)]
143                 public weak Gst.Element[] udpsink;
144                 [CCode (array_length = false)]
145                 public weak Gst.Element[] udpsrc;
146                 public Gst.RTSPTransport set_transport (string destination, Gst.RTSPTransport ct);
147         }
148 }