Arjen de Korte
2007-Aug-28 06:59 UTC
[Nut-upsdev] [nut-commits] svn commit r1076 - in trunk: . drivers
> ---------- Forwarded message ---------- > From: Arjen de Korte > To: nut-commits at lists.alioth.debian.org > Date: Mon, 27 Aug 2007 18:33:00 +0000 > Subject: svn commit r1076 - in trunk: . drivers > Author: adkorte-guest > Date: Mon Aug 27 18:33:00 2007 > New Revision: 1076 > > Log: > * drivers/libhid.[ch],libshut.[ch],libusb.[ch]: > - Cut the libshut and libusb objects loose from libhid. If no HID > functions are used (megatec_usb, tripplite_usb), you no longer need to > include libhid anymore. The USB matcher functions (which were not > really HID specific functions) are now within libusb. > > * drivers/megatec_usb.c,tripplite_usb.c,Makefile.am: > - Applied the change above. > > * drivers/usbhid.[ch]: > - The HIDOpenDevice() and HIDCloseDevice() functions no longer exist. > These are replaced by direct calls to the communication subdrivers. > - The driver now gets a callback from libshut_open() and libusb_open() > when a report descriptor has been retrieved from the USB/SHUT device > and parses it and then makes a descision on whether this device is > acceptable or not. If not, the next device that matches will be tried. > > Apologies for the *really* big update, but the above required > reorganising many files. This patch now opens the way to much better > device matching for the usbhid-ups driver. The callback function in > the driver allows us to delay the decision whether or not the device > matches to *after* the subdriver specific ways to get to manufacturer, > model, and serial. I this is not enough to distinguish two identical > models from one another (by serial number), I doubt there is a way to > do this. > > Modified: > trunk/ChangeLog > trunk/drivers/Makefile.am > trunk/drivers/libhid.c > trunk/drivers/libhid.h > trunk/drivers/libshut.c > trunk/drivers/libshut.h > trunk/drivers/libusb.c > trunk/drivers/libusb.h > trunk/drivers/megatec_usb.c > trunk/drivers/tripplite_usb.c > trunk/drivers/usbhid-ups.c > trunk/drivers/usbhid-ups.h > > [80 KB of diffs trimmed; search for "r1076 in Trac: > http://boxster.ghz.cc/projects/nut ]Ah, that was the reason the commit wasn't visible. :-) Best regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
Reasonably Related Threads
- [nut-commits] svn commit r1073 - in trunk: . drivers
- Re: [nut-commits] svn commit r808 - in trunk: . drivers
- Powercool PCRACK-1200VA patch update
- [nut-commits] svn commit r1072 - in trunk: . drivers
- Re: [nut-commits] svn commit r433 - in trunk: data drivers include