Merging gst-devtools
[platform/upstream/gstreamer.git] / subprojects / gst-devtools / validate / gst / validate / media-descriptor-parser.h
1 /* GstValidate
2  *
3  * Copyright (c) 2012, Collabora Ltd
4  *    Author: Thibault Saunier <thibault.saunier@collabora.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., 51 Franklin St, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21
22 #ifndef GST_VALIDATE_MEDIA_DESCRIPTOR_PARSER_h
23 #define GST_VALIDATE_MEDIA_DESCRIPTOR_PARSER_h
24
25 #include <glib.h>
26 #include <glib-object.h>
27 #include <gst/gst.h>
28 #include "media-descriptor.h"
29
30 G_BEGIN_DECLS
31
32 GST_VALIDATE_API
33 GType gst_validate_media_descriptor_parser_get_type (void);
34
35 #ifndef __GI_SCANNER__
36 #define GST_TYPE_VALIDATE_MEDIA_DESCRIPTOR_PARSER            (gst_validate_media_descriptor_parser_get_type ())
37 #define GST_VALIDATE_MEDIA_DESCRIPTOR_PARSER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VALIDATE_MEDIA_DESCRIPTOR_PARSER, GstValidateMediaDescriptorParser))
38 #define GST_VALIDATE_MEDIA_DESCRIPTOR_PARSER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_VALIDATE_MEDIA_DESCRIPTOR_PARSER, GstValidateMediaDescriptorParserClass))
39 #define GST_IS_VALIDATE_MEDIA_DESCRIPTOR_PARSER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VALIDATE_MEDIA_DESCRIPTOR_PARSER))
40 #define GST_IS_VALIDATE_MEDIA_DESCRIPTOR_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_VALIDATE_MEDIA_DESCRIPTOR_PARSER))
41 #define GST_VALIDATE_MEDIA_DESCRIPTOR_PARSER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VALIDATE_MEDIA_DESCRIPTOR_PARSER, GstValidateMediaDescriptorParserClass))
42 #endif
43
44 typedef struct _GstValidateMediaDescriptorParserPrivate GstValidateMediaDescriptorParserPrivate;
45
46
47 typedef struct {
48   GstValidateMediaDescriptor parent;
49
50   GstValidateMediaDescriptorParserPrivate *priv;
51
52 } GstValidateMediaDescriptorParser;
53
54 typedef struct {
55
56   GstValidateMediaDescriptorClass parent;
57
58 } GstValidateMediaDescriptorParserClass;
59
60 GST_VALIDATE_API
61 GstValidateMediaDescriptorParser * gst_validate_media_descriptor_parser_new (GstValidateRunner *runner,
62                                                             const gchar * xmlpath,
63                                                             GError **error);
64 GST_VALIDATE_API GstValidateMediaDescriptorParser *
65 gst_validate_media_descriptor_parser_new_from_xml                   (GstValidateRunner * runner,
66                                                             const gchar * xml,
67                                                             GError ** error);
68 GST_VALIDATE_API
69 gchar * gst_validate_media_descriptor_parser_get_xml_path        (GstValidateMediaDescriptorParser *parser);
70 GST_VALIDATE_API
71 gboolean gst_validate_media_descriptor_parser_add_stream         (GstValidateMediaDescriptorParser *parser,
72                                                                   GstPad *pad);
73 GST_VALIDATE_API
74 gboolean gst_validate_media_descriptor_parser_add_taglist        (GstValidateMediaDescriptorParser *parser,
75                                                                   GstTagList *taglist);
76 GST_VALIDATE_API
77 gboolean gst_validate_media_descriptor_parser_all_stream_found   (GstValidateMediaDescriptorParser *parser);
78 GST_VALIDATE_API
79 gboolean gst_validate_media_descriptor_parser_all_tags_found     (GstValidateMediaDescriptorParser *parser);
80
81 G_END_DECLS
82
83 #endif /* GST_VALIDATE_MEDIA_DESCRIPTOR_PARSER_h */