[Bug 63807] No way to filter devices

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 17 03:19:39 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=63807

--- Comment #14 from Marc-Andre Lureau <marcandre.lureau at gmail.com> ---
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #2)
> > > (In reply to comment #1)
> > > > This is fixed by this commit, closing:
> > > > http://cgit.freedesktop.org/spice/spice-gtk/commit/
> > > > ?id=0ebcc23c0642d2bddcb05ed4152497c99cb3ca1d
> > > 
> > > Sorry but you are not getting away that easy. :) As I pointed out on IRC,
> > > its a very ugly API if you are asking apps to give you a very cryptic string
> > > for filter. Surely you can add some enums/flags and allow apps to filter
> > > through that. If you fail in that, at the very least add some docs
> > > explaining the syntax of the filter string you are expecting from apps.

Sure, but a string is a *lot* more flexible, friendly for humans, and you can
still get errors if it is malformed. I don't get your coment about API, it's
the string format that is used by spice-gtk for USB filtering, it's documented
and we are not going to duplicate this everywhere as it works perfectly so far.

You can implement a utility function in your code trivially, so please consider
this FIXED. (I'd even say that it's not spice-gtk job to enumerate system USB
devices, it's nice that Hans added one already)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-bugs/attachments/20140717/12642173/attachment.html>


More information about the spice-bugs mailing list