[gst-devel] query gst_plugin_feature_get_type()
René Stadler
mail at renestadler.de
Sat Dec 23 15:54:55 CET 2006
Am Freitag, den 22.12.2006, 21:53 -0800 schrieb ram kumar:
> hi,
> When i go to definiton of this function
>
> gst_plugin_feature_get_type()the debugger points to
>
>
> G_DEFINE_ABSTRACT_TYPE (GstPluginFeature,
> gst_plugin_feature, GST_TYPE_OBJECT);
>
> Iam not able to ascertain what exactly this function
>
> and the macro does...please tell me what exactly this
>
> function does...
This is usual boilerplate code for using the GObject system (which is
distributed with GLib). It is fully documented, see:
http://developer.gnome.org/doc/API/2.0/gobject/gobject-Type-Information.html#G-DEFINE-ABSTRACT-TYPE:CAPS
The function call tells you that the GstPluginFeature object type is
derived from GstObject (GST_TYPE_OBJECT). "Abstract" means that you
cannot create instances of that type; it is supposed to act as base
class for further derived types (in this case: GstElementFactory,
GstTypeFindFactory and GstIndexFactory).
--
Regards,
René Stadler
More information about the gstreamer-devel
mailing list