1 /* GStreamer ID3 v1 and v2 muxer 2 * 3 * Copyright (C) 2006 Christophe Fergeau <teuf@gnome.org> 4 * Copyright (C) 2006 Tim-Philipp Müller <tim centricular net> 5 * Copyright (C) 2009 Pioneers of the Inevitable <songbird@songbirdnest.com> 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Library General Public 9 * License as published by the Free Software Foundation; either 10 * version 2 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Library General Public License for more details. 16 * 17 * You should have received a copy of the GNU Library General Public 18 * License along with this library; if not, write to the 19 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 20 * Boston, MA 02110-1301, USA. 21 */ 22 23 #ifndef GST_ID3_MUX_H 24 #define GST_ID3_MUX_H 25 26 #include <gst/tag/gsttagmux.h> 27 #include "id3tag.h" 28 29 G_BEGIN_DECLS 30 31 typedef struct _GstId3Mux GstId3Mux; 32 typedef struct _GstId3MuxClass GstId3MuxClass; 33 34 struct _GstId3Mux { 35 GstTagMux tagmux; 36 37 gboolean write_v1; 38 gboolean write_v2; 39 40 gint v2_major_version; 41 }; 42 43 struct _GstId3MuxClass { 44 GstTagMuxClass tagmux_class; 45 }; 46 47 #define GST_TYPE_ID3_MUX \ 48 (gst_id3_mux_get_type()) 49 #define GST_ID3_MUX(obj) \ 50 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ID3_MUX,GstId3Mux)) 51 #define GST_ID3_MUX_CLASS(klass) \ 52 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ID3_MUX,GstId3MuxClass)) 53 #define GST_IS_ID3_MUX(obj) \ 54 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ID3_MUX)) 55 #define GST_IS_ID3_MUX_CLASS(klass) \ 56 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ID3_MUX)) 57 58 GType gst_id3_mux_get_type (void); 59 60 G_END_DECLS 61 62 #endif /* GST_ID3_MUX_H */ 63 64