On Wed, 3 May 2006, Glenn Maynard wrote:

> I think all I was visualizing was eg:
> 
> int get_us_type(const struct us_data *us)
> {
>     // flags that don't indicate that a device won't work with UB:
>     int permitted_flags = US_FL_FIX_CAPACITY;
>     if((us->flags & ~permitted_flags) != 0)
>         return USB_US_TYPE_STOR;
> 
>     if(us->unusual_dev->initFunction != NULL)
>         return USB_US_TYPE_STOR;
>     return 0;
> }
> 
> used by usb_usual_check_type.  Aside from the obvious problem that us_data
> is usb-storage's, not libusual's--would need a copy of us_unusual_dev_list[]--
> this is also incorrect, since I don't fully understand the criteria for the
> flag.  But that's the sort of thing I was thinking--not anything enormous.

I see what you mean.  It could be done with a little work, although it
would mean putting the driver-specific selection logic into libusual,
which Pete doesn't seem to favor.  It's also a little inflexible, in that
you wouldn't be able to modify the rule easily for a few specific entries.

Alan Stern



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to