2 * Copyright (C) 2010 Nokia Corporation.
4 * Authors: Arun Raghavan <arun.raghavan@collabora.co.uk>
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., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef __GUPNP_DLNA_INFORMATION_H__
23 #define __GUPNP_DLNA_INFORMATION_H__
25 #include <gst/discoverer/gstdiscoverer.h>
26 #include <glib-object.h>
30 #define GUPNP_TYPE_DLNA_INFORMATION gupnp_dlna_information_get_type()
32 #define GUPNP_DLNA_INFORMATION(obj) \
33 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GUPNP_TYPE_DLNA_INFORMATION, GUPnPDLNAInformation))
35 #define GUPNP_DLNA_INFORMATION_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_CAST ((klass), GUPNP_TYPE_DLNA_INFORMATION, GUPnPDLNAInformationClass))
38 #define GUPNP_IS_DLNA_INFORMATION(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GUPNP_TYPE_DLNA_INFORMATION))
41 #define GUPNP_IS_DLNA_INFORMATION_CLASS(klass) \
42 (G_TYPE_CHECK_CLASS_TYPE ((klass), GUPNP_TYPE_DLNA_INFORMATION))
44 #define GUPNP_DLNA_INFORMATION_GET_CLASS(obj) \
45 (G_TYPE_INSTANCE_GET_CLASS ((obj), GUPNP_TYPE_DLNA_INFORMATION, GUPnPDLNAInformationClass))
49 } GUPnPDLNAInformation;
52 GObjectClass parent_class;
53 } GUPnPDLNAInformationClass;
55 GType gupnp_dlna_information_get_type (void);
58 gupnp_dlna_information_new (gchar *name,
60 GstDiscovererInformation *info);
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);
67 G_GNUC_INTERNAL GUPnPDLNAInformation *
68 gupnp_dlna_information_new_from_discoverer_info (GstDiscovererInformation * info);
73 #endif /* __GUPNP_DLNA_INFORMATION_H__ */