xmptag: migrate to the _full version of the API and drop the _full postfix
authorStefan Sauer <ensonic@users.sf.net>
Wed, 12 Sep 2012 19:32:04 +0000 (21:32 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Wed, 12 Sep 2012 19:32:04 +0000 (21:32 +0200)
Fix up all invocations.

docs/libs/gst-plugins-base-libs-sections.txt
gst-libs/gst/tag/gstxmptag.c
gst-libs/gst/tag/tag.h
gst-libs/gst/tag/xmpwriter.c
tests/check/libs/tag.c
tests/check/libs/xmpwriter.c
win32/common/libgsttag.def

index 0b08fd8..68e2b80 100644 (file)
@@ -1643,7 +1643,6 @@ gst_tag_list_from_id3v2_tag
 <INCLUDE>gst/tag/tag.h</INCLUDE>
 gst_tag_list_from_xmp_buffer
 gst_tag_list_to_xmp_buffer
-gst_tag_list_to_xmp_buffer_full
 gst_tag_xmp_list_schemas
 <SUBSECTION Standard>
 </SECTION>
index 8250f7c..597579b 100644 (file)
@@ -1666,7 +1666,7 @@ write_one_tag (const GstTagList * list, XmpTag * xmp_tag, gpointer user_data)
 }
 
 /**
- * gst_tag_list_to_xmp_buffer_full:
+ * gst_tag_list_to_xmp_buffer:
  * @list: tags
  * @read_only: does the container forbid inplace editing
  * @schemas: %NULL terminated array of schemas to be used on serialization
@@ -1678,7 +1678,7 @@ write_one_tag (const GstTagList * list, XmpTag * xmp_tag, gpointer user_data)
  * Returns: new buffer or %NULL, unref the buffer when done
  */
 GstBuffer *
-gst_tag_list_to_xmp_buffer_full (const GstTagList * list, gboolean read_only,
+gst_tag_list_to_xmp_buffer (const GstTagList * list, gboolean read_only,
     const gchar ** schemas)
 {
   GstBuffer *buffer = NULL;
@@ -1763,20 +1763,5 @@ gst_tag_list_to_xmp_buffer_full (const GstTagList * list, gboolean read_only,
   return buffer;
 }
 
-/**
- * gst_tag_list_to_xmp_buffer:
- * @list: tags
- * @read_only: does the container forbid inplace editing
- *
- * Formats a taglist as a xmp packet.
- *
- * Returns: new buffer or %NULL, unref the buffer when done
- */
-GstBuffer *
-gst_tag_list_to_xmp_buffer (const GstTagList * list, gboolean read_only)
-{
-  return gst_tag_list_to_xmp_buffer_full (list, read_only, NULL);
-}
-
 #undef gst_xmp_schema_lookup
 #undef gst_xmp_schema_insert
index 146aae9..b75ad6e 100644 (file)
@@ -447,12 +447,11 @@ GstTagList *            gst_tag_list_from_id3v2_tag (GstBuffer * buffer);
 guint                   gst_tag_get_id3v2_tag_size  (GstBuffer * buffer);
 
 /* functions to  convert GstBuffers with xmp packets contents to GstTagLists and back */
-GstTagList *            gst_tag_list_from_xmp_buffer  (GstBuffer *  buffer);
-GstBuffer *             gst_tag_list_to_xmp_buffer    (const GstTagList * list,
-                                                       gboolean           read_only);
-GstBuffer *            gst_tag_list_to_xmp_buffer_full (const GstTagList * list,
-                                                       gboolean read_only, const gchar ** schemas);
-const gchar**          gst_tag_xmp_list_schemas      (void);
+GstTagList *            gst_tag_list_from_xmp_buffer (GstBuffer *  buffer);
+GstBuffer *                      gst_tag_list_to_xmp_buffer   (const GstTagList * list,
+                                                                                               gboolean read_only,
+                                                                                               const gchar ** schemas);
+const gchar**                  gst_tag_xmp_list_schemas     (void);
 
 /* functions related to exif */
 GstBuffer *             gst_tag_list_to_exif_buffer (const GstTagList * taglist,
index 95660bc..3a38f29 100644 (file)
@@ -305,7 +305,7 @@ gst_tag_xmp_writer_tag_list_to_xmp_buffer (GstTagXmpWriter * config,
       for (iter = data->schemas; iter; iter = g_slist_next (iter)) {
         array[i++] = (gchar *) iter->data;
       }
-      buf = gst_tag_list_to_xmp_buffer_full (taglist, read_only,
+      buf = gst_tag_list_to_xmp_buffer (taglist, read_only,
           (const gchar **) array);
       g_free (array);
     }
index 09b5197..edd6edf 100644 (file)
@@ -962,7 +962,7 @@ GST_START_TEST (test_xmp_formatting)
       GST_TAG_DESCRIPTION, "test decription",
       GST_TAG_KEYWORDS, "keyword1", GST_TAG_KEYWORDS, "keyword2", NULL);
 
-  buf = gst_tag_list_to_xmp_buffer (list, FALSE);
+  buf = gst_tag_list_to_xmp_buffer (list, FALSE, NULL);
   fail_unless (buf != NULL);
 
   gst_buffer_map (buf, &map, GST_MAP_READ);
@@ -1075,7 +1075,7 @@ do_xmp_tag_serialization_deserialization (GstTagList * taglist,
   GstTagList *taglist2;
   GstBuffer *buf;
 
-  buf = gst_tag_list_to_xmp_buffer_full (taglist, TRUE, schemas);
+  buf = gst_tag_list_to_xmp_buffer (taglist, TRUE, schemas);
   taglist2 = gst_tag_list_from_xmp_buffer (buf);
 
   fail_unless (gst_tag_list_is_equal (taglist, taglist2));
index ba0e642..402d08f 100644 (file)
@@ -132,7 +132,7 @@ GST_START_TEST (test_default)
   buf =
       gst_tag_xmp_writer_tag_list_to_xmp_buffer (GST_TAG_XMP_WRITER
       (test_element), taglist, TRUE);
-  buf2 = gst_tag_list_to_xmp_buffer (taglist, TRUE);
+  buf2 = gst_tag_list_to_xmp_buffer (taglist, TRUE, NULL);
   fail_unless (gst_buffer_equals (buf, buf2));
 
   gst_object_unref (test_element);
index 76db224..c8d4623 100644 (file)
@@ -36,7 +36,6 @@ EXPORTS
        gst_tag_list_to_exif_buffer_with_tiff_header
        gst_tag_list_to_vorbiscomment_buffer
        gst_tag_list_to_xmp_buffer
-       gst_tag_list_to_xmp_buffer_full
        gst_tag_mux_get_type
        gst_tag_parse_extended_comment
        gst_tag_register_musicbrainz_tags