</para>
<programlisting><!-- example-begin properties.c a --><!--
#include "filter.h"
-GST_BOILERPLATE (GstMyFilter, gst_my_filter, GstElement, GST_TYPE_ELEMENT);
+G_DEFINE_TYPE (GstMyFilter, gst_my_filter, GST_TYPE_ELEMENT);
static void
-gst_my_filter_base_init (gpointer klass)
+gst_my_filter_class_init (gpointer klass)
{
}
static void
</itemizedlist>
<para>
Sink elements can derive from <classname>GstBaseSink</classname> using
- the usual <classname>GObject</classname> type creation voodoo, or by
- using the convenience macro <function>GST_BOILERPLATE ()</function>:
+ the usual <classname>GObject</classname> convenience macro
+ <function>G_DEFINE_TYPE ()</function>:
</para>
<programlisting>
-GST_BOILERPLATE_FULL (GstMySink, gst_my_sink, GstBaseSink, GST_TYPE_BASE_SINK);
+G_DEFINE_TYPE (GstMySink, gst_my_sink, GST_TYPE_BASE_SINK);
[..]