[2.0] GstUriHandler interface issue in vala
Submitted by Yannick Inizan
Link to original bug (#764345)
Description
some interfaces in GStreamer and other projects are ugly, ex. with URIHandler :
struct _GstURIHandlerInterface {
GTypeInterface parent;
/* vtable /
/< public >
/
/ querying capabilities /
GstURIType ( get_type) (GType type);
const gchar * const * (* get_protocols) (GType type);
/* using the interface /
gchar * ( get_uri) (GstURIHandler * handler);
gboolean (* set_uri) (GstURIHandler * handler,
const gchar * uri,
GError ** error);
};
where some members don't have 'GstURIHandler * handler' parameter. with these interfaces, languages like Vala can't implement it because the language implement interface with this parameter by default