net: Use G_DEFINE_TYPE instead of GST_BOILERPLATE

This commit is contained in:
Sebastian Dröge 2011-04-18 17:33:34 +02:00
parent 7da7494adc
commit 100bdfb01c

View file

@ -88,11 +88,11 @@ struct _GstNetClientClockPrivate
GstPoll *fdset; GstPoll *fdset;
}; };
#define _do_init(type) \ #define _do_init \
GST_DEBUG_CATEGORY_INIT (ncc_debug, "netclock", 0, "Network client clock"); GST_DEBUG_CATEGORY_INIT (ncc_debug, "netclock", 0, "Network client clock");
#define gst_net_client_clock_parent_class parent_class
GST_BOILERPLATE_FULL (GstNetClientClock, gst_net_client_clock, G_DEFINE_TYPE_WITH_CODE (GstNetClientClock, gst_net_client_clock,
GstSystemClock, GST_TYPE_SYSTEM_CLOCK, _do_init); GST_TYPE_SYSTEM_CLOCK, _do_init);
static void gst_net_client_clock_finalize (GObject * object); static void gst_net_client_clock_finalize (GObject * object);
static void gst_net_client_clock_set_property (GObject * object, guint prop_id, static void gst_net_client_clock_set_property (GObject * object, guint prop_id,
@ -117,12 +117,6 @@ inet_aton (const char *c, struct in_addr *paddr)
} }
#endif #endif
static void
gst_net_client_clock_base_init (gpointer g_class)
{
/* nop */
}
static void static void
gst_net_client_clock_class_init (GstNetClientClockClass * klass) gst_net_client_clock_class_init (GstNetClientClockClass * klass)
{ {
@ -148,8 +142,7 @@ gst_net_client_clock_class_init (GstNetClientClockClass * klass)
} }
static void static void
gst_net_client_clock_init (GstNetClientClock * self, gst_net_client_clock_init (GstNetClientClock * self)
GstNetClientClockClass * g_class)
{ {
GstClock *clock = GST_CLOCK_CAST (self); GstClock *clock = GST_CLOCK_CAST (self);