libs: controller: mark symbols explicitly for export with GST_EXPORT

This commit is contained in:
Tim-Philipp Müller 2017-05-10 00:11:10 +01:00
parent d8f23c9786
commit c811e86d6b
10 changed files with 38 additions and 11 deletions

2
common

@ -1 +1 @@
Subproject commit 48a5d85ebf4a0bad1c997c83100f710fe2154fbf
Subproject commit 29046b89d80bbca22eb222c18820fb40a4ac5bde

View 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

View file

@ -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__ */',
]

View 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);

View 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);

View 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

View 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

View 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)

View 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

View 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