gstreamer/bindings/vala/gst-rtsp-server-0.10.vapi

293 lines
11 KiB
Vala
Raw Normal View History

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 {
[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;
2010-09-22 16:24:12 +00:00
public bool is_ipv6;
2009-04-17 19:13:07 +00:00
public weak Gst.RTSPMedia media;
2010-09-22 16:24:12 +00:00
public weak string server_ip;
2009-04-17 19:13:07 +00:00
public weak GLib.List sessions;
public weak GLib.List streams;
public weak Gst.RTSPUrl uri;
public weak Gst.RTSPWatch watch;
public uint watchid;
2010-09-22 16:24:12 +00:00
[CCode (has_construct_function = false)]
public RTSPClient ();
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 ();
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
}
[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;
2010-09-22 16:24:12 +00:00
public weak GLib.Cond cond;
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;
2010-09-22 16:24:12 +00:00
public bool eos_pending;
2009-06-12 17:28:04 +00:00
public weak Gst.Element fakesink;
2009-04-17 19:13:07 +00:00
public uint id;
2010-09-22 16:24:12 +00:00
public bool is_ipv6;
2009-04-17 19:13:07 +00:00
public bool is_live;
2010-09-22 16:24:12 +00:00
public weak GLib.Mutex @lock;
2010-09-23 10:44:18 +00:00
public Gst.Element pipeline;
2009-04-17 19:13:07 +00:00
public weak Gst.RTSPTimeRange range;
public bool reused;
public weak Gst.Element rtpbin;
public weak GLib.TimeoutSource source;
2010-09-22 16:24:12 +00:00
public Gst.RTSPMediaStatus status;
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;
2010-09-22 16:24:12 +00:00
[CCode (has_construct_function = false)]
public RTSPMedia ();
public Gst.RTSPLowerTrans get_protocols ();
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);
2010-09-22 16:24:12 +00:00
public bool is_eos_shutdown ();
2009-04-17 19:13:07 +00:00
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
public bool prepare ();
public void remove_elements ();
2009-04-17 19:13:07 +00:00
public bool seek (Gst.RTSPTimeRange range);
2010-09-22 16:24:12 +00:00
public void set_eos_shutdown (bool eos_shutdown);
public void set_protocols (Gst.RTSPLowerTrans protocols);
2009-04-17 19:13:07 +00:00
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]
2010-09-22 16:24:12 +00:00
public bool eos_shutdown { get; set; }
public Gst.RTSPLowerTrans protocols { get; set; }
[NoAccessorMethod]
2009-04-17 19:13:07 +00:00
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;
2010-09-22 16:24:12 +00:00
[CCode (has_construct_function = false)]
public RTSPMediaFactory ();
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 ();
2010-09-22 16:24:12 +00:00
public bool is_eos_shutdown ();
2009-01-23 19:31:11 +00:00
public bool is_shared ();
2010-09-22 16:24:12 +00:00
public void set_eos_shutdown (bool eos_shutdown);
2009-01-23 19:31:11 +00:00
public void set_launch (string launch);
public void set_shared (bool shared);
2010-09-22 16:24:12 +00:00
[NoAccessorMethod]
public bool eos_shutdown { get; set; }
2009-01-23 19:31:11 +00:00
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;
2010-09-22 16:24:12 +00:00
[CCode (has_construct_function = false)]
public RTSPMediaMapping ();
2009-01-23 19:31:11 +00:00
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
public void remove_factory (string path);
2008-11-30 22:41:20 +00:00
}
[Compact]
[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;
2010-09-22 16:24:12 +00:00
public weak GLib.List destinations;
public bool filter_duplicates;
2008-11-30 22:41:20 +00:00
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;
2010-09-22 16:24:12 +00:00
public void cleanup ();
2008-11-30 22:41:20 +00:00
}
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h")]
2009-01-23 19:31:11 +00:00
public class RTSPServer : GLib.Object {
public signal void client_connected (RTSPClient client);
2008-11-30 22:41:20 +00:00
public weak GLib.IOChannel io_channel;
public weak GLib.TimeoutSource io_watch;
public void* server_sin;
2010-09-22 16:24:12 +00:00
public Gst.PollFD server_sock;
[CCode (has_construct_function = false)]
public RTSPServer ();
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 ();
2010-09-22 16:24:12 +00:00
public string get_address ();
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 ();
2010-09-22 16:24:12 +00:00
public string get_service ();
2009-01-23 19:31:11 +00:00
public Gst.RTSPSessionPool get_session_pool ();
public static bool io_func (GLib.IOChannel channel, GLib.IOCondition condition, Gst.RTSPServer server);
2010-09-22 16:24:12 +00:00
public void set_address (string address);
2009-01-23 19:31:11 +00:00
public void set_backlog (int backlog);
public void set_media_mapping (Gst.RTSPMediaMapping mapping);
2010-09-22 16:24:12 +00:00
public void set_service (string service);
2009-01-23 19:31:11 +00:00
public void set_session_pool (Gst.RTSPSessionPool pool);
2010-09-22 16:24:12 +00:00
public string address { get; set; }
2009-01-23 19:31:11 +00:00
public int backlog { get; set; }
2009-04-17 19:13:07 +00:00
public Gst.RTSPMediaMapping media_mapping { get; set; }
2010-09-22 16:24:12 +00:00
public string service { 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
}
[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;
2010-09-22 16:24:12 +00:00
public int expire_count;
2009-04-17 19:13:07 +00:00
public GLib.TimeVal last_access;
2008-11-30 22:41:20 +00:00
public weak GLib.List medias;
2010-09-22 16:24:12 +00:00
[CCode (has_construct_function = false)]
public RTSPSession (string sessionid);
public void allow_expire ();
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);
public int next_timeout (GLib.TimeVal now);
2010-09-22 16:24:12 +00:00
public void prevent_expire ();
2009-04-17 19:13:07 +00:00
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]
[CCode (cheader_filename = "gst/rtsp-server/rtsp-session.h")]
2008-11-30 22:41:20 +00:00
public class RTSPSessionMedia {
2010-09-22 16:24:12 +00:00
public uint counter;
2008-11-30 22:41:20 +00:00
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;
2010-09-22 16:24:12 +00:00
public bool alloc_channels (Gst.RTSPRange range);
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;
2010-09-22 16:24:12 +00:00
[CCode (has_construct_function = false)]
public RTSPSessionPool ();
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 ();
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 ();
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
}
2010-09-22 16:24:12 +00:00
[Compact]
2010-09-23 10:44:18 +00:00
[CCode (cheader_filename = "gst/rtsp-server/rtsp-sdp.h")]
2010-09-22 16:24:12 +00:00
public class SDPInfo {
public weak string server_ip;
public weak string server_proto;
}
2010-09-23 10:44:18 +00:00
[CCode (cprefix = "GST_RTSP_FILTER_", has_type_id = false, cheader_filename = "gst/rtsp-server/rtsp-session-pool.h")]
public enum RTSPFilterResult {
REMOVE,
KEEP,
REF
}
2010-09-23 10:44:18 +00:00
[CCode (cprefix = "GST_RTSP_MEDIA_STATUS_", has_type_id = false, cheader_filename = "gst/rtsp-server/rtsp-media.h")]
2010-09-22 16:24:12 +00:00
public enum RTSPMediaStatus {
UNPREPARED,
PREPARING,
PREPARED,
ERROR
}
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")]
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")]
2010-09-22 16:24:12 +00:00
public static bool rtsp_sdp_from_media (ref unowned Gst.SDPMessage sdp, Gst.SDPInfo info, Gst.RTSPMedia media);
2008-11-30 22:41:20 +00:00
}