summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-03-13 13:05:45 +0000
committerTim-Philipp Müller <tim@centricular.com>2018-03-13 13:05:45 +0000
commit665cc1c6f2a73bd7d837ea2ad273add2ca317bba (patch)
tree1f53ec7e2561082b570f7faa33efd8e0f75a6be9
parentfc9bdae8e2d03e5e734c54a506bacb69dc4cef9e (diff)
uridownloader: GST_EXPORT -> GST_URI_DOWNLOADER_API
We need different export decorators for the different libs. For now no actual change though, just rename before the release, and add prelude headers to define the new decorator to GST_EXPORT.
-rw-r--r--gst-libs/gst/uridownloader/Makefile.am2
-rw-r--r--gst-libs/gst/uridownloader/gstfragment.h13
-rw-r--r--gst-libs/gst/uridownloader/gsturidownloader.h14
-rw-r--r--gst-libs/gst/uridownloader/meson.build1
-rw-r--r--gst-libs/gst/uridownloader/uridownloader-prelude.h31
5 files changed, 47 insertions, 14 deletions
diff --git a/gst-libs/gst/uridownloader/Makefile.am b/gst-libs/gst/uridownloader/Makefile.am
index 91b51878b..d12257aed 100644
--- a/gst-libs/gst/uridownloader/Makefile.am
+++ b/gst-libs/gst/uridownloader/Makefile.am
@@ -7,7 +7,7 @@ libgsturidownloader_@GST_API_VERSION@includedir = \
$(includedir)/gstreamer-@GST_API_VERSION@/gst/uridownloader
libgsturidownloader_@GST_API_VERSION@include_HEADERS = \
- gstfragment.h gsturidownloader.h gsturidownloader_debug.h
+ gstfragment.h gsturidownloader.h gsturidownloader_debug.h uridownloader-prelude.h
libgsturidownloader_@GST_API_VERSION@_la_CFLAGS = \
$(GST_PLUGINS_BAD_CFLAGS) \
diff --git a/gst-libs/gst/uridownloader/gstfragment.h b/gst-libs/gst/uridownloader/gstfragment.h
index 2e30d6278..517d15536 100644
--- a/gst-libs/gst/uridownloader/gstfragment.h
+++ b/gst-libs/gst/uridownloader/gstfragment.h
@@ -24,6 +24,7 @@
#include <glib-object.h>
#include <gst/gst.h>
+#include <gst/uridownloader/uridownloader-prelude.h>
G_BEGIN_DECLS
@@ -65,22 +66,22 @@ struct _GstFragmentClass
GObjectClass parent_class;
};
-GST_EXPORT
+GST_URI_DOWNLOADER_API
GType gst_fragment_get_type (void);
-GST_EXPORT
+GST_URI_DOWNLOADER_API
GstBuffer * gst_fragment_get_buffer (GstFragment *fragment);
-GST_EXPORT
+GST_URI_DOWNLOADER_API
void gst_fragment_set_caps (GstFragment * fragment, GstCaps * caps);
-GST_EXPORT
+GST_URI_DOWNLOADER_API
GstCaps * gst_fragment_get_caps (GstFragment * fragment);
-GST_EXPORT
+GST_URI_DOWNLOADER_API
gboolean gst_fragment_add_buffer (GstFragment *fragment, GstBuffer *buffer);
-GST_EXPORT
+GST_URI_DOWNLOADER_API
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 f37bef0af..4be1edb05 100644
--- a/gst-libs/gst/uridownloader/gsturidownloader.h
+++ b/gst-libs/gst/uridownloader/gsturidownloader.h
@@ -58,25 +58,25 @@ struct _GstUriDownloaderClass
gpointer _gst_reserved[GST_PADDING];
};
-GST_EXPORT
+GST_URI_DOWNLOADER_API
GType gst_uri_downloader_get_type (void);
-GST_EXPORT
+GST_URI_DOWNLOADER_API
GstUriDownloader * gst_uri_downloader_new (void);
-GST_EXPORT
+GST_URI_DOWNLOADER_API
void gst_uri_downloader_set_parent (GstUriDownloader * downloader, GstElement * parent);
-GST_EXPORT
+GST_URI_DOWNLOADER_API
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
+GST_URI_DOWNLOADER_API
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
+GST_URI_DOWNLOADER_API
void gst_uri_downloader_reset (GstUriDownloader *downloader);
-GST_EXPORT
+GST_URI_DOWNLOADER_API
void gst_uri_downloader_cancel (GstUriDownloader *downloader);
G_END_DECLS
diff --git a/gst-libs/gst/uridownloader/meson.build b/gst-libs/gst/uridownloader/meson.build
index ac9736841..7c4d67078 100644
--- a/gst-libs/gst/uridownloader/meson.build
+++ b/gst-libs/gst/uridownloader/meson.build
@@ -3,6 +3,7 @@ urid_sources = [
'gsturidownloader.c',
]
urid_headers = [
+ 'uridownloader-prelude.h',
'gstfragment.h',
'gsturidownloader.h',
'gsturidownloader_debug.h',
diff --git a/gst-libs/gst/uridownloader/uridownloader-prelude.h b/gst-libs/gst/uridownloader/uridownloader-prelude.h
new file mode 100644
index 000000000..f5ad5843c
--- /dev/null
+++ b/gst-libs/gst/uridownloader/uridownloader-prelude.h
@@ -0,0 +1,31 @@
+/* GStreamer UriDownloader Library
+ * Copyright (C) 2018 GStreamer developers
+ *
+ * uridownloader-prelude.h: prelude include header for gst-uridownloader library
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __GST_URI_DOWNLOADER_PRELUDE_H__
+#define __GST_URI_DOWNLOADER_PRELUDE_H__
+
+#include <gst/gst.h>
+
+#ifndef GST_URI_DOWNLOADER_API
+#define GST_URI_DOWNLOADER_API GST_EXPORT
+#endif
+
+#endif /* __GST_URI_DOWNLOADER_PRELUDE_H__ */