Commit Graph

  • 9448fd8fcb Re-design of hid_read(). Alan Ott 2011-07-25 17:53:12 -04:00
  • 110de52c40 Fixed a leak where hid_open weren't freeing a device_path Camille Moncelier 2011-07-19 11:08:48 +02:00
  • d94f682c70 Fixed possible mac when unplugging a device during enumeration Richard Bateman 2011-06-24 15:21:27 -06:00
  • 687a8385a1 Fix memory leak on Windows. Alan Ott 2011-06-19 22:11:09 -04:00
  • 6ad666c5b5 Updated Binary. hidapi-0.6.0 Alan Ott 2011-04-08 20:05:11 -04:00
  • d7f5f2cca5 Binary on Mac OS X Alan Ott 2011-04-08 19:39:54 -04:00
  • 3f341d2468 Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2011-04-08 19:35:31 -04:00
  • f61cea6e69 Makefiles for MinGW Alan Ott 2011-04-08 18:48:12 -04:00
  • c54aba0897 Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2011-02-09 08:43:02 -05:00
  • 0123bb91b7 Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2011-02-09 08:37:34 -05:00
  • 265cefb1d3 Print error when hid_read() fails. Alan Ott 2011-02-09 08:37:11 -05:00
  • f808275822 Detach from the kernel only if needed Ludovic Rousseau 2011-01-17 09:59:46 +01:00
  • 746873f9cc Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2011-01-18 23:07:38 -05:00
  • eebf197414 Change interface to interface_number in hid_device_info struct. Alan Ott 2011-01-18 23:05:58 -05:00
  • cbdd2a6e14 Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2011-01-18 23:04:37 -05:00
  • 98639e1f77 Change interface to interface_number in hid_device_info struct. Alan Ott 2011-01-18 23:03:45 -05:00
  • 92fa9d8ee3 Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2011-01-18 23:03:10 -05:00
  • 3290860713 Change interface field to interface_number in hid_device_info struct. Alan Ott 2011-01-18 22:59:21 -05:00
  • 7384f39ec5 Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2011-01-18 22:54:41 -05:00
  • a93cdfbeac Add the interface number to hid_device_info on Linux/libusb implementation. Alan Ott 2011-01-18 22:52:06 -05:00
  • a0f8bec509 Remove the Usage and Usage Page code from the libusb/Linux implementation. Alan Ott 2011-01-18 22:46:54 -05:00
  • 7108ca446b Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2011-01-18 21:41:01 -05:00
  • f3009ca22e Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2011-01-18 21:38:17 -05:00
  • 0dd77c86be Add release_number to hidtest. Alan Ott 2011-01-18 21:33:53 -05:00
  • ba51d59a4e hid_device_info with bcdDevice release number. Bastaan Veelo 2011-01-10 22:41:06 +01:00
  • 1cd43e9d30 Fixed a bug I introduced when cleaning up. Alan Ott 2011-01-15 01:26:40 -05:00
  • b04545e118 Fill in the Usage Page and Usage values on Mac. Bastaan Veelo 2011-01-13 00:46:22 +01:00
  • 993919fa8d Initial stab at support for composite devices. To do this, 3 tings had to happen: 1. Create a hid_device_info struct for each interface which reports to be HID, rather than one for each device. 2. Parse and report the Usage Page and Usage for each. Alan Ott 2011-01-14 18:51:54 -05:00
  • 64daa8adbc Support for Usage Page and Usage for each device in the hid_device_info struct. Alan Ott 2011-01-11 23:38:15 -05:00
  • 897c45f360 Fill in the Usage Page and Usage values on Mac. Bastaan Veelo 2011-01-13 00:46:22 +01:00
  • 3a4192eb45 Support for Usage Page and Usage for each device in the hid_device_info struct. Alan Ott 2011-01-11 23:38:15 -05:00
  • f5dceac5b9 Support for Usage Page and Usage for each device in the hid_device_info struct. Alan Ott 2011-01-11 23:38:15 -05:00
  • c3c0c9062a Took out register_error() to prevent warning, but marked it with TODO. Alan Ott 2011-01-07 10:23:40 -05:00
  • 49122c26d5 Append instead of overwrite CFLAGS Ludovic Rousseau 2011-01-06 14:49:43 +01:00
  • 02c55187a7 Use explicit file names Ludovic Rousseau 2010-12-07 17:02:46 +01:00
  • 81382f21d8 Make "make clean" idempotent Ludovic Rousseau 2010-12-07 16:57:42 +01:00
  • 5e594ebc95 Ensure that -1 is returned on Linux after a device has been disconnected (unplugged). Alan Ott 2010-12-28 11:23:08 -05:00
  • 486fe65d94 skip is defaulted to 1. There is no need to re-set it to 1. Alan Ott 2010-12-22 00:08:39 -05:00
  • ec07bca7a9 When devices are unplugged, libusb devices will fail (and return failure). More of these cases are now checked for. Alan Ott 2010-12-22 00:04:35 -05:00
  • afc41b7b1d Moved the cleanup of libusb transfer objects to hid_close(), and out of the read_thread(). This way the sequence of disconnecting the device and then calling hid_close() will not cause a crash. Alan Ott 2010-12-21 13:24:26 -05:00
  • 02b5007fc4 Made the Mac implementation robust to disconnects and re-connects while a device has an open handle. Alan Ott 2010-12-21 00:55:04 -05:00
  • c11c1bc463 new binary Alan Ott 2010-12-09 14:17:54 -07:00
  • 7a6ef4a7b5 Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2010-12-08 13:38:34 -07:00
  • cc41195b5c Fixed a 64-bit issue. The code in the Apple docs doesn't work for 64-bit. On 64-bit systems long is 64-bits, but on 32-bit systems it's 32-bits. The function get_long_property() was changed to be get_int_property(), and references to long were changed to int32_t. Alan Ott 2010-12-08 13:32:31 -07:00
  • 83483325bb Do not use printf() unconditionally Ludovic Rousseau 2010-11-22 09:39:41 +01:00
  • 8f3ccc3ec2 Avoid double inclusion of hidapi.h Ludovic Rousseau 2010-11-29 16:50:39 +01:00
  • b09db7eb66 Avoid double inclusion of hidapi.h Ludovic Rousseau 2010-11-23 11:37:28 +01:00
  • ddda2e4e9e License files showing modified, but they aren't. Probably a line-ending problem. Alan Ott 2010-11-21 20:02:32 -05:00
  • f9c06d35b2 Check libusb_get_active_config_descriptor return value Ludovic Rousseau 2010-11-19 08:46:00 +01:00
  • 025d81a5a3 use pkg-config to find udev library Ludovic Rousseau 2010-10-11 11:04:02 +02:00
  • b91198473f Remove 2 useless lines Ludovic Rousseau 2010-10-26 15:18:31 +02:00
  • dbc0ee08de Changed the logic a bit to make it more concise. Alan Ott 2010-11-16 23:18:37 -05:00
  • 9fac48e44b Wait for cancellation to complete Ludovic Rousseau 2010-11-05 11:41:10 +01:00
  • 6c34bbf06b Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2010-11-16 22:50:48 -05:00
  • 2b5e896370 Check for NULL before calling memcpy(). Alan Ott 2010-11-16 22:49:04 -05:00
  • ec376aea5e Make sure the string properties are null-terminated. Alan Ott 2010-11-07 16:17:33 -05:00
  • ff8cd18282 Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2010-10-23 13:38:22 -04:00
  • 67e61de7c9 Release the claimed interface when the handle is closed. Alan Ott 2010-10-23 13:34:14 -04:00
  • 1497a5c3fe Release the claimed interface when the handle is closed. Alan Ott 2010-10-23 13:34:14 -04:00
  • ebadfd6d5b Re-activated the cleanup code in read_thread(). For some unknown reason in the past, I thought it would be a good idea to move this to hid_close(), but I can't now understand why, as freeing these objects in read_thread() makes sense because they are created in read_thread(). Alan Ott 2010-10-23 13:27:44 -04:00
  • 3a3ac5e084 This eliminates a race condition on hid_close(). Previous to this patch, hid_close() would hang on pthread_join() if hid_close() was called while the reading thread was executing read_callback() _before_ the call to libusb_submit_transfer(). This caused libusb_cancel_transfer() to fail, and the read thread would never stop (and hid_close() would never return). Alan Ott 2010-10-23 12:53:27 -04:00
  • 0d7ed387b0 Changed the default back to blocking. This got inadvertently changed. Alan Ott 2010-10-21 09:22:17 -04:00
  • 8c89f95944 Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2010-10-14 15:36:39 -04:00
  • e08ae577ca Failsafe clean rule Ludovic Rousseau 2010-10-10 10:10:54 +02:00
  • 93affcd658 Also remove $(CPPOBJS) in the clean rule Ludovic Rousseau 2010-10-10 10:10:17 +02:00
  • 0dcd42f957 Fix warning: no previous prototype for ‘hid_report_callback’ Ludovic Rousseau 2010-10-10 10:00:11 +02:00
  • a377ee4b1b Fix function declaration isn’t a prototype Ludovic Rousseau 2010-10-10 09:58:14 +02:00
  • 306f3f7978 Do not overwrite CFLAGS Ludovic Rousseau 2010-10-10 09:56:05 +02:00
  • b19d34b08b Added a new Authors file. Alan Ott 2010-10-13 10:29:45 -04:00
  • ad65e15c1c Added a pthread_barrier to ensure that the read_thread() function (thread) has been initialized before hid_open_path() returns. There was a race condition if hid_close() was called immediately after hid_open(), because hid_close() was trying to destroy objects that read_thread() had sometimes not created yet. Alan Ott 2010-10-13 10:20:19 -04:00
  • cad91b1808 Doxygen documentation Ludovic Rousseau 2010-10-07 11:04:36 +02:00
  • b8ceae83b8 Do not ovewrite CFLAGS Ludovic Rousseau 2010-10-08 16:37:54 +02:00
  • fcec7ca07f Fix warning: ordered comparison of pointer with integer zero Ludovic Rousseau 2010-10-08 16:02:00 +02:00
  • 218d146c37 Fix warning: comparison of unsigned expression < 0 is always false Ludovic Rousseau 2010-10-08 15:59:49 +02:00
  • 8c80bbd8b7 Fix warning: declaration of ‘index’ shadows a global declaration Ludovic Rousseau 2010-10-08 15:57:31 +02:00
  • 547a864690 Fix a buffer overflow Ludovic Rousseau 2010-10-08 15:54:25 +02:00
  • 8c63a6d474 Fix warning: declaration of ‘i’ shadows a previous local Ludovic Rousseau 2010-10-08 15:52:06 +02:00
  • 095159d825 Fix warning: no previous prototype for ‘new_hid_device’ Ludovic Rousseau 2010-10-08 15:50:27 +02:00
  • bfcaf8f2d3 Fix compiler warning function declaration isn’t a prototype Ludovic Rousseau 2010-10-08 15:49:13 +02:00
  • 7640dc1564 Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2010-10-08 18:30:15 -04:00
  • 3ba5b6c914 Fixed some errors that Valgrind pointed out. Alan Ott 2010-10-08 18:24:26 -04:00
  • c6861c43c6 New binary Alan Ott 2010-09-28 16:53:13 -04:00
  • b14d227de7 Getting Feature Reports, and a Re-scan devices button. Alan Ott 2010-09-28 16:30:47 -04:00
  • a4b5d7bb1d Remove old build file which shouldn't be in here anymore. The Makefile is the right way to build the project. Alan Ott 2010-09-20 09:18:36 -04:00
  • a039425436 Put extern "C" around the functions. Alan Ott 2010-09-16 21:44:33 -04:00
  • 381a170d10 Return non-error for the nonblocking function. Alan Ott 2010-09-13 15:00:34 -04:00
  • 30a80cc83b Additional licenses. HIDAPI can now be used under the GPLv3, BSD, or original HIDAPI license. This should provide maximum freedom. Alan Ott 2010-09-13 11:17:45 -04:00
  • 7650ac65b2 Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2010-09-13 11:16:35 -04:00
  • 09cb41aada Additional licenses. HIDAPI is now GPLv3, BSD, or the original license, at the discretion of the user. This should provide maximum flexibility and freedom. Alan Ott 2010-09-13 11:15:24 -04:00
  • 5fa9bf37c4 Changes made for Cygwin. The _stdcall had to come out. I'm not sure about taking this out, but it's the only way I've found so far to make Cygwin work. Alan Ott 2010-09-07 14:13:41 -04:00
  • 57c6eebe56 Made windows/hid.cpp work on MinGW. In the process, cleaned up some unnecessary initializations, and cleaned up a warning. Alan Ott 2010-09-06 14:58:26 -04:00
  • b5bdda08da Updated binary hidapi-0.5.2 Alan Ott 2010-08-23 17:44:20 -04:00
  • cc51331c6c Make sure only one report is returned per call to hid_read(). hidapi-0.5.1 Alan Ott 2010-08-23 15:11:42 -04:00
  • defb938797 Limit the receive queue to 30 reports on Linux. Alan Ott 2010-08-23 13:14:34 -04:00
  • 855605aefa Merge branch 'master' of github.com:signal11/hidapi Alan Ott 2010-08-21 14:04:16 -04:00
  • 14dd2eeba4 Took out printf()s. Alan Ott 2010-08-21 14:03:52 -04:00
  • e0c8032b7b Updated README for Linux. Alan Ott 2010-08-21 14:01:04 -04:00
  • 727399b79e Updated binary hidapi-0.5.0 Alan Ott 2010-08-21 13:29:38 -04:00
  • 2ca7aa00eb Updated binary Alan Ott 2010-08-21 13:27:45 -04:00
  • c5993b749e Fixed Warnings. Alan Ott 2010-08-21 13:26:57 -04:00