Initialize Tizen 2.3
[framework/multimedia/gst-plugins-ext0.10.git] / dashdemux / src / gsturidownloader.h
1 /* GStreamer
2  * Copyright (C) 2011 Andoni Morales Alastruey <ylatuya@gmail.com>
3  *
4  * gsturidownloader.h:
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * Youshould have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef __GSTURI_DOWNLOADER_H__
23 #define __GSTURI_DOWNLOADER_H__
24
25 #include <glib-object.h>
26 #include <gst/gst.h>
27 #include "gstfragment.h"
28
29 G_BEGIN_DECLS
30
31 #define GST_TYPE_URI_DOWNLOADER (gst_uri_downloader_get_type())
32 #define GST_URI_DOWNLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_URI_DOWNLOADER,GstUriDownloader))
33 #define GST_URI_DOWNLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_URI_DOWNLOADER,GstUriDownloaderClass))
34 #define GST_IS_URI_DOWNLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_URI_DOWNLOADER))
35 #define GST_IS_URI_DOWNLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_URI_DOWNLOADER))
36
37 typedef struct _GstUriDownloader GstUriDownloader;
38 typedef struct _GstUriDownloaderPrivate GstUriDownloaderPrivate;
39 typedef struct _GstUriDownloaderClass GstUriDownloaderClass;
40
41 struct _GstUriDownloader
42 {
43   GstObject parent;
44
45   GstUriDownloaderPrivate *priv;
46 };
47
48 struct _GstUriDownloaderClass
49 {
50   GstObjectClass parent_class;
51
52   /*< private >*/
53   gpointer _gst_reserved[GST_PADDING];
54 };
55
56 GType gst_uri_downloader_get_type (void);
57
58 GstUriDownloader * gst_uri_downloader_new (void);
59 GstFragment * gst_uri_downloader_fetch_uri (GstUriDownloader * downloader, const gchar * uri);
60 void gst_uri_downloader_cancel (GstUriDownloader *downloader);
61 /* add setting UA,cookies */
62 void gst_uri_downloader_set_user_agent (GstUriDownloader * downloader, gchar * user_agent);
63 void gst_uri_downloader_set_cookies (GstUriDownloader * downloader, gchar ** cookies);
64 void gst_uri_downloader_reset(GstUriDownloader *downloader);
65 G_END_DECLS
66 #endif /* __GSTURIDOWNLOADER_H__ */