Commit 64f6a18b authored by Sebastian Dröge's avatar Sebastian Dröge

net: Use G_DEFINE_TYPE

parent a9e69dc3
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment