Commit Graph

714 Commits

Author SHA1 Message Date
Luca Longinotti 7afa6e6e25 Remove javax.usb requirement from org.libusb4java, for the various descriptor types.
This results in them not being an implementor of the javax.usb interface, which is easily remedied in the
usb4java part by just having a new constructor that takes the LibUsb descriptor instead of the javax.usb
compatible ones. Also, to remove the dependency from DescriptorUtils, the code for a simple toString() of the
descriptors had to be duplicated in the usb4java.descriptors.Simple*Descriptors.
A new method, DescriptorUtils.getDirectionName() was added to translate the right endpoint address bit to IN
or OUT direction strings respectively.
Tests were updated accordingly.
2014-02-15 21:39:49 +01:00
Luca Longinotti af1db76641 Move utils test directory. 2014-02-15 19:39:32 +01:00
Luca Longinotti 9abdb9922b Move test libusb directory. 2014-02-15 19:39:06 +01:00
Luca Longinotti 542b73222b Split in Java test source code too. 2014-02-15 19:38:24 +01:00
Luca Longinotti 2a02a95d28 Split into org.libusb4java and org.usb4java in Java source code. 2014-02-15 19:35:19 +01:00
Luca Longinotti 50d4de5f5e Move to new native file names/structure. 2014-02-15 19:28:26 +01:00
Luca Longinotti 52391df006 Swith C code to use org.libusb4java. Update references. 2014-02-15 19:25:25 +01:00
Luca Longinotti 278f7e52ca Move utils to be under libusb4java. 2014-02-15 19:16:44 +01:00
Luca Longinotti df17096ef1 Move libusb low-level part to own module, for separate release. 2014-02-15 19:15:49 +01:00
Luca Longinotti f9cb764b58 Change to org.usb4java in Java test source code. 2014-02-15 18:50:03 +01:00
Luca Longinotti 3db5b2c1a5 Change name to org.usb4java in Java source code. 2014-02-15 18:46:40 +01:00
Luca Longinotti b4cf41f469 Rename directories to org/usb4java, both test and source. 2014-02-15 18:42:11 +01:00
Luca Longinotti e2709f7739 Remove old compiled files, replace with new org/usb4java structure. AMD64 only right now. 2014-02-15 18:40:23 +01:00
Luca Longinotti 4cf7aca75f Change to org.usb4java in Maven POM and usb.properties. Update URL to my website (no HTTPS). 2014-02-15 18:36:06 +01:00
Luca Longinotti d8c12df19b Use LIBUSB_API_VERSION now with the reunited libusb. 2014-02-15 17:05:22 +01:00
Luca Longinotti dd7dbbe4e1 Update library version in Makefile.am too. 2014-02-15 16:52:19 +01:00
Luca Longinotti c1cc445f6e Change de.ailis.usb4java to org.usb4java in the C code part. 2014-02-15 16:50:45 +01:00
Luca Longinotti 23c3806a16 Update to libusb 1.0.18, from libusb.info. Libusb and Libusbx have now merged.
Also update eudev version to 1.4.
2014-02-15 16:08:57 +01:00
Luca Longinotti d7dee6ec42 Make deviceDescriptorStructSize() function package-private. 2014-02-15 15:56:47 +01:00
Luca Longinotti 984eaf1cfa Remove freeDeviceDescriptor() function, which was not present in libusb, to avoid confusion.
The memory for the device descriptor is now allocated in an appropriately sized direct ByteBuffer.
The size is calculated directly in native code, to avoid any possible issues with alignment, padding or
compilers calculating something different from the expected 18 bytes.
This way users don't have to care about freeing the device descriptor, and can easily reuse the same while
looping over different devices.
2014-02-15 15:51:01 +01:00
Klaus Reimer 989d98f9a4 Fix website link and correct formatting of copyright lines 2013-09-15 13:53:40 +02:00
Klaus Reimer 7e17f96de8 Remove misplaced slash 2013-09-15 13:30:13 +02:00
Klaus Reimer 355a819a63 Fix links 2013-09-15 13:17:40 +02:00
Klaus Reimer 967101de8a Update site to use new fluido skin. 2013-09-15 13:14:44 +02:00
Klaus Reimer 59dc1d8905 Move links from user repository to organization repository 2013-09-15 12:58:24 +02:00
Klaus Reimer 155130c8cb Upgrade to newest maven plugin versions.
Workaround for issue MASSEMBLY-449 is now no longer needed
2013-09-15 12:56:11 +02:00
Klaus Reimer 3225a90c5f Add changelog entries 2013-09-14 21:29:52 +02:00
Klaus Reimer 22baf2cb8e Increase version to 1.2.0 2013-09-14 21:27:37 +02:00
Klaus Reimer 3c1f07d2ad Add Luca to Copyright and Developer list. 2013-09-14 21:26:07 +02:00
Klaus Reimer d15ce2ae02 Correct and add missing JavaDoc. 2013-09-14 21:20:52 +02:00
Klaus Reimer d21b59d488 Removed unnecessary warning suppression. Please change your local
eclipse setting "Ignore unused parameters documented with '@param' tag."
instead.
2013-09-14 20:06:25 +02:00
Klaus Reimer 12b8622b83 Merge branch 'master' of https://github.com/llongi/usb4java into llongi-master 2013-09-14 15:51:42 +02:00
Klaus Reimer 342efcc7b9 Ignore IDEA files 2013-09-14 15:38:18 +02:00
Luca Longinotti 73ce051102 Increase version number to reflect changes. 2013-09-09 11:25:19 +02:00
Luca Longinotti ab253e496c Add OSX builds. 2013-09-09 11:20:50 +02:00
Luca Longinotti 67e09e25ae Fix passing of the special value HOTPLUG_MATCH_ANY, it needs to be an int so as to not hide one of the short/byte values. 2013-09-09 10:59:24 +02:00
Luca Longinotti b166d2ef0d Win64 build. 2013-09-09 10:43:13 +02:00
Luca Longinotti b9b9f0e0be Add Linux-ARMv7 version. 2013-09-08 21:28:21 -04:00
Luca Longinotti 1b7004ecfa Add Win32 build. 2013-09-09 01:19:13 +02:00
Luca Longinotti 3d8982d0e3 Add linux-x86 release. 2013-09-08 19:22:42 +02:00
Luca Longinotti 15d66a1c93 Add linux-x86_64 build for new libusbx release. 2013-09-08 17:57:58 +02:00
Luca Longinotti f1c5a97bda Update libusb to 1.0.17, prepare for 1.0.18-rc1 (which will be the next).
Also update eUdev to 1.2.
2013-09-08 17:54:17 +02:00
Luca Longinotti fee57b7c71 Suppress warning in LibUsb (the only one I'm getting from Java). 2013-09-08 17:53:46 +02:00
Luca Longinotti db11db2fac Fix MATCH_ANY passing to native function. 2013-07-19 10:33:09 +02:00
Luca Longinotti 13d6ddc7c1 Add Win64 build. 2013-07-19 09:12:08 +02:00
Luca Longinotti 548a02225e Add updated OS X builds. 2013-07-19 09:02:04 +02:00
Luca Longinotti 463dc61c80 Updated Win32 build. 2013-07-18 23:41:59 +02:00
Luca Longinotti f2947b7188 New Linux 32bit build. 2013-07-18 23:15:08 +02:00
Luca Longinotti c83eb2dd50 Add updated ARMv7hf build, no udev support here. 2013-07-18 17:05:41 -04:00
Luca Longinotti f2836772a0 Fix sign-extension of short/byte arguments when passing to libusb, which expects int (???).
Update Linux 64bit build to new code and support glibc >=2.14.
2013-07-18 22:57:55 +02:00