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.
-Subproject commit 3fa2c9e372bceec30be91e67fb02b6cb05bed493
+Subproject commit f0c2dc9aadfa05bb5274c40da750104ecbb88cba
glib_enum_define = GST_CONTROLLER
glib_gen_prefix = gst
glib_gen_basename = controller
-glib_gen_decl_banner=GST_EXPORT
+glib_gen_decl_banner=GST_CONTROLLER_API
+glib_gen_decl_include=\#include <gst/controller/controller-prelude.h>
built_sources = controller-enumtypes.c
built_headers = controller-enumtypes.h
libgstcontroller_@GST_API_VERSION@_includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/controller
libgstcontroller_@GST_API_VERSION@_include_HEADERS = \
controller.h \
+ controller-prelude.h \
gstargbcontrolbinding.h \
gstdirectcontrolbinding.h \
gsttimedvaluecontrolsource.h \
--- /dev/null
+/* GStreamer Controller Library
+ * Copyright (C) 2018 GStreamer developers
+ *
+ * controller-prelude.h: prelude include header for gst-controller 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_CONTROLLER_PRELUDE_H__
+#define __GST_CONTROLLER_PRELUDE_H__
+
+#include <gst/gst.h>
+
+#ifndef GST_CONTROLLER_API
+#define GST_CONTROLLER_API GST_EXPORT
+#endif
+
+#endif /* __GST_CONTROLLER_PRELUDE_H__ */
#ifndef __GST_CONTROLLER_H__
#define __GST_CONTROLLER_H__
+#include <gst/controller/controller-prelude.h>
+
#include <gst/controller/gstargbcontrolbinding.h>
#include <gst/controller/gstdirectcontrolbinding.h>
#include <gst/controller/gstproxycontrolbinding.h>
import sys, os, shutil, subprocess
h_array = ['--fhead',
- "#ifndef __GST_CONTROLLER_ENUM_TYPES_H__\n#define __GST_CONTROLLER_ENUM_TYPES_H__\n\n#include <glib-object.h>\n#include <gst/gstconfig.h>\n\nG_BEGIN_DECLS\n",
+ "#ifndef __GST_CONTROLLER_ENUM_TYPES_H__\n#define __GST_CONTROLLER_ENUM_TYPES_H__\n\n#include <glib-object.h>\n#include <gst/gstconfig.h>\n#include <gst/controller/controller-prelude.h>\n\nG_BEGIN_DECLS\n",
'--fprod',
"\n/* enumerations from \"@filename@\" */\n",
'--vhead',
- 'GST_EXPORT\nGType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n',
+ 'GST_CONTROLLER_API\nGType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n',
'--ftail',
'G_END_DECLS\n\n#endif /* __GST_CONTROLLER_ENUM_TYPES_H__ */',
]
#include <glib-object.h>
#include <gst/gstcontrolsource.h>
+#include <gst/controller/controller-prelude.h>
G_BEGIN_DECLS
gpointer _gst_reserved[GST_PADDING];
};
-GST_EXPORT
+GST_CONTROLLER_API
GType gst_argb_control_binding_get_type (void);
/* Functions */
-GST_EXPORT
+GST_CONTROLLER_API
GstControlBinding * gst_argb_control_binding_new (GstObject * object, const gchar * property_name,
GstControlSource * cs_a, GstControlSource * cs_r,
GstControlSource * cs_g, GstControlSource * cs_b);
#include <glib-object.h>
#include <gst/gstcontrolsource.h>
+#include <gst/controller/controller-prelude.h>
G_BEGIN_DECLS
gpointer _gst_reserved[GST_PADDING];
};
-GST_EXPORT
+GST_CONTROLLER_API
GType gst_direct_control_binding_get_type (void);
/* Functions */
-GST_EXPORT
+GST_CONTROLLER_API
GstControlBinding * gst_direct_control_binding_new (GstObject * object, const gchar * property_name,
GstControlSource * cs);
-GST_EXPORT
+GST_CONTROLLER_API
GstControlBinding * gst_direct_control_binding_new_absolute (GstObject * object, const gchar * property_name,
GstControlSource * cs);
gpointer _gst_reserved[GST_PADDING];
};
-GST_EXPORT
+GST_CONTROLLER_API
GType gst_interpolation_control_source_get_type (void);
/* Functions */
-GST_EXPORT
+GST_CONTROLLER_API
GstControlSource * gst_interpolation_control_source_new (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
gpointer _gst_reserved[GST_PADDING];
};
-GST_EXPORT
+GST_CONTROLLER_API
GType gst_lfo_control_source_get_type (void);
/* Functions */
-GST_EXPORT
+GST_CONTROLLER_API
GstControlSource *gst_lfo_control_source_new (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#define __GST_PROXY_CONTROL_BINDING_H__
#include <gst/gst.h>
+#include <gst/controller/controller-prelude.h>
G_BEGIN_DECLS
gpointer _padding[GST_PADDING];
};
-GST_EXPORT
+GST_CONTROLLER_API
GType gst_proxy_control_binding_get_type (void);
-GST_EXPORT
+GST_CONTROLLER_API
GstControlBinding * gst_proxy_control_binding_new (GstObject * object,
const gchar * property_name,
GstObject * ref_object,
#include <glib-object.h>
#include <gst/gst.h>
-
-#include <gst/gstcontrolsource.h>
+#include <gst/controller/controller-prelude.h>
G_BEGIN_DECLS
} cache;
};
-GST_EXPORT
+GST_CONTROLLER_API
GType gst_control_point_get_type (void);
/**
#define GST_TIMED_VALUE_CONTROL_SOURCE_UNLOCK(o) \
g_mutex_unlock(&((GstTimedValueControlSource *)o)->lock)
-GST_EXPORT
+GST_CONTROLLER_API
GType gst_timed_value_control_source_get_type (void);
/* Functions */
-GST_EXPORT
+GST_CONTROLLER_API
GSequenceIter * gst_timed_value_control_source_find_control_point_iter (
GstTimedValueControlSource * self,
GstClockTime timestamp);
-GST_EXPORT
+GST_CONTROLLER_API
gboolean gst_timed_value_control_source_set (GstTimedValueControlSource * self,
GstClockTime timestamp,
const gdouble value);
-GST_EXPORT
+GST_CONTROLLER_API
gboolean gst_timed_value_control_source_set_from_list (GstTimedValueControlSource * self,
const GSList * timedvalues);
-GST_EXPORT
+GST_CONTROLLER_API
gboolean gst_timed_value_control_source_unset (GstTimedValueControlSource * self,
GstClockTime timestamp);
-GST_EXPORT
+GST_CONTROLLER_API
void gst_timed_value_control_source_unset_all (GstTimedValueControlSource *self);
-GST_EXPORT
+GST_CONTROLLER_API
GList * gst_timed_value_control_source_get_all (GstTimedValueControlSource * self);
-GST_EXPORT
+GST_CONTROLLER_API
gint gst_timed_value_control_source_get_count (GstTimedValueControlSource * self);
-GST_EXPORT
+GST_CONTROLLER_API
void gst_timed_value_control_invalidate_cache (GstTimedValueControlSource * self);
-GST_EXPORT
+GST_CONTROLLER_API
void gst_control_point_free (GstControlPoint * cp);
-GST_EXPORT
+GST_CONTROLLER_API
GstControlPoint * gst_control_point_copy (GstControlPoint * cp);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
gpointer _gst_reserved[GST_PADDING];
};
-GST_EXPORT
+GST_CONTROLLER_API
GType gst_trigger_control_source_get_type (void);
/* Functions */
-GST_EXPORT
+GST_CONTROLLER_API
GstControlSource *gst_trigger_control_source_new (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
'gstproxycontrolbinding.h',
'gsttriggercontrolsource.h',
'gstlfocontrolsource.h',
+ 'controller-prelude.h',
'controller.h',
]
install_headers(gst_controller_headers, subdir : 'gstreamer-1.0/gst/controller/')