libs: controller: mark symbols explicitly for export with GST_EXPORT
authorTim-Philipp Müller <tim@centricular.com>
Tue, 9 May 2017 23:11:10 +0000 (00:11 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 15 May 2017 22:14:04 +0000 (23:14 +0100)
common
libs/gst/controller/Makefile.am
libs/gst/controller/controller_mkenum.py
libs/gst/controller/gstargbcontrolbinding.h
libs/gst/controller/gstdirectcontrolbinding.h
libs/gst/controller/gstinterpolationcontrolsource.h
libs/gst/controller/gstlfocontrolsource.h
libs/gst/controller/gstproxycontrolbinding.h
libs/gst/controller/gsttimedvaluecontrolsource.h
libs/gst/controller/gsttriggercontrolsource.h

diff --git a/common b/common
index 48a5d85..29046b8 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 48a5d85ebf4a0bad1c997c83100f710fe2154fbf
+Subproject commit 29046b89d80bbca22eb222c18820fb40a4ac5bde
index 920f84f..fae7a2f 100644 (file)
@@ -7,6 +7,7 @@ glib_enum_headers= \
 glib_enum_define = GST_CONTROLLER
 glib_gen_prefix = gst
 glib_gen_basename = controller
+glib_gen_decl_banner=GST_EXPORT
 
 built_sources = controller-enumtypes.c
 built_headers = controller-enumtypes.h
index f7fbc21..a9fc182 100755 (executable)
@@ -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\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\nG_BEGIN_DECLS\n",
            '--fprod',
            "\n/* enumerations from \"@filename@\" */\n",
            '--vhead',
-           'GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n',
+           'GST_EXPORT\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__ */',
            ]
index c698b07..0e7224f 100644 (file)
@@ -85,10 +85,12 @@ struct _GstARGBControlBindingClass
   gpointer _gst_reserved[GST_PADDING];
 };
 
+GST_EXPORT
 GType gst_argb_control_binding_get_type (void);
 
 /* Functions */
 
+GST_EXPORT
 GstControlBinding * gst_argb_control_binding_new   (GstObject * object, const gchar * property_name,
                                                             GstControlSource * cs_a, GstControlSource * cs_r,
                                                             GstControlSource * cs_g, GstControlSource * cs_b);
index 5732ad8..6681fce 100644 (file)
@@ -109,13 +109,15 @@ struct _GstDirectControlBindingClass
   gpointer _gst_reserved[GST_PADDING];
 };
 
+GST_EXPORT
 GType gst_direct_control_binding_get_type (void);
 
 /* Functions */
 
+GST_EXPORT
 GstControlBinding * gst_direct_control_binding_new (GstObject * object, const gchar * property_name,
                                                     GstControlSource * cs);
-
+GST_EXPORT
 GstControlBinding * gst_direct_control_binding_new_absolute (GstObject * object, const gchar * property_name, 
                                                     GstControlSource * cs);
 
index 3ce3193..3f8c0b7 100644 (file)
@@ -89,10 +89,12 @@ struct _GstInterpolationControlSourceClass {
   gpointer _gst_reserved[GST_PADDING];
 };
 
+GST_EXPORT
 GType gst_interpolation_control_source_get_type (void);
 
 /* Functions */
 
+GST_EXPORT
 GstControlSource * gst_interpolation_control_source_new (void);
 
 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
index b192b5b..27d358d 100644 (file)
@@ -87,10 +87,12 @@ struct _GstLFOControlSourceClass {
   gpointer _gst_reserved[GST_PADDING];
 };
 
+GST_EXPORT
 GType gst_lfo_control_source_get_type (void);
 
 /* Functions */
 
+GST_EXPORT
 GstControlSource *gst_lfo_control_source_new (void);
 
 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
index 096712d..b5b49f6 100644 (file)
@@ -25,7 +25,6 @@
 
 G_BEGIN_DECLS
 
-GType gst_proxy_control_binding_get_type (void);
 #define GST_TYPE_PROXY_CONTROL_BINDING  (gst_proxy_control_binding_get_type())
 #define GST_PROXY_CONTROL_BINDING(obj) \
   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PROXY_CONTROL_BINDING,GstProxyControlBinding))
@@ -70,10 +69,14 @@ struct _GstProxyControlBindingClass
   gpointer _padding[GST_PADDING];
 };
 
-GstControlBinding *     gst_proxy_control_binding_new               (GstObject * object,
-                                                                     const gchar * property_name,
-                                                                     GstObject * ref_object,
-                                                                     const gchar * ref_property_name);
+GST_EXPORT
+GType                   gst_proxy_control_binding_get_type (void);
+
+GST_EXPORT
+GstControlBinding *     gst_proxy_control_binding_new (GstObject * object,
+                                                       const gchar * property_name,
+                                                       GstObject * ref_object,
+                                                       const gchar * ref_property_name);
 
 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstProxyControlBinding, gst_object_unref)
index 281484f..04d94ac 100644 (file)
@@ -81,6 +81,7 @@ struct _GstControlPoint
   } cache;
 };
 
+GST_EXPORT
 GType gst_control_point_get_type (void);
 
 /**
@@ -115,24 +116,36 @@ struct _GstTimedValueControlSourceClass {
 #define GST_TIMED_VALUE_CONTROL_SOURCE_UNLOCK(o) \
   g_mutex_unlock(&((GstTimedValueControlSource *)o)->lock)
 
-GType gst_timed_value_control_source_get_type (void);
+GST_EXPORT
+GType           gst_timed_value_control_source_get_type (void);
 
 /* Functions */
 
+GST_EXPORT
 GSequenceIter * gst_timed_value_control_source_find_control_point_iter (
                                                                GstTimedValueControlSource * self,
                                                                GstClockTime timestamp);
-
+GST_EXPORT
 gboolean        gst_timed_value_control_source_set            (GstTimedValueControlSource * self,
                                                                GstClockTime timestamp,
                                                                const gdouble value);
+GST_EXPORT
 gboolean        gst_timed_value_control_source_set_from_list  (GstTimedValueControlSource * self,
                                                                const GSList * timedvalues);
+GST_EXPORT
 gboolean        gst_timed_value_control_source_unset          (GstTimedValueControlSource * self,
                                                                GstClockTime timestamp);
+
+GST_EXPORT
 void            gst_timed_value_control_source_unset_all      (GstTimedValueControlSource *self);
+
+GST_EXPORT
 GList *         gst_timed_value_control_source_get_all        (GstTimedValueControlSource * self);
+
+GST_EXPORT
 gint            gst_timed_value_control_source_get_count      (GstTimedValueControlSource * self);
+
+GST_EXPORT
 void            gst_timed_value_control_invalidate_cache      (GstTimedValueControlSource * self);
 
 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
index 2e9f21c..dde3df1 100644 (file)
@@ -72,10 +72,12 @@ struct _GstTriggerControlSourceClass {
   gpointer _gst_reserved[GST_PADDING];
 };
 
+GST_EXPORT
 GType gst_trigger_control_source_get_type (void);
 
 /* Functions */
 
+GST_EXPORT
 GstControlSource *gst_trigger_control_source_new (void);
 
 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC