summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-03-13 12:29:08 +0000
committerTim-Philipp Müller <tim@centricular.com>2018-03-13 12:29:08 +0000
commita4c2d1ea314b6c0e6a72e093edf957da2393d6ae (patch)
tree37dea392ca2e8b053bedc64789f3c00f5410139b /gst-libs
parent6b8f92d84fd69a19bfad92efaff2701cb17618ec (diff)
basecamerabinsrc: GST_EXPORT -> GST_BASE_CAMERA_BIN_SRC_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.
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/basecamerabinsrc/Makefile.am1
-rw-r--r--gst-libs/gst/basecamerabinsrc/basecamerabinsrc-prelude.h31
-rw-r--r--gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h13
-rw-r--r--gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h3
-rw-r--r--gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h11
-rw-r--r--gst-libs/gst/basecamerabinsrc/meson.build1
6 files changed, 48 insertions, 12 deletions
diff --git a/gst-libs/gst/basecamerabinsrc/Makefile.am b/gst-libs/gst/basecamerabinsrc/Makefile.am
index 64126e3bf..5c68f0fbb 100644
--- a/gst-libs/gst/basecamerabinsrc/Makefile.am
+++ b/gst-libs/gst/basecamerabinsrc/Makefile.am
@@ -10,6 +10,7 @@ libgstbasecamerabinsrc_@GST_API_VERSION@_la_SOURCES = \
libgstbasecamerabinsrc_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/basecamerabinsrc
libgstbasecamerabinsrc_@GST_API_VERSION@include_HEADERS = \
+ basecamerabinsrc-prelude.h \
gstcamerabin-enum.h \
gstcamerabinpreview.h \
gstbasecamerasrc.h
diff --git a/gst-libs/gst/basecamerabinsrc/basecamerabinsrc-prelude.h b/gst-libs/gst/basecamerabinsrc/basecamerabinsrc-prelude.h
new file mode 100644
index 000000000..6dc1477e1
--- /dev/null
+++ b/gst-libs/gst/basecamerabinsrc/basecamerabinsrc-prelude.h
@@ -0,0 +1,31 @@
+/* GStreamer BaseCameraBinSrc Library
+ * Copyright (C) 2018 GStreamer developers
+ *
+ * basecamerasrc-prelude.h: prelude include header for gst-basecamerasrc 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_BASE_CAMERA_BIN_SRC_PRELUDE_H__
+#define __GST_BASE_CAMERA_BIN_SRC_PRELUDE_H__
+
+#include <gst/gst.h>
+
+#ifndef GST_BASE_CAMERA_BIN_SRC_API
+#define GST_BASE_CAMERA_BIN_SRC_API GST_EXPORT
+#endif
+
+#endif /* __GST_BASE_CAMERA_BIN_SRC_PRELUDE_H__ */
diff --git a/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h b/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h
index 24a919c7b..105530b11 100644
--- a/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h
+++ b/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h
@@ -30,6 +30,7 @@
#include <gst/gst.h>
#include <gst/gstbin.h>
+#include "basecamerabinsrc-prelude.h"
#include "gstcamerabin-enum.h"
#include "gstcamerabinpreview.h"
@@ -49,7 +50,7 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_BASE_CAMERA_SRC))
#define GST_BASE_CAMERA_SRC_CAST(obj) \
((GstBaseCameraSrc *) (obj))
-GST_EXPORT
+GST_BASE_CAMERA_BIN_SRC_API
GType gst_base_camera_src_get_type (void);
typedef struct _GstBaseCameraSrc GstBaseCameraSrc;
@@ -133,20 +134,20 @@ struct _GstBaseCameraSrcClass
#define MAX_ZOOM 10.0f
#define ZOOM_1X MIN_ZOOM
-GST_EXPORT
+GST_BASE_CAMERA_BIN_SRC_API
gboolean gst_base_camera_src_set_mode (GstBaseCameraSrc *self, GstCameraBinMode mode);
-GST_EXPORT
+GST_BASE_CAMERA_BIN_SRC_API
void gst_base_camera_src_setup_zoom (GstBaseCameraSrc * self);
-GST_EXPORT
+GST_BASE_CAMERA_BIN_SRC_API
void gst_base_camera_src_setup_preview (GstBaseCameraSrc * self, GstCaps * preview_caps);
-GST_EXPORT
+GST_BASE_CAMERA_BIN_SRC_API
void gst_base_camera_src_finish_capture (GstBaseCameraSrc *self);
-GST_EXPORT
+GST_BASE_CAMERA_BIN_SRC_API
void gst_base_camera_src_post_preview (GstBaseCameraSrc *self, GstSample * sample);
// XXX add methods to get/set img capture and vid capture caps..
diff --git a/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h b/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h
index 93b17dc5d..6d075f513 100644
--- a/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h
+++ b/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h
@@ -27,6 +27,7 @@
#endif
#include <gst/gst.h>
+#include "basecamerabinsrc-prelude.h"
G_BEGIN_DECLS
@@ -55,7 +56,7 @@ typedef enum
#define GST_TYPE_CAMERABIN_MODE (gst_camerabin_mode_get_type ())
-GST_EXPORT
+GST_BASE_CAMERA_BIN_SRC_API
GType gst_camerabin_mode_get_type (void);
G_END_DECLS
diff --git a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h
index 1003e2efc..f66a9b72f 100644
--- a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h
+++ b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h
@@ -28,6 +28,7 @@
#endif
#include <gst/gst.h>
+#include "basecamerabinsrc-prelude.h"
typedef struct
{
@@ -47,19 +48,19 @@ typedef struct
} GstCameraBinPreviewPipelineData;
-GST_EXPORT
+GST_BASE_CAMERA_BIN_SRC_API
GstCameraBinPreviewPipelineData *gst_camerabin_create_preview_pipeline (GstElement * element, GstElement * filter);
-GST_EXPORT
+GST_BASE_CAMERA_BIN_SRC_API
void gst_camerabin_destroy_preview_pipeline (GstCameraBinPreviewPipelineData * preview);
-GST_EXPORT
+GST_BASE_CAMERA_BIN_SRC_API
gboolean gst_camerabin_preview_pipeline_post (GstCameraBinPreviewPipelineData * preview, GstSample * sample);
-GST_EXPORT
+GST_BASE_CAMERA_BIN_SRC_API
void gst_camerabin_preview_set_caps (GstCameraBinPreviewPipelineData * preview, GstCaps * caps);
-GST_EXPORT
+GST_BASE_CAMERA_BIN_SRC_API
gboolean gst_camerabin_preview_set_filter (GstCameraBinPreviewPipelineData * preview, GstElement * filter);
#endif /* #ifndef __CAMERABIN_PREVIEW_H_ */
diff --git a/gst-libs/gst/basecamerabinsrc/meson.build b/gst-libs/gst/basecamerabinsrc/meson.build
index 545216070..69893915c 100644
--- a/gst-libs/gst/basecamerabinsrc/meson.build
+++ b/gst-libs/gst/basecamerabinsrc/meson.build
@@ -4,6 +4,7 @@ camerabin_sources = [
'gstbasecamerasrc.c',
]
camerabin_headers = [
+ 'basecamerabinsrc-prelude.h',
'gstcamerabin-enum.h',
'gstcamerabinpreview.h',
'gstbasecamerasrc.h',