Hello, I checked code into CVS to add in an interface "policy". The policy can allow or prevent releasing the interface as well as opening each of the interface's pipes. I originally thought there should be a UsbPipePolicy also, but I haven't put that in yet. I'll see if anyone has any comments on the interface policy...
Also, the interface policy has a 'forceClaim' boolean that, if set to true, will try 'hard' to claim the interface. The action is of course implementation-dependent, but on Linux it translates to calling USBDEVFS_DISCONNECT if the first claim didn't work. The Linux RI has to be compiled (and run of course) on a kernel with USBDEVFS_DISCONNECT support for it to work; it's available on kernels after 2.5.43 (or so...) and 2.4.23-pre2. Also in jni/JavaxUsb.h there are some compile-time options for how to detect what the active config and interface setting is; they used to be all on, but I turned off all the active ways (i.e. asking the device) because it might cause problems. I'd like to put out 0.10.1 this weekend, so if anyone has comments let me know! Thanks. -- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel