search for: hidclosedevice

Displaying 3 results from an estimated 3 matches for "hidclosedevice".

2007 Aug 22
1
[nut-commits] svn commit r1072 - in trunk: . drivers
Arjen de Korte wrote: > - HIDOpenDevice() will now handle closing the device on reload if > needed, so that HIDCloseDevice() can now really close it and free > the allocated memory for report buffer and parsed report descriptor. If I remember correctly, the old behavior on "reopen" was to keep the previous report descriptor, and try to find a device that matches the previously seen device exactly. This wa...
2007 Aug 28
0
[nut-commits] svn commit r1076 - in trunk: . drivers
...r 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 o...
2007 Aug 23
1
[nut-commits] svn commit r1073 - in trunk: . drivers
...uot;); > return hd; > } > @@ -632,6 +683,7 @@ > upsdebug_hex(3, "Report Descriptor", ReportDesc, ReportSize); > > /* Parse Report Descriptor */ > + Free_ReportDesc(pDesc); > pDesc = Parse_ReportDesc(ReportDesc, ReportSize); > if (!pDesc) { > HIDCloseDevice(*udevp); > @@ -639,6 +691,7 @@ > } > > /* prepare report buffer */ > + free_report_buffer(rbuf); > rbuf = new_report_buffer(pDesc); > if (!rbuf) { > Free_ReportDesc(pDesc); > > Modified: trunk/drivers/libhid.h > ========================================...