summaryrefslogtreecommitdiff
path: root/libgupnp-dlna/gupnp-dlna-profile-guesser.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgupnp-dlna/gupnp-dlna-profile-guesser.c')
-rw-r--r--libgupnp-dlna/gupnp-dlna-profile-guesser.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/libgupnp-dlna/gupnp-dlna-profile-guesser.c b/libgupnp-dlna/gupnp-dlna-profile-guesser.c
index 11fa355..757802b 100644
--- a/libgupnp-dlna/gupnp-dlna-profile-guesser.c
+++ b/libgupnp-dlna/gupnp-dlna-profile-guesser.c
@@ -43,15 +43,15 @@ enum {
static guint signals[SIGNAL_LAST];
-G_DEFINE_TYPE (GUPnPDLNAProfileGuesser,
- gupnp_dlna_profile_guesser,
- G_TYPE_OBJECT)
-
struct _GUPnPDLNAProfileGuesserPrivate {
gboolean relaxed_mode;
gboolean extended_mode;
};
+G_DEFINE_TYPE_WITH_PRIVATE (GUPnPDLNAProfileGuesser,
+ gupnp_dlna_profile_guesser,
+ G_TYPE_OBJECT)
+
enum {
PROP_0,
PROP_DLNA_RELAXED_MODE,
@@ -197,18 +197,13 @@ gupnp_dlna_profile_guesser_class_init
gupnp_dlna_profile_loader_get_from_disk (loader);
g_object_unref (loader);
}
-
- g_type_class_add_private (guesser_class,
- sizeof (GUPnPDLNAProfileGuesserPrivate));
}
static void
gupnp_dlna_profile_guesser_init (GUPnPDLNAProfileGuesser *self)
{
- GUPnPDLNAProfileGuesserPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE
- (self,
- GUPNP_TYPE_DLNA_PROFILE_GUESSER,
- GUPnPDLNAProfileGuesserPrivate);
+ GUPnPDLNAProfileGuesserPrivate *priv =
+ gupnp_dlna_profile_guesser_get_instance_private (self);
priv->relaxed_mode = FALSE;
priv->extended_mode = FALSE;