controller: Export boxed type copy/free functions for GstControlPoint
authorSebastian Dröge <sebastian@centricular.com>
Tue, 20 Jun 2017 07:00:16 +0000 (10:00 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 20 Jun 2017 07:09:06 +0000 (10:09 +0300)
libs/gst/controller/gsttimedvaluecontrolsource.c
libs/gst/controller/gsttimedvaluecontrolsource.h
win32/common/libgstcontroller.def

index 47f5ead..3ec43b0 100644 (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
index 281484f..d59c7bb 100644 (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
index 5ccc4c7..66657e6 100644 (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