2 * Copyright (C) 2010, 2012 Alexander Saprykin <xelfium@gmail.com>
4 * gsttocsetter.h: Interfaces for TOC
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
22 #ifndef __GST_TOC_SETTER_H__
23 #define __GST_TOC_SETTER_H__
29 #define GST_TYPE_TOC_SETTER (gst_toc_setter_get_type ())
30 #define GST_TOC_SETTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TOC_SETTER, GstTocSetter))
31 #define GST_IS_TOC_SETTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TOC_SETTER))
32 #define GST_TOC_SETTER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_TOC_SETTER, GstTocSetterInterface))
36 * Opaque #GstTocSetter data structure.
38 typedef struct _GstTocSetter GstTocSetter;
39 typedef struct _GstTocSetterInterface GstTocSetterInterface;
42 * GstTocSetterInterface:
43 * @g_iface: parent interface type.
45 * #GstTocSetterInterface interface.
48 struct _GstTocSetterInterface
50 GTypeInterface g_iface;
57 GType gst_toc_setter_get_type (void);
59 void gst_toc_setter_reset (GstTocSetter *setter);
61 GstToc * gst_toc_setter_get_toc (GstTocSetter *setter);
63 void gst_toc_setter_set_toc (GstTocSetter *setter, GstToc *toc);
67 #endif /* __GST_TOC_SETTER_H__ */