Tizen 2.0 Release
[framework/multimedia/gst-plugins-bad0.10.git] / ext / kate / gstkateparse.h
1 /* -*- c-basic-offset: 2 -*-
2  * GStreamer
3  * Copyright (C) <2004> Thomas Vander Stichele <thomas at apestaart dot org>
4  * Copyright (C) <2008> Vincent Penquerc'h <ogg.k.ogg.k at googlemail dot com>
5  *
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.
10  *
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.
15  *
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., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22
23 #ifndef __GST_KATE_PARSE_H__
24 #define __GST_KATE_PARSE_H__
25
26
27 #include <gst/gst.h>
28 #include <kate/kate.h>
29
30 G_BEGIN_DECLS
31 #define GST_TYPE_KATE_PARSE \
32   (gst_kate_parse_get_type())
33 #define GST_KATE_PARSE(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_KATE_PARSE,GstKateParse))
35 #define GST_KATE_PARSE_CLASS(klass) \
36   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_KATE_PARSE,GstKateParseClass))
37 #define GST_IS_KATE_PARSE(obj) \
38   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_KATE_PARSE))
39 #define GST_IS_KATE_PARSE_CLASS(klass) \
40   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_KATE_PARSE))
41 typedef struct _GstKateParse GstKateParse;
42 typedef struct _GstKateParseClass GstKateParseClass;
43
44 /**
45  * GstKateParse:
46  *
47  * Opaque data structure.
48  */
49 struct _GstKateParse
50 {
51   GstElement element;
52
53   GstPad *sinkpad;
54   GstPad *srcpad;
55
56   guint packetno;
57   gboolean streamheader_sent;
58   GList *streamheader;
59
60   GQueue *event_queue;
61   GQueue *buffer_queue;
62
63   kate_info ki;
64   kate_comment kc;
65 };
66
67 struct _GstKateParseClass
68 {
69   GstElementClass parent_class;
70
71   /* virtual functions */
72     GstFlowReturn (*parse_packet) (GstKateParse * parse, GstBuffer * buf);
73 };
74
75 GType gst_kate_parse_get_type (void);
76
77 G_END_DECLS
78 #endif /* __GST_KATE_PARSE_H__ */