2007/6/2, Christian W. Zuckschwerdt <[EMAIL PROTECTED]>:
> SUN provide a libusb for linux which is able to access
> devices attached to Sunray thin clients. Running
> openobex with this library finds no devices when
> running obex_test -u, as the extra buffer of the device
> points to null.
> Explicitly opening the device before using the buffer
> fixes this problem.
> Attached is a patch which works for me on a sunray
> platform (It at least lists the device I have connected):
In short, looks like a quick and wrong fix to me.
The right thing to do would be to find out why libusb on sun rays does
not provide the extra buffer as compared to libusb shipped with normal
modern linux distros. Which version do they have? The latest libusb
definitely does something like below, why do it again when walking
through the list of devices later?
int usb_find_devices(void)
{
...
udev = usb_open(dev);
if (udev) {
usb_fetch_and_parse_descriptors(udev); -> that's where the
extra buffers are allocated
usb_close(udev);
}
}
--
Alexander
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users