From 64f6a18bada3b3dd6792199e6c58875223515b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 16 Apr 2011 15:23:46 +0200 Subject: [PATCH] net: Use G_DEFINE_TYPE --- libs/gst/net/gstnettimeprovider.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/libs/gst/net/gstnettimeprovider.c b/libs/gst/net/gstnettimeprovider.c index b04d28243e..c1b4cac1cb 100644 --- a/libs/gst/net/gstnettimeprovider.c +++ b/libs/gst/net/gstnettimeprovider.c @@ -105,10 +105,11 @@ static void gst_net_time_provider_set_property (GObject * object, guint prop_id, static void gst_net_time_provider_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); -#define _do_init(type) \ +#define _do_init \ GST_DEBUG_CATEGORY_INIT (ntp_debug, "nettime", 0, "Network time provider"); -GST_BOILERPLATE_FULL (GstNetTimeProvider, gst_net_time_provider, GstObject, +#define gst_net_time_provider_parent_class parent_class +G_DEFINE_TYPE_WITH_CODE (GstNetTimeProvider, gst_net_time_provider, GST_TYPE_OBJECT, _do_init); #ifdef G_OS_WIN32 @@ -123,12 +124,6 @@ inet_aton (const char *c, struct in_addr *paddr) } #endif -static void -gst_net_time_provider_base_init (gpointer g_class) -{ - /* Do nothing here */ -} - static void gst_net_time_provider_class_init (GstNetTimeProviderClass * klass) { @@ -163,8 +158,7 @@ gst_net_time_provider_class_init (GstNetTimeProviderClass * klass) } static void -gst_net_time_provider_init (GstNetTimeProvider * self, - GstNetTimeProviderClass * g_class) +gst_net_time_provider_init (GstNetTimeProvider * self) { #ifdef G_OS_WIN32 WSADATA w;