diff --git a/gst-libs/gst/uridownloader/gstfragment.h b/gst-libs/gst/uridownloader/gstfragment.h index a8e0a545c2..2e30d62786 100644 --- a/gst-libs/gst/uridownloader/gstfragment.h +++ b/gst-libs/gst/uridownloader/gstfragment.h @@ -65,12 +65,22 @@ struct _GstFragmentClass GObjectClass parent_class; }; +GST_EXPORT GType gst_fragment_get_type (void); +GST_EXPORT GstBuffer * gst_fragment_get_buffer (GstFragment *fragment); + +GST_EXPORT void gst_fragment_set_caps (GstFragment * fragment, GstCaps * caps); + +GST_EXPORT GstCaps * gst_fragment_get_caps (GstFragment * fragment); + +GST_EXPORT gboolean gst_fragment_add_buffer (GstFragment *fragment, GstBuffer *buffer); + +GST_EXPORT GstFragment * gst_fragment_new (void); G_END_DECLS diff --git a/gst-libs/gst/uridownloader/gsturidownloader.h b/gst-libs/gst/uridownloader/gsturidownloader.h index b37725222e..f37bef0af0 100644 --- a/gst-libs/gst/uridownloader/gsturidownloader.h +++ b/gst-libs/gst/uridownloader/gsturidownloader.h @@ -58,15 +58,26 @@ struct _GstUriDownloaderClass gpointer _gst_reserved[GST_PADDING]; }; +GST_EXPORT GType gst_uri_downloader_get_type (void); +GST_EXPORT GstUriDownloader * gst_uri_downloader_new (void); + +GST_EXPORT void gst_uri_downloader_set_parent (GstUriDownloader * downloader, GstElement * parent); + +GST_EXPORT GstFragment * gst_uri_downloader_fetch_uri (GstUriDownloader * downloader, const gchar * uri, const gchar * referer, gboolean compress, gboolean refresh, gboolean allow_cache, GError ** err); + +GST_EXPORT GstFragment * gst_uri_downloader_fetch_uri_with_range (GstUriDownloader * downloader, const gchar * uri, const gchar * referer, gboolean compress, gboolean refresh, gboolean allow_cache, gint64 range_start, gint64 range_end, GError ** err); + +GST_EXPORT void gst_uri_downloader_reset (GstUriDownloader *downloader); + +GST_EXPORT void gst_uri_downloader_cancel (GstUriDownloader *downloader); -void gst_uri_downloader_free (GstUriDownloader *downloader); G_END_DECLS #endif /* __GSTURIDOWNLOADER_H__ */