[Nut-upsdev] [nut-commits] svn commit r1076 - in trunk: . drivers

Arjen de Korte nut+devel at de-korte.org
Tue Aug 28 06:59:48 UTC 2007


> ---------- 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




More information about the Nut-upsdev mailing list