xml: Relax AVC_MP4_MP_HD_1080i_AAC profile restrictions
[gupnp:gupnp-dlna.git] / libgupnp-dlna / gupnp-dlna-information.h
1 /*
2  * Copyright (C) 2010 Nokia Corporation.
3  *
4  * Authors: Arun Raghavan <arun.raghavan@collabora.co.uk>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser 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  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser 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 #ifndef __GUPNP_DLNA_INFORMATION_H__
23 #define __GUPNP_DLNA_INFORMATION_H__
24
25 #include <gst/discoverer/gstdiscoverer.h>
26 #include <glib-object.h>
27
28 G_BEGIN_DECLS
29
30 #define GUPNP_TYPE_DLNA_INFORMATION gupnp_dlna_information_get_type()
31
32 #define GUPNP_DLNA_INFORMATION(obj) \
33   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GUPNP_TYPE_DLNA_INFORMATION, GUPnPDLNAInformation))
34
35 #define GUPNP_DLNA_INFORMATION_CLASS(klass) \
36   (G_TYPE_CHECK_CLASS_CAST ((klass), GUPNP_TYPE_DLNA_INFORMATION, GUPnPDLNAInformationClass))
37
38 #define GUPNP_IS_DLNA_INFORMATION(obj) \
39   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GUPNP_TYPE_DLNA_INFORMATION))
40
41 #define GUPNP_IS_DLNA_INFORMATION_CLASS(klass) \
42   (G_TYPE_CHECK_CLASS_TYPE ((klass), GUPNP_TYPE_DLNA_INFORMATION))
43
44 #define GUPNP_DLNA_INFORMATION_GET_CLASS(obj) \
45   (G_TYPE_INSTANCE_GET_CLASS ((obj), GUPNP_TYPE_DLNA_INFORMATION, GUPnPDLNAInformationClass))
46
47 typedef struct {
48         GObject parent;
49 } GUPnPDLNAInformation;
50
51 typedef struct {
52         GObjectClass parent_class;
53 } GUPnPDLNAInformationClass;
54
55 GType gupnp_dlna_information_get_type (void);
56
57 GUPnPDLNAInformation*
58 gupnp_dlna_information_new (gchar                    *name,
59                             gchar                    *mime,
60                             GstDiscovererInformation *info);
61
62 const gchar * gupnp_dlna_information_get_name (GUPnPDLNAInformation *self);
63 const gchar * gupnp_dlna_information_get_mime (GUPnPDLNAInformation *self);
64 const GstDiscovererInformation *
65 gupnp_dlna_information_get_info (GUPnPDLNAInformation *self);
66
67 G_GNUC_INTERNAL GUPnPDLNAInformation *
68 gupnp_dlna_information_new_from_discoverer_info (GstDiscovererInformation *info,
69                                                  GList                    *profiles);
70
71
72 G_END_DECLS
73
74 #endif /* __GUPNP_DLNA_INFORMATION_H__ */