[Bug 764345] New: standardize interfaces

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Mar 30 02:49:06 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=764345

            Bug ID: 764345
           Summary: standardize interfaces
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: inizan.yannick at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list