2008-12-12 15:22:02 +00:00
|
|
|
/* gst-rtsp-server-0.10.vapi generated by vapigen, do not modify. */
|
2008-11-30 22:41:20 +00:00
|
|
|
|
|
|
|
[CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
|
|
|
|
namespace Gst {
|
2008-12-08 12:19:40 +00:00
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-client.h")]
|
2008-11-30 22:41:20 +00:00
|
|
|
public class RTSPClient : GLib.Object {
|
|
|
|
public weak Gst.RTSPConnection connection;
|
2009-04-17 19:13:07 +00:00
|
|
|
public weak Gst.RTSPMedia media;
|
|
|
|
public weak GLib.List sessions;
|
|
|
|
public weak GLib.List streams;
|
|
|
|
public weak Gst.RTSPUrl uri;
|
|
|
|
public weak Gst.RTSPWatch watch;
|
|
|
|
public uint watchid;
|
2009-01-23 19:31:11 +00:00
|
|
|
public bool accept (GLib.IOChannel channel);
|
|
|
|
public Gst.RTSPMediaMapping get_media_mapping ();
|
|
|
|
public Gst.RTSPSessionPool get_session_pool ();
|
2008-11-30 22:41:20 +00:00
|
|
|
[CCode (has_construct_function = false)]
|
2009-01-23 19:31:11 +00:00
|
|
|
public RTSPClient ();
|
|
|
|
public void set_media_mapping (Gst.RTSPMediaMapping mapping);
|
2008-11-30 22:41:20 +00:00
|
|
|
public void set_session_pool (Gst.RTSPSessionPool pool);
|
2009-04-17 19:13:07 +00:00
|
|
|
public Gst.RTSPMediaMapping media_mapping { get; set; }
|
|
|
|
public Gst.RTSPSessionPool session_pool { get; set; }
|
2008-11-30 22:41:20 +00:00
|
|
|
}
|
2008-12-08 12:19:40 +00:00
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-media.h")]
|
2008-11-30 22:41:20 +00:00
|
|
|
public class RTSPMedia : GLib.Object {
|
2009-04-17 19:13:07 +00:00
|
|
|
public int active;
|
|
|
|
public bool buffering;
|
2009-06-12 17:28:04 +00:00
|
|
|
public weak GLib.List @dynamic;
|
2009-01-23 19:31:11 +00:00
|
|
|
public weak Gst.Element element;
|
2009-06-12 17:28:04 +00:00
|
|
|
public weak Gst.Element fakesink;
|
2009-04-17 19:13:07 +00:00
|
|
|
public uint id;
|
|
|
|
public bool is_live;
|
2009-06-13 12:38:39 +00:00
|
|
|
public Gst.Element pipeline;
|
2009-04-17 19:13:07 +00:00
|
|
|
public bool prepared;
|
|
|
|
public weak Gst.RTSPTimeRange range;
|
|
|
|
public bool reused;
|
|
|
|
public weak Gst.Element rtpbin;
|
|
|
|
public weak GLib.TimeoutSource source;
|
2008-11-30 22:41:20 +00:00
|
|
|
public weak GLib.Array streams;
|
2009-04-17 19:13:07 +00:00
|
|
|
public Gst.State target_state;
|
2009-01-23 19:31:11 +00:00
|
|
|
public unowned Gst.RTSPMediaStream get_stream (uint idx);
|
2009-04-17 19:13:07 +00:00
|
|
|
[NoWrapper]
|
|
|
|
public virtual bool handle_message (Gst.Message message);
|
|
|
|
public bool is_prepared ();
|
|
|
|
public bool is_reusable ();
|
|
|
|
public bool is_shared ();
|
2008-11-30 22:41:20 +00:00
|
|
|
public uint n_streams ();
|
2009-04-17 19:13:07 +00:00
|
|
|
[CCode (has_construct_function = false)]
|
|
|
|
public RTSPMedia ();
|
|
|
|
public bool prepare ();
|
2009-06-13 12:38:39 +00:00
|
|
|
public void remove_elements ();
|
2009-04-17 19:13:07 +00:00
|
|
|
public bool seek (Gst.RTSPTimeRange range);
|
|
|
|
public void set_reusable (bool reusable);
|
|
|
|
public void set_shared (bool shared);
|
|
|
|
public bool set_state (Gst.State state, GLib.Array trans);
|
2009-06-12 17:28:04 +00:00
|
|
|
public virtual bool unprepare ();
|
2009-04-17 19:13:07 +00:00
|
|
|
[NoAccessorMethod]
|
|
|
|
public bool reusable { get; set; }
|
|
|
|
[NoAccessorMethod]
|
|
|
|
public bool shared { get; set; }
|
|
|
|
public virtual signal void unprepared ();
|
2009-01-23 19:31:11 +00:00
|
|
|
}
|
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-media-factory.h")]
|
|
|
|
public class RTSPMediaFactory : GLib.Object {
|
2009-04-17 19:13:07 +00:00
|
|
|
public weak GLib.Mutex @lock;
|
|
|
|
public weak GLib.HashTable medias;
|
|
|
|
public weak GLib.Mutex medias_lock;
|
2009-06-12 17:28:04 +00:00
|
|
|
public void collect_streams (Gst.RTSPUrl url, Gst.RTSPMedia media);
|
2009-04-17 19:13:07 +00:00
|
|
|
[NoWrapper]
|
|
|
|
public virtual void configure (Gst.RTSPMedia media);
|
2009-01-23 20:03:53 +00:00
|
|
|
public virtual Gst.RTSPMedia? @construct (Gst.RTSPUrl url);
|
2009-01-23 19:31:11 +00:00
|
|
|
[NoWrapper]
|
2009-06-12 17:28:04 +00:00
|
|
|
public virtual Gst.Element create_pipeline (Gst.RTSPMedia media);
|
|
|
|
[NoWrapper]
|
2009-04-17 19:13:07 +00:00
|
|
|
public virtual string gen_key (Gst.RTSPUrl url);
|
|
|
|
[NoWrapper]
|
2009-01-23 20:03:53 +00:00
|
|
|
public virtual Gst.Element? get_element (Gst.RTSPUrl url);
|
2009-01-23 19:31:11 +00:00
|
|
|
public string get_launch ();
|
|
|
|
public bool is_shared ();
|
2008-11-30 22:41:20 +00:00
|
|
|
[CCode (has_construct_function = false)]
|
2009-01-23 19:31:11 +00:00
|
|
|
public RTSPMediaFactory ();
|
|
|
|
public void set_launch (string launch);
|
|
|
|
public void set_shared (bool shared);
|
|
|
|
public string launch { get; set; }
|
2009-04-17 19:13:07 +00:00
|
|
|
[NoAccessorMethod]
|
|
|
|
public bool shared { get; set; }
|
2009-01-23 19:31:11 +00:00
|
|
|
}
|
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-media-mapping.h")]
|
|
|
|
public class RTSPMediaMapping : GLib.Object {
|
|
|
|
public weak GLib.HashTable mappings;
|
|
|
|
public void add_factory (string path, Gst.RTSPMediaFactory factory);
|
2009-01-23 20:03:53 +00:00
|
|
|
public Gst.RTSPMediaFactory? find_factory (Gst.RTSPUrl url);
|
2009-01-23 19:31:11 +00:00
|
|
|
[NoWrapper]
|
2009-01-23 20:03:53 +00:00
|
|
|
public virtual Gst.RTSPMediaFactory? find_media (Gst.RTSPUrl url);
|
2009-01-23 19:31:11 +00:00
|
|
|
[CCode (has_construct_function = false)]
|
|
|
|
public RTSPMediaMapping ();
|
|
|
|
public void remove_factory (string path);
|
2008-11-30 22:41:20 +00:00
|
|
|
}
|
|
|
|
[Compact]
|
2009-05-30 12:38:34 +00:00
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-media.h")]
|
2008-11-30 22:41:20 +00:00
|
|
|
public class RTSPMediaStream {
|
2009-04-17 19:13:07 +00:00
|
|
|
[CCode (array_length = false)]
|
|
|
|
public weak Gst.Element[] appsink;
|
|
|
|
[CCode (array_length = false)]
|
|
|
|
public weak Gst.Element[] appsrc;
|
2008-11-30 22:41:20 +00:00
|
|
|
public weak Gst.Caps caps;
|
|
|
|
public ulong caps_sig;
|
|
|
|
public weak Gst.Element payloader;
|
2009-04-17 19:13:07 +00:00
|
|
|
public bool prepared;
|
|
|
|
public weak Gst.Pad recv_rtcp_sink;
|
2009-06-12 17:28:04 +00:00
|
|
|
public weak Gst.Pad recv_rtp_sink;
|
|
|
|
[CCode (array_length = false)]
|
|
|
|
public weak Gst.Element[] selector;
|
2009-04-17 19:13:07 +00:00
|
|
|
public weak Gst.Pad send_rtcp_src;
|
|
|
|
public weak Gst.Pad send_rtp_sink;
|
|
|
|
public weak Gst.Pad send_rtp_src;
|
|
|
|
public weak Gst.RTSPRange server_port;
|
|
|
|
public weak GLib.Object session;
|
2008-11-30 22:41:20 +00:00
|
|
|
public weak Gst.Pad srcpad;
|
2009-06-12 17:28:04 +00:00
|
|
|
[CCode (array_length = false)]
|
|
|
|
public weak Gst.Element[] tee;
|
2009-04-17 19:13:07 +00:00
|
|
|
public weak GLib.List transports;
|
|
|
|
[CCode (array_length = false)]
|
|
|
|
public weak Gst.Element[] udpsink;
|
|
|
|
[CCode (array_length = false)]
|
|
|
|
public weak Gst.Element[] udpsrc;
|
|
|
|
public Gst.FlowReturn rtcp (Gst.Buffer buffer);
|
|
|
|
public Gst.FlowReturn rtp (Gst.Buffer buffer);
|
|
|
|
}
|
|
|
|
[Compact]
|
2009-06-12 17:28:04 +00:00
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-media.h")]
|
2009-04-17 19:13:07 +00:00
|
|
|
public class RTSPMediaTrans {
|
2009-06-12 17:28:04 +00:00
|
|
|
public bool active;
|
2009-04-17 19:13:07 +00:00
|
|
|
public uint idx;
|
2009-06-12 17:28:04 +00:00
|
|
|
public weak GLib.DestroyNotify ka_notify;
|
|
|
|
public void* ka_user_data;
|
|
|
|
public weak Gst.RTSPKeepAliveFunc keep_alive;
|
2009-04-17 19:13:07 +00:00
|
|
|
public weak GLib.DestroyNotify notify;
|
2009-06-12 17:28:04 +00:00
|
|
|
public weak GLib.Object rtpsource;
|
2009-04-17 19:13:07 +00:00
|
|
|
public weak Gst.RTSPSendFunc send_rtcp;
|
|
|
|
public weak Gst.RTSPSendFunc send_rtp;
|
2009-06-12 17:28:04 +00:00
|
|
|
public bool timeout;
|
2009-04-17 19:13:07 +00:00
|
|
|
public weak Gst.RTSPTransport transport;
|
|
|
|
public void* user_data;
|
2008-11-30 22:41:20 +00:00
|
|
|
}
|
2008-12-08 12:19:40 +00:00
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h")]
|
2009-01-23 19:31:11 +00:00
|
|
|
public class RTSPServer : GLib.Object {
|
2008-11-30 22:41:20 +00:00
|
|
|
public weak string host;
|
|
|
|
public weak GLib.IOChannel io_channel;
|
|
|
|
public weak GLib.TimeoutSource io_watch;
|
|
|
|
public void* server_sin;
|
|
|
|
public weak Gst.PollFD server_sock;
|
2009-01-23 19:31:11 +00:00
|
|
|
[NoWrapper]
|
2009-01-23 20:03:53 +00:00
|
|
|
public virtual Gst.RTSPClient? accept_client (GLib.IOChannel channel);
|
|
|
|
public uint attach (GLib.MainContext? context);
|
|
|
|
public GLib.TimeoutSource? create_watch ();
|
2009-01-23 19:31:11 +00:00
|
|
|
public int get_backlog ();
|
2009-01-23 20:03:53 +00:00
|
|
|
public GLib.IOChannel? get_io_channel ();
|
2009-01-23 19:31:11 +00:00
|
|
|
public Gst.RTSPMediaMapping get_media_mapping ();
|
|
|
|
public int get_port ();
|
|
|
|
public Gst.RTSPSessionPool get_session_pool ();
|
|
|
|
public static bool io_func (GLib.IOChannel channel, GLib.IOCondition condition, Gst.RTSPServer server);
|
|
|
|
[CCode (has_construct_function = false)]
|
|
|
|
public RTSPServer ();
|
|
|
|
public void set_backlog (int backlog);
|
|
|
|
public void set_media_mapping (Gst.RTSPMediaMapping mapping);
|
|
|
|
public void set_port (int port);
|
|
|
|
public void set_session_pool (Gst.RTSPSessionPool pool);
|
|
|
|
public int backlog { get; set; }
|
2009-04-17 19:13:07 +00:00
|
|
|
public Gst.RTSPMediaMapping media_mapping { get; set; }
|
2009-01-23 19:31:11 +00:00
|
|
|
public int port { get; set; }
|
2009-04-17 19:13:07 +00:00
|
|
|
public Gst.RTSPSessionPool session_pool { get; set; }
|
2008-11-30 22:41:20 +00:00
|
|
|
}
|
2008-11-30 22:57:26 +00:00
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-session.h")]
|
2008-11-30 22:41:20 +00:00
|
|
|
public class RTSPSession : GLib.Object {
|
2009-04-17 19:13:07 +00:00
|
|
|
public GLib.TimeVal create_time;
|
|
|
|
public GLib.TimeVal last_access;
|
2008-11-30 22:41:20 +00:00
|
|
|
public weak GLib.List medias;
|
2009-04-17 19:13:07 +00:00
|
|
|
public unowned Gst.RTSPSessionMedia get_media (Gst.RTSPUrl uri);
|
|
|
|
public unowned string get_sessionid ();
|
|
|
|
public uint get_timeout ();
|
|
|
|
public bool is_expired (GLib.TimeVal now);
|
|
|
|
public unowned Gst.RTSPSessionMedia manage_media (Gst.RTSPUrl uri, owned Gst.RTSPMedia media);
|
2008-11-30 22:41:20 +00:00
|
|
|
[CCode (has_construct_function = false)]
|
|
|
|
public RTSPSession (string sessionid);
|
2009-04-17 19:13:07 +00:00
|
|
|
public int next_timeout (GLib.TimeVal now);
|
|
|
|
public bool release_media (Gst.RTSPSessionMedia media);
|
|
|
|
public void set_timeout (uint timeout);
|
|
|
|
public void touch ();
|
|
|
|
public string sessionid { get; construct; }
|
|
|
|
public uint timeout { get; set; }
|
2008-11-30 22:41:20 +00:00
|
|
|
}
|
|
|
|
[Compact]
|
2008-11-30 22:57:26 +00:00
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-session.h")]
|
2008-11-30 22:41:20 +00:00
|
|
|
public class RTSPSessionMedia {
|
|
|
|
public weak Gst.RTSPMedia media;
|
2009-04-17 19:13:07 +00:00
|
|
|
public Gst.RTSPState state;
|
|
|
|
public weak GLib.Array streams;
|
|
|
|
public weak Gst.RTSPUrl url;
|
2009-01-23 19:31:11 +00:00
|
|
|
public unowned Gst.RTSPSessionStream get_stream (uint idx);
|
2009-04-17 19:13:07 +00:00
|
|
|
public bool set_state (Gst.State state);
|
2008-11-30 22:41:20 +00:00
|
|
|
}
|
2009-01-23 19:31:11 +00:00
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-session-pool.h")]
|
2008-11-30 22:41:20 +00:00
|
|
|
public class RTSPSessionPool : GLib.Object {
|
|
|
|
public weak GLib.Mutex @lock;
|
|
|
|
public weak GLib.HashTable sessions;
|
2009-04-17 19:13:07 +00:00
|
|
|
public uint cleanup ();
|
2009-01-23 19:31:11 +00:00
|
|
|
public Gst.RTSPSession create ();
|
|
|
|
[NoWrapper]
|
|
|
|
public virtual string create_session_id ();
|
2009-04-17 19:13:07 +00:00
|
|
|
public GLib.TimeoutSource create_watch ();
|
2009-07-13 09:31:23 +00:00
|
|
|
public GLib.List<Gst.RTSPSession> filter (Gst.RTSPSessionFilterFunc func);
|
2009-01-23 20:03:53 +00:00
|
|
|
public Gst.RTSPSession? find (string sessionid);
|
2009-04-17 19:13:07 +00:00
|
|
|
public uint get_max_sessions ();
|
|
|
|
public uint get_n_sessions ();
|
2008-11-30 22:41:20 +00:00
|
|
|
[CCode (has_construct_function = false)]
|
|
|
|
public RTSPSessionPool ();
|
2009-04-17 19:13:07 +00:00
|
|
|
public bool remove (Gst.RTSPSession sess);
|
|
|
|
public void set_max_sessions (uint max);
|
|
|
|
public uint max_sessions { get; set; }
|
2008-11-30 22:41:20 +00:00
|
|
|
}
|
|
|
|
[Compact]
|
2009-01-23 19:31:11 +00:00
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-session.h")]
|
2008-11-30 22:41:20 +00:00
|
|
|
public class RTSPSessionStream {
|
|
|
|
public weak Gst.RTSPMediaStream media_stream;
|
2009-04-17 19:13:07 +00:00
|
|
|
public weak Gst.RTSPMediaTrans trans;
|
|
|
|
public void set_callbacks (Gst.RTSPSendFunc send_rtp, Gst.RTSPSendFunc send_rtcp, GLib.DestroyNotify notify);
|
2009-06-12 17:28:04 +00:00
|
|
|
public void set_keepalive (Gst.RTSPKeepAliveFunc keep_alive, GLib.DestroyNotify notify);
|
2009-04-17 19:13:07 +00:00
|
|
|
public Gst.RTSPTransport set_transport (Gst.RTSPTransport ct);
|
2008-11-30 22:41:20 +00:00
|
|
|
}
|
2009-07-13 09:31:23 +00:00
|
|
|
[CCode (cprefix = "GST_RTSP_FILTER_", has_type_id = "0", cheader_filename = "gst/gst.h")]
|
|
|
|
public enum RTSPFilterResult {
|
|
|
|
REMOVE,
|
|
|
|
KEEP,
|
|
|
|
REF
|
|
|
|
}
|
2009-06-12 17:28:04 +00:00
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-media.h")]
|
|
|
|
public delegate void RTSPKeepAliveFunc ();
|
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-media.h")]
|
2009-04-17 19:13:07 +00:00
|
|
|
public delegate bool RTSPSendFunc (Gst.Buffer buffer, uchar channel);
|
2009-06-12 17:28:04 +00:00
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-session-pool.h")]
|
2009-07-13 09:31:23 +00:00
|
|
|
public delegate Gst.RTSPFilterResult RTSPSessionFilterFunc (Gst.RTSPSessionPool pool, Gst.RTSPSession session);
|
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-session-pool.h")]
|
2009-04-17 19:13:07 +00:00
|
|
|
public delegate bool RTSPSessionPoolFunc (Gst.RTSPSessionPool pool);
|
|
|
|
[CCode (cheader_filename = "gst/gst.h")]
|
2009-06-12 17:28:04 +00:00
|
|
|
public static Gst.RTSPResult rtsp_params_get (Gst.RTSPClient client, Gst.RTSPUrl uri, Gst.RTSPSession session, Gst.RTSPMessage request, Gst.RTSPMessage response);
|
|
|
|
[CCode (cheader_filename = "gst/gst.h")]
|
|
|
|
public static Gst.RTSPResult rtsp_params_set (Gst.RTSPClient client, Gst.RTSPUrl uri, Gst.RTSPSession session, Gst.RTSPMessage request, Gst.RTSPMessage response);
|
|
|
|
[CCode (cheader_filename = "gst/rtsp-server/rtsp-sdp.h")]
|
|
|
|
public static unowned Gst.SDPMessage rtsp_sdp_from_media (Gst.RTSPMedia media);
|
2008-11-30 22:41:20 +00:00
|
|
|
}
|