doc: Update NEWS for 0.4.1
[gupnp:gupnp-dlna.git] / libgupnp-dlna / gupnp-dlna-profile.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_PROFILE_H__
23 #define __GUPNP_DLNA_PROFILE_H__
24
25 #include <gst/profile/gstprofile.h>
26 #include <glib-object.h>
27
28 G_BEGIN_DECLS
29
30 #define GUPNP_TYPE_DLNA_PROFILE gupnp_dlna_profile_get_type()
31
32 #define GUPNP_DLNA_PROFILE(obj) \
33         (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
34                                      GUPNP_TYPE_DLNA_PROFILE, \
35                                      GUPnPDLNAProfile))
36
37 #define GUPNP_DLNA_PROFILE_CLASS(klass) \
38         (G_TYPE_CHECK_CLASS_CAST ((klass), \
39                                   GUPNP_TYPE_DLNA_PROFILE, \
40                                   GUPnPDLNAProfileClass))
41
42 #define GUPNP_IS_DLNA_PROFILE(obj) \
43         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GUPNP_TYPE_DLNA_PROFILE))
44
45 #define GUPNP_IS_DLNA_PROFILE_CLASS(klass) \
46         (G_TYPE_CHECK_CLASS_TYPE ((klass), GUPNP_TYPE_DLNA_PROFILE))
47
48 #define GUPNP_DLNA_PROFILE_GET_CLASS(obj) \
49         (G_TYPE_INSTANCE_GET_CLASS ((obj), \
50                                     GUPNP_TYPE_DLNA_PROFILE, \
51                                     GUPnPDLNAProfileClass))
52
53 typedef struct {
54   GObject            parent;
55 } GUPnPDLNAProfile;
56
57 typedef struct {
58   GObjectClass parent_class;
59 } GUPnPDLNAProfileClass;
60
61 GType gupnp_dlna_profile_get_type (void);
62
63 GUPnPDLNAProfile* gupnp_dlna_profile_new (gchar              *name,
64                                           gchar              *mime,
65                                           GstEncodingProfile *enc_profile,
66                                           gboolean           extended);
67
68 const gchar * gupnp_dlna_profile_get_name (GUPnPDLNAProfile *self);
69 const gchar * gupnp_dlna_profile_get_mime (GUPnPDLNAProfile *self);
70 const GstEncodingProfile *
71 gupnp_dlna_profile_get_encoding_profile (GUPnPDLNAProfile *self);
72 gboolean gupnp_dlna_profile_get_extended (GUPnPDLNAProfile *self);
73
74 G_END_DECLS
75
76 #endif /* __GUPNP_DLNA_PROFILE_H__ */