2 * Copyright (C) 2008 Wim Taymans <wim.taymans at gmail.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 #include <gst/rtsp/gstrtspconnection.h>
23 #ifndef __GST_RTSP_CLIENT_H__
24 #define __GST_RTSP_CLIENT_H__
26 #include "rtsp-media.h"
27 #include "rtsp-media-mapping.h"
28 #include "rtsp-session-pool.h"
32 #define GST_TYPE_RTSP_CLIENT (gst_rtsp_client_get_type ())
33 #define GST_IS_RTSP_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_RTSP_CLIENT))
34 #define GST_IS_RTSP_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_RTSP_CLIENT))
35 #define GST_RTSP_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RTSP_CLIENT, GstRTSPClientClass))
36 #define GST_RTSP_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_RTSP_CLIENT, GstRTSPClient))
37 #define GST_RTSP_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_RTSP_CLIENT, GstRTSPClientClass))
38 #define GST_RTSP_CLIENT_CAST(obj) ((GstRTSPClient*)(obj))
39 #define GST_RTSP_CLIENT_CLASS_CAST(klass) ((GstRTSPClientClass*)(klass))
41 typedef struct _GstRTSPClient GstRTSPClient;
42 typedef struct _GstRTSPClientClass GstRTSPClientClass;
47 * @connection: the connection object handling the client request.
48 * @watch: watch for the connection
49 * @watchid: id of the watch
50 * @ip: ip address used by the client to connect to us
51 * @session_pool: handle to the session pool used by the client.
52 * @media_mapping: handle to the media mapping used by the client.
54 * @media: cached media
55 * @streams: a list of streams using @connection.
56 * @sessions: a list of sessions managed by @connection.
58 * The client structure.
60 struct _GstRTSPClient {
63 GstRTSPConnection *connection;
69 GstRTSPSessionPool *session_pool;
70 GstRTSPMediaMapping *media_mapping;
79 struct _GstRTSPClientClass {
80 GObjectClass parent_class;
83 GType gst_rtsp_client_get_type (void);
85 GstRTSPClient * gst_rtsp_client_new (void);
87 void gst_rtsp_client_set_session_pool (GstRTSPClient *client,
88 GstRTSPSessionPool *pool);
89 GstRTSPSessionPool * gst_rtsp_client_get_session_pool (GstRTSPClient *client);
91 void gst_rtsp_client_set_media_mapping (GstRTSPClient *client,
92 GstRTSPMediaMapping *mapping);
93 GstRTSPMediaMapping * gst_rtsp_client_get_media_mapping (GstRTSPClient *client);
95 gboolean gst_rtsp_client_accept (GstRTSPClient *client,
100 #endif /* __GST_RTSP_CLIENT_H__ */