diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2018-03-12 23:03:26 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-03-13 00:57:37 +0000 |
commit | 6b286fb7ddeae1d45907465c49b8a414ae208332 (patch) | |
tree | 8d6b420497eac09bbac83e54c9903c0300fd39b1 | |
parent | 357e7c7b02431f7515f9b77778945fc8faa2f80f (diff) |
controller: GST_EXPORT -> GST_CONTROLLER_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.
m--------- | common | 0 | ||||
-rw-r--r-- | libs/gst/controller/Makefile.am | 4 | ||||
-rw-r--r-- | libs/gst/controller/controller-prelude.h | 31 | ||||
-rw-r--r-- | libs/gst/controller/controller.h | 2 | ||||
-rwxr-xr-x | libs/gst/controller/controller_mkenum.py | 4 | ||||
-rw-r--r-- | libs/gst/controller/gstargbcontrolbinding.h | 5 | ||||
-rw-r--r-- | libs/gst/controller/gstdirectcontrolbinding.h | 7 | ||||
-rw-r--r-- | libs/gst/controller/gstinterpolationcontrolsource.h | 4 | ||||
-rw-r--r-- | libs/gst/controller/gstlfocontrolsource.h | 4 | ||||
-rw-r--r-- | libs/gst/controller/gstproxycontrolbinding.h | 5 | ||||
-rw-r--r-- | libs/gst/controller/gsttimedvaluecontrolsource.h | 27 | ||||
-rw-r--r-- | libs/gst/controller/gsttriggercontrolsource.h | 4 | ||||
-rw-r--r-- | libs/gst/controller/meson.build | 1 |
13 files changed, 68 insertions, 30 deletions
diff --git a/common b/common -Subproject 3fa2c9e372bceec30be91e67fb02b6cb05bed49 +Subproject f0c2dc9aadfa05bb5274c40da750104ecbb88cb diff --git a/libs/gst/controller/Makefile.am b/libs/gst/controller/Makefile.am index fae7a2f33..b1675c78e 100644 --- a/libs/gst/controller/Makefile.am +++ b/libs/gst/controller/Makefile.am @@ -7,7 +7,8 @@ glib_enum_headers= \ 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 @@ -16,6 +17,7 @@ BUILT_SOURCES = $(built_sources) $(built_headers) 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 \ diff --git a/libs/gst/controller/controller-prelude.h b/libs/gst/controller/controller-prelude.h new file mode 100644 index 000000000..852b53dcd --- /dev/null +++ b/libs/gst/controller/controller-prelude.h @@ -0,0 +1,31 @@ +/* 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__ */ diff --git a/libs/gst/controller/controller.h b/libs/gst/controller/controller.h index 383c0cf1e..79ae8ce6d 100644 --- a/libs/gst/controller/controller.h +++ b/libs/gst/controller/controller.h @@ -22,6 +22,8 @@ #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> diff --git a/libs/gst/controller/controller_mkenum.py b/libs/gst/controller/controller_mkenum.py index a9fc18200..01d8478a3 100755 --- a/libs/gst/controller/controller_mkenum.py +++ b/libs/gst/controller/controller_mkenum.py @@ -8,11 +8,11 @@ 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__ */', ] diff --git a/libs/gst/controller/gstargbcontrolbinding.h b/libs/gst/controller/gstargbcontrolbinding.h index 0e7224f0c..caabed3e0 100644 --- a/libs/gst/controller/gstargbcontrolbinding.h +++ b/libs/gst/controller/gstargbcontrolbinding.h @@ -29,6 +29,7 @@ #include <glib-object.h> #include <gst/gstcontrolsource.h> +#include <gst/controller/controller-prelude.h> G_BEGIN_DECLS @@ -85,12 +86,12 @@ struct _GstARGBControlBindingClass 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); diff --git a/libs/gst/controller/gstdirectcontrolbinding.h b/libs/gst/controller/gstdirectcontrolbinding.h index 6681fce25..c84b870ff 100644 --- a/libs/gst/controller/gstdirectcontrolbinding.h +++ b/libs/gst/controller/gstdirectcontrolbinding.h @@ -28,6 +28,7 @@ #include <glib-object.h> #include <gst/gstcontrolsource.h> +#include <gst/controller/controller-prelude.h> G_BEGIN_DECLS @@ -109,15 +110,15 @@ struct _GstDirectControlBindingClass 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); diff --git a/libs/gst/controller/gstinterpolationcontrolsource.h b/libs/gst/controller/gstinterpolationcontrolsource.h index 3f8c0b7b4..65d164f8c 100644 --- a/libs/gst/controller/gstinterpolationcontrolsource.h +++ b/libs/gst/controller/gstinterpolationcontrolsource.h @@ -89,12 +89,12 @@ struct _GstInterpolationControlSourceClass { 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 diff --git a/libs/gst/controller/gstlfocontrolsource.h b/libs/gst/controller/gstlfocontrolsource.h index 27d358d6a..41bc10001 100644 --- a/libs/gst/controller/gstlfocontrolsource.h +++ b/libs/gst/controller/gstlfocontrolsource.h @@ -87,12 +87,12 @@ struct _GstLFOControlSourceClass { 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 diff --git a/libs/gst/controller/gstproxycontrolbinding.h b/libs/gst/controller/gstproxycontrolbinding.h index b5b49f612..b39e7603f 100644 --- a/libs/gst/controller/gstproxycontrolbinding.h +++ b/libs/gst/controller/gstproxycontrolbinding.h @@ -22,6 +22,7 @@ #define __GST_PROXY_CONTROL_BINDING_H__ #include <gst/gst.h> +#include <gst/controller/controller-prelude.h> G_BEGIN_DECLS @@ -69,10 +70,10 @@ struct _GstProxyControlBindingClass 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, diff --git a/libs/gst/controller/gsttimedvaluecontrolsource.h b/libs/gst/controller/gsttimedvaluecontrolsource.h index d480fa3a0..65ba373e1 100644 --- a/libs/gst/controller/gsttimedvaluecontrolsource.h +++ b/libs/gst/controller/gsttimedvaluecontrolsource.h @@ -27,8 +27,7 @@ #include <glib-object.h> #include <gst/gst.h> - -#include <gst/gstcontrolsource.h> +#include <gst/controller/controller-prelude.h> G_BEGIN_DECLS @@ -81,7 +80,7 @@ struct _GstControlPoint } cache; }; -GST_EXPORT +GST_CONTROLLER_API GType gst_control_point_get_type (void); /** @@ -116,42 +115,42 @@ struct _GstTimedValueControlSourceClass { #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 diff --git a/libs/gst/controller/gsttriggercontrolsource.h b/libs/gst/controller/gsttriggercontrolsource.h index dde3df18c..f98bed729 100644 --- a/libs/gst/controller/gsttriggercontrolsource.h +++ b/libs/gst/controller/gsttriggercontrolsource.h @@ -72,12 +72,12 @@ struct _GstTriggerControlSourceClass { 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 diff --git a/libs/gst/controller/meson.build b/libs/gst/controller/meson.build index d4b2e36f1..1645c9e65 100644 --- a/libs/gst/controller/meson.build +++ b/libs/gst/controller/meson.build @@ -21,6 +21,7 @@ gst_controller_headers = controller_mkenum_headers + [ 'gstproxycontrolbinding.h', 'gsttriggercontrolsource.h', 'gstlfocontrolsource.h', + 'controller-prelude.h', 'controller.h', ] install_headers(gst_controller_headers, subdir : 'gstreamer-1.0/gst/controller/') |