API change: rename (currently unused function) gst_(data|buffer)_needs_copy_on_write...
authorBenjamin Otte <otte@gnome.org>
Tue, 15 Apr 2003 18:41:23 +0000 (18:41 +0000)
committerBenjamin Otte <otte@gnome.org>
Tue, 15 Apr 2003 18:41:23 +0000 (18:41 +0000)
Original commit message from CVS:
API change: rename (currently unused function) gst_(data|buffer)_needs_copy_on_write to gst_(data|buffer)_is_readonly - we don't want to confuse even core developers

gst/gstbuffer.h
gst/gstdata.c
gst/gstdata.h

index 5eef605..6847011 100644 (file)
@@ -141,7 +141,7 @@ G_STMT_START {                                              \
 #define                gst_buffer_unref(buf)           gst_data_unref (GST_DATA (buf))
 /* copy buffer */
 #define                gst_buffer_copy(buf)            GST_BUFFER (gst_data_copy (GST_DATA (buf)))
-#define                gst_buffer_needs_copy_on_write(buf)     GST_BUFFER (gst_data_needs_copy_on_write (GST_DATA (buf)))
+#define                gst_buffer_is_readonly(buf)     GST_BUFFER (gst_data_is_readonly (GST_DATA (buf)))
 #define                gst_buffer_copy_on_write(buf)   GST_BUFFER (gst_data_copy_on_write (GST_DATA (buf)))
 #define                gst_buffer_free(buf)            gst_data_free (GST_DATA (buf))
 
index 260efe1..443b60b 100644 (file)
@@ -102,7 +102,7 @@ gst_data_copy (const GstData *data)
 }
 
 /**
- * gst_data_needs_copy_on_write:
+ * gst_data_is_readonly:
  * @data: a #GstData to copy
  *
  * Query if the gstdata needs to be copied before it can safely be modified.
@@ -111,7 +111,7 @@ gst_data_copy (const GstData *data)
  * be copied before it can be modified safely.
  */
 gboolean
-gst_data_needs_copy_on_write (GstData *data) 
+gst_data_is_readonly (GstData *data) 
 {
   gint refcount;
 
index 06bd1a4..71afa58 100644 (file)
@@ -86,7 +86,7 @@ void                  gst_data_copy_into              (const GstData *data, GstData *target);
 
 /* basic operations on data */
 GstData*               gst_data_copy                   (const GstData *data);
-gboolean               gst_data_needs_copy_on_write    (GstData *data);
+gboolean               gst_data_is_readonly            (GstData *data);
 GstData*               gst_data_copy_on_write          (GstData *data);
 void                   gst_data_free                   (GstData *data);