[gst-devel] Why wrapping GLib interfaces?

Ronald Bultje rbultje at ronald.bitfreak.net
Tue Oct 14 05:48:05 CEST 2003


On Tue, 2003-10-14 at 14:25, Murray.Cumming at Comneon.com wrote:
> This really does look like per-instance interfaces,

Yes.

> and therefore per-instance API.

No. The API/ABI is exactly the same. The functions will still work.

An instance will always *implement* the interface. However, calling the
functions won't do anything except possibly triggering a runtime warning
from within the virtual functions in the object implementing the
interface that this instance doesn't support it.

What happens if GstInterface->supported () returns FALSE? Does the API
change? No. Does the ABI change? Surely not. Does anything change? Of
course not. It's simply a runtime indication that calling the interface
functions on this instance won't have any effect since this specific
instance doesn't support the interface implementation from its Gtype.

I might be misunderstanding you completely; in that case, I'm sorry.
However, as far as I know, there's really nothing to worry about.

Ronald

-- 
Ronald Bultje <rbultje at ronald.bitfreak.net>
Linux Video/Multimedia developer





More information about the gstreamer-devel mailing list