2008/12/3 Hendrik Sattler <[EMAIL PROTECTED]>: >> To avoid such things, I'd like to redo the USB API in openobex 2 (if >> there will be one), and perhaps move from libusb to usbfs2 (if that >> project gets going). > > Don't switch to non-portable stuff, please. Instead only that list traversal > stuff should be changed to something more stable.
Non-portable stuff would allow precise identification of devices, but I agree that it's best to keep things portable. The only problem is that if two or more identical USB OBEX-capable devices are connected at the same time, there is no way to distinguish them with the current API. As for the list traversal, I'm thinking to replace int OBEX_FindInterfaces(obex_t *self, obex_interface_t **intf); with int OBEX_NumInterfaces(obex_t *self); obex_inteface_t* OBEX_InterfaceInfo(obex_t *self, int n); -- Alexander ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Openobex-users mailing list Openobex-users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/openobex-users