Next: , Previous: GstGhostPad, Up: Top


16 GstImplementsInterface

Core interface implemented by instances that allows runtime querying of interface availabillity

16.1 Overview

Provides interface functionality on per instance basis and not per class basis, which is the case for gobject.

16.2 Usage

— Function: gst-element-implements-interface (self <gst-element>) (iface_type <gtype>)   (ret bool)
— Method: implements-interface

Test whether the given element implements a certain interface of type iface_type, and test whether it is supported for this specific instance.

element
<gst-element> to check for the implementation of the interface
iface-type
(final) type of the interface which we want to be implemented
ret
whether or not the element implements the interface.
— Function: gst-implements-interface-cast (from <gpointer>) (type <gtype>)   (ret <gpointer>)

cast a given object to an interface type, and check whether this interface is supported for this specific instance.

from
the object (any sort) from which to cast to the interface
type
the interface type to cast to
ret
a gpointer to the interface type
— Function: gst-implements-interface-check (from <gpointer>) (type <gtype>)   (ret bool)

check a given object for an interface implementation, and check whether this interface is supported for this specific instance.

from
the object (any sort) from which to check from for the interface
type
the interface type to check for
ret
whether or not the object implements the given interface