1 /* GStreamer taglib-based muxer base class
2 * Copyright (C) 2006 Christophe Fergeau <teuf@gnome.org>
3 * Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef GST_TAG_LIB_MUX_H
22 #define GST_TAG_LIB_MUX_H
28 typedef struct _GstTagLibMux GstTagLibMux;
29 typedef struct _GstTagLibMuxClass GstTagLibMuxClass;
31 /* Definition of structure storing data for this element. */
32 struct _GstTagLibMux {
37 GstTagList *event_tags; /* tags received from upstream elements */
41 GstEvent *newsegment_ev; /* cached newsegment event from upstream */
44 /* Standard definition defining a class for this element. */
45 struct _GstTagLibMuxClass {
46 GstElementClass parent_class;
49 GstBuffer * (*render_tag) (GstTagLibMux * mux, GstTagList * tag_list);
52 /* Standard macros for defining types for this element. */
53 #define GST_TYPE_TAG_LIB_MUX \
54 (gst_tag_lib_mux_get_type())
55 #define GST_TAG_LIB_MUX(obj) \
56 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TAG_LIB_MUX,GstTagLibMux))
57 #define GST_TAG_LIB_MUX_CLASS(klass) \
58 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TAG_LIB_MUX,GstTagLibMuxClass))
59 #define GST_IS_TAG_LIB_MUX(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TAG_LIB_MUX))
61 #define GST_IS_TAG_LIB_MUX_CLASS(klass) \
62 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TAG_LIB_MUX))
64 /* Standard function returning type information. */
65 GType gst_tag_lib_mux_get_type (void);
66 gboolean gst_apev2_mux_plugin_init (GstPlugin * plugin);
67 gboolean gst_id3v2_mux_plugin_init (GstPlugin * plugin);