summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-03-13 13:07:52 +0000
committerTim-Philipp Müller <tim@centricular.com>2018-03-13 13:36:33 +0000
commit46a6d3f8991cdb532fe0d5037e6b8fbb8c8c917a (patch)
treed3d09a0d6d148c9f9fb5058fd76068294befcd99
parent665cc1c6f2a73bd7d837ea2ad273add2ca317bba (diff)
video: GST_EXPORT -> GST_URI_VIDEO_BAD_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/video/Makefile.am2
-rw-r--r--gst-libs/gst/video/gstvideoaggregator.h3
-rw-r--r--gst-libs/gst/video/gstvideoaggregatorpad.h2
-rw-r--r--gst-libs/gst/video/meson.build3
-rw-r--r--gst-libs/gst/video/video-bad-prelude.h31
5 files changed, 37 insertions, 4 deletions
diff --git a/gst-libs/gst/video/Makefile.am b/gst-libs/gst/video/Makefile.am
index e51f6bb522..7d728eef3c 100644
--- a/gst-libs/gst/video/Makefile.am
+++ b/gst-libs/gst/video/Makefile.am
@@ -23,4 +23,4 @@ libgstbadvideo_@GST_API_VERSION@_la_LIBADD = \
libgstbadvideo_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
libgstvideo_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/video
-libgstvideo_@GST_API_VERSION@include_HEADERS = gstvideoaggregatorpad.h gstvideoaggregator.h
+libgstvideo_@GST_API_VERSION@include_HEADERS = gstvideoaggregatorpad.h gstvideoaggregator.h video-bad-prelude.h
diff --git a/gst-libs/gst/video/gstvideoaggregator.h b/gst-libs/gst/video/gstvideoaggregator.h
index 9882a75dfe..d3e5370b40 100644
--- a/gst-libs/gst/video/gstvideoaggregator.h
+++ b/gst-libs/gst/video/gstvideoaggregator.h
@@ -29,6 +29,7 @@
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/base/gstaggregator.h>
+#include <gst/video/video-bad-prelude.h>
G_BEGIN_DECLS
@@ -111,7 +112,7 @@ struct _GstVideoAggregatorClass
gpointer _gst_reserved[GST_PADDING_LARGE];
};
-GST_EXPORT
+GST_VIDEO_BAD_API
GType gst_video_aggregator_get_type (void);
G_END_DECLS
diff --git a/gst-libs/gst/video/gstvideoaggregatorpad.h b/gst-libs/gst/video/gstvideoaggregatorpad.h
index 3c84fc54fd..79cb8e534d 100644
--- a/gst-libs/gst/video/gstvideoaggregatorpad.h
+++ b/gst-libs/gst/video/gstvideoaggregatorpad.h
@@ -105,7 +105,7 @@ struct _GstVideoAggregatorPadClass
gpointer _gst_reserved[GST_PADDING_LARGE];
};
-GST_EXPORT
+GST_VIDEO_BAD_API
GType gst_video_aggregator_pad_get_type (void);
G_END_DECLS
diff --git a/gst-libs/gst/video/meson.build b/gst-libs/gst/video/meson.build
index 3bec5988a0..d071b8de64 100644
--- a/gst-libs/gst/video/meson.build
+++ b/gst-libs/gst/video/meson.build
@@ -3,7 +3,8 @@ badvideo_sources = [
]
badvideo_headers = [
'gstvideoaggregatorpad.h',
- 'gstvideoaggregator.h'
+ 'gstvideoaggregator.h',
+ 'video-bad-prelude.h',
]
install_headers(badvideo_headers, subdir : 'gstreamer-1.0/gst/video')
diff --git a/gst-libs/gst/video/video-bad-prelude.h b/gst-libs/gst/video/video-bad-prelude.h
new file mode 100644
index 0000000000..3638a421fa
--- /dev/null
+++ b/gst-libs/gst/video/video-bad-prelude.h
@@ -0,0 +1,31 @@
+/* GStreamer Video Library
+ * Copyright (C) 2018 GStreamer developers
+ *
+ * video-prelude.h: prelude include header for gst-video 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_VIDEO_BAD_PRELUDE_H__
+#define __GST_VIDEO_BAD_PRELUDE_H__
+
+#include <gst/gst.h>
+
+#ifndef GST_VIDEO_BAD_API
+#define GST_VIDEO_BAD_API GST_EXPORT
+#endif
+
+#endif /* __GST_VIDEO_BAD_PRELUDE_H__ */