controller: Export boxed type copy/free functions for GstControlPoint

This commit is contained in:
Sebastian Dröge 2017-06-20 10:00:16 +03:00
parent 226d01a941
commit 70a0ee4c75
3 changed files with 13 additions and 8 deletions

View file

@ -64,14 +64,13 @@ enum
static guint gst_timed_value_control_source_signals[LAST_SIGNAL] = { 0 };
/*
/**
* gst_control_point_free:
* @prop: the object to free
* @cp: the object to free
*
* Private method which frees all data allocated by a #GstControlPoint
* instance.
* Frees all data allocated by a #GstControlPoint instance.
*/
static void
void
gst_control_point_free (GstControlPoint * cp)
{
g_return_if_fail (cp);
@ -79,10 +78,10 @@ gst_control_point_free (GstControlPoint * cp)
g_slice_free (GstControlPoint, cp);
}
static gpointer
gst_control_point_copy (GstControlPoint * boxed)
GstControlPoint *
gst_control_point_copy (GstControlPoint * cp)
{
return g_slice_dup (GstControlPoint, boxed);
return g_slice_dup (GstControlPoint, cp);
}
GType

View file

@ -135,6 +135,10 @@ GList * gst_timed_value_control_source_get_all (GstTimedValueCont
gint gst_timed_value_control_source_get_count (GstTimedValueControlSource * self);
void gst_timed_value_control_invalidate_cache (GstTimedValueControlSource * self);
void gst_control_point_free (GstControlPoint * cp);
GstControlPoint * gst_control_point_copy (GstControlPoint * cp);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTimedValueControlSource, gst_object_unref)
#endif

View file

@ -1,6 +1,8 @@
EXPORTS
gst_argb_control_binding_get_type
gst_argb_control_binding_new
gst_control_point_copy
gst_control_point_free
gst_control_point_get_type
gst_direct_control_binding_get_type
gst_direct_control_binding_new