[gst-devel] GstInterface

David Schleef ds at schleef.org
Tue Oct 14 12:36:02 CEST 2003


On Tue, Oct 14, 2003 at 08:48:19PM +0200, Ronald Bultje wrote:
> typedef struct _GstInterfaceClass {
>   GTypeInterface parent;
>                                                                                 
>   /* virtual functions */
>   gboolean (* supported) (GstInterface *iface,
>                           GType         iface_type);
>                                                                                 
>   GST_CLASS_PADDING
> } GstInterfaceClass;
> 
> Note the second argument in supported ().

And why go to all this trouble instead of putting a supported()
method in the interfaces that require it?  Seems like a lot of
extra code.

Please note also that a "supported" method in the interface will
be a lot more obvious in the documentation than a note that the
interface depends on GstInterface.



dave...





More information about the gstreamer-devel mailing list