Tizen 2.0 Release
[framework/multimedia/gst-plugins-good0.10.git] / gst / rtsp / gstrtspext.h
1 /* GStreamer
2  * Copyright (C) <2006> Wim Taymans <wim@fluendo.com>
3  *
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.
8  *
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.
13  *
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.
18  */
19 /*
20  * Unless otherwise indicated, Source Code is licensed under MIT license.
21  * See further explanation attached in License Statement (distributed in the file
22  * LICENSE).
23  *
24  * Permission is hereby granted, free of charge, to any person obtaining a copy of
25  * this software and associated documentation files (the "Software"), to deal in
26  * the Software without restriction, including without limitation the rights to
27  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
28  * of the Software, and to permit persons to whom the Software is furnished to do
29  * so, subject to the following conditions:
30  *
31  * The above copyright notice and this permission notice shall be included in all
32  * copies or substantial portions of the Software.
33  *
34  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40  * SOFTWARE.
41  */
42
43 #ifndef __GST_RTSP_EXT_H__
44 #define __GST_RTSP_EXT_H__
45
46 #include <gst/gst.h>
47 #include <gst/rtsp/gstrtspextension.h>
48
49 G_BEGIN_DECLS
50
51 typedef struct _GstRTSPExtensionList GstRTSPExtensionList;
52
53 struct _GstRTSPExtensionList
54 {
55   GList *extensions;
56 };
57
58 void                    gst_rtsp_ext_list_init    (void);
59
60 GstRTSPExtensionList *  gst_rtsp_ext_list_get     (void);
61 void                    gst_rtsp_ext_list_free    (GstRTSPExtensionList *ext);
62
63 gboolean      gst_rtsp_ext_list_detect_server     (GstRTSPExtensionList *ext, GstRTSPMessage *resp);
64   
65 GstRTSPResult gst_rtsp_ext_list_before_send       (GstRTSPExtensionList *ext, GstRTSPMessage *req);
66 GstRTSPResult gst_rtsp_ext_list_after_send        (GstRTSPExtensionList *ext, GstRTSPMessage *req,
67                                                    GstRTSPMessage *resp);
68 GstRTSPResult gst_rtsp_ext_list_parse_sdp         (GstRTSPExtensionList *ext, GstSDPMessage *sdp,
69                                                    GstStructure *s);
70 GstRTSPResult gst_rtsp_ext_list_setup_media       (GstRTSPExtensionList *ext, GstSDPMedia *media);
71 gboolean      gst_rtsp_ext_list_configure_stream  (GstRTSPExtensionList *ext, GstCaps *caps);
72 GstRTSPResult gst_rtsp_ext_list_get_transports    (GstRTSPExtensionList *ext, GstRTSPLowerTrans protocols,
73                                                    gchar **transport);
74 GstRTSPResult gst_rtsp_ext_list_stream_select     (GstRTSPExtensionList *ext, GstRTSPUrl *url);
75
76 void          gst_rtsp_ext_list_connect           (GstRTSPExtensionList *ext,
77                                                    const gchar *detailed_signal, GCallback c_handler,
78                                                    gpointer data);
79 GstRTSPResult gst_rtsp_ext_list_receive_request   (GstRTSPExtensionList *ext, GstRTSPMessage *req);
80
81 G_END_DECLS
82
83 #endif /* __GST_RTSP_EXT_H__ */