Commit 100bdfb0 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

net: Use G_DEFINE_TYPE instead of GST_BOILERPLATE

parent 7da7494a
...@@ -88,11 +88,11 @@ struct _GstNetClientClockPrivate ...@@ -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) ...@@ -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) ...@@ -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);
......
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