1 /* GStreamer XmpConfig 2 * Copyright (C) 2011 Thiago Santos <thiago.sousa.santos@collabora.co.uk> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Library General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Library General Public License for more details. 13 * 14 * You should have received a copy of the GNU Library General Public 15 * License along with this library; if not, write to the 16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 17 * Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef __TAG_XMP_WRITER_H__ 21 #define __TAG_XMP_WRITER_H__ 22 23 #include <gst/gst.h> 24 #include <gst/tag/tag-prelude.h> 25 26 G_BEGIN_DECLS 27 28 #define GST_TYPE_TAG_XMP_WRITER \ 29 (gst_tag_xmp_writer_get_type ()) 30 #define GST_TAG_XMP_WRITER(obj) \ 31 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TAG_XMP_WRITER, GstTagXmpWriter)) 32 #define GST_IS_TAG_XMP_WRITER(obj) \ 33 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TAG_XMP_WRITER)) 34 #define GST_TAG_XMP_WRITER_GET_INTERFACE(inst) \ 35 (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_TAG_XMP_WRITER, GstTagXmpWriterInterface)) 36 37 typedef struct _GstTagXmpWriter GstTagXmpWriter; 38 typedef struct _GstTagXmpWriterInterface GstTagXmpWriterInterface; 39 40 struct _GstTagXmpWriterInterface { 41 GTypeInterface parent; 42 }; 43 44 GST_TAG_API 45 GType gst_tag_xmp_writer_get_type (void); 46 47 GST_TAG_API 48 void gst_tag_xmp_writer_add_all_schemas (GstTagXmpWriter * config); 49 50 GST_TAG_API 51 void gst_tag_xmp_writer_add_schema (GstTagXmpWriter * config, 52 const gchar * schema); 53 54 GST_TAG_API 55 gboolean gst_tag_xmp_writer_has_schema (GstTagXmpWriter * config, 56 const gchar * schema); 57 58 GST_TAG_API 59 void gst_tag_xmp_writer_remove_schema (GstTagXmpWriter * config, 60 const gchar * schema); 61 62 GST_TAG_API 63 void gst_tag_xmp_writer_remove_all_schemas (GstTagXmpWriter * config); 64 65 GST_TAG_API 66 GstBuffer* gst_tag_xmp_writer_tag_list_to_xmp_buffer (GstTagXmpWriter * config, 67 const GstTagList * taglist, 68 gboolean read_only); 69 70 G_END_DECLS 71 72 #endif /* __TAG_XMP_WRITER_H__ */ 73