Tizen 2.0 Release
[framework/multimedia/gst-plugins-bad0.10.git] / gst / mpegdemux / flutspmtstreaminfo.h
1 /*
2  * This library is licensed under 2 different licenses and you
3  * can choose to use it under the terms of either one of them. The
4  * two licenses are the MPL 1.1 and the LGPL.
5  *
6  * MPL:
7  *
8  * The contents of this file are subject to the Mozilla Public License
9  * Version 1.1 (the "License"); you may not use this file except in
10  * compliance with the License. You may obtain a copy of the License at
11  * http://www.mozilla.org/MPL/.
12  *
13  * Software distributed under the License is distributed on an "AS IS"
14  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
15  * License for the specific language governing rights and limitations
16  * under the License.
17  *
18  * LGPL:
19  *
20  * This library is free software; you can redistribute it and/or
21  * modify it under the terms of the GNU Library General Public
22  * License as published by the Free Software Foundation; either
23  * version 2 of the License, or (at your option) any later version.
24  *
25  * This library is distributed in the hope that it will be useful,
26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
28  * Library General Public License for more details.
29  *
30  * You should have received a copy of the GNU Library General Public
31  * License along with this library; if not, write to the
32  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
33  * Boston, MA 02111-1307, USA.
34  *
35  * The Original Code is Fluendo MPEG Demuxer plugin.
36  *
37  * The Initial Developer of the Original Code is Fluendo, S.L.
38  * Portions created by Fluendo, S.L. are Copyright (C) 2005
39  * Fluendo, S.L. All Rights Reserved.
40  *
41  * Contributor(s): Jan Schmidt <jan@fluendo.com>
42  */
43
44 #ifndef __FLUTS_PMT_STREAM_INFO_H__
45 #define __FLUTS_PMT_STREAM_INFO_H__
46
47 #include <glib.h>
48
49 G_BEGIN_DECLS
50
51
52 typedef struct MpegTsPmtStreamInfoClass {
53   GObjectClass parent_class;
54 } MpegTsPmtStreamInfoClass;
55
56 typedef struct MpegTsPmtStreamInfo {
57   GObject parent;
58
59   guint16 pid;
60   GValueArray *languages; /* null terminated 3 character ISO639 language code */
61   guint8 stream_type;
62   GValueArray *descriptors;
63 } MpegTsPmtStreamInfo;
64
65 MpegTsPmtStreamInfo *mpegts_pmt_stream_info_new (guint16 pid, guint8 type);
66 void mpegts_pmt_stream_info_add_language(MpegTsPmtStreamInfo* si,
67     gchar* language);
68 void mpegts_pmt_stream_info_add_descriptor (MpegTsPmtStreamInfo *pmt_info,
69     const gchar *descriptor, guint length);
70
71 GType mpegts_pmt_stream_info_get_type (void);
72
73 #define MPEGTS_TYPE_PMT_STREAM_INFO (mpegts_pmt_stream_info_get_type ())
74
75 #define MPEGTS_IS_PMT_STREAM_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), MPEGTS_TYPE_PMT_STREAM_INFO))
76 #define MPEGTS_PMT_STREAM_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),MPEGTS_TYPE_PMT_STREAM_INFO, MpegTsPmtStreamInfo))
77
78 G_END_DECLS
79
80 #endif