mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
controller: Export boxed type copy/free functions for GstControlPoint
This commit is contained in:
parent
35b426ff19
commit
848dee060b
3 changed files with 15 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -148,6 +148,12 @@ gint gst_timed_value_control_source_get_count (GstTimedValueCont
|
|||
GST_EXPORT
|
||||
void gst_timed_value_control_invalidate_cache (GstTimedValueControlSource * self);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_control_point_free (GstControlPoint * cp);
|
||||
|
||||
GST_EXPORT
|
||||
GstControlPoint * gst_control_point_copy (GstControlPoint * cp);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTimedValueControlSource, gst_object_unref)
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue