Commit Graph

257 Commits

Author SHA1 Message Date
uniederer
2730203a29 - First testing steps for LibusbJava1
- Improved Codeformatting and comments
- Changed classpath so it's easier to start applications using the newly compiled dll

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@294 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-12 15:55:43 +00:00
uniederer
6b02bd0494 Added Urs Graf's overview image
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@293 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-12 14:46:04 +00:00
uniederer
667906d5d4 - Bugfix: LibusbJava.cpp, Ln 1288 removed the manipulation of the return value
- Bugfix: Guaranteeing '\0'-Termination of the retrieved C-Strings for all libusb_get_string_descriptor* calls
- Change: The whole interface makes now use of exceptions to pass errors into the java environment instead encoding them into return values.
- Change: Allowing Descriptor strings to have a length of 0

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@292 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-12 14:40:09 +00:00
uniederer
0aae67e050 - Added the depricated annotation for the legacy-libusb class
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@291 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-11 05:27:12 +00:00
uniederer
8800bb8e83 - Added Libraries to bind against
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@290 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-05 11:48:22 +00:00
uniederer
0931c64507 - Corrected include path settings, so the C/C++ Analysis of Eclipse Indigo works
- Added a debug build option to build.xml

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@289 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-05 11:28:33 +00:00
uniederer
82ec219081 - The evaluation of the return value was not correct.
- There is still an issue with this kind of evaluation as there could be handles being 
  valid but have negative number. See Bug ID: 3515055 for details

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@288 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-05 11:26:31 +00:00
uniederer
e8e83ded12 - Bug#3316451 Changed the "shouldn't happen" sections. Instead of just stopping the iteration we continue to a normal end.
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@287 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-05 09:50:56 +00:00
uniederer
95b3ca5b9d - Inserted a helperfunction to convert buffers to byte arrays that provides:
- Consequent error handling (especially allocation errors) 
  - fast uniform access to the java array class
- Added some parameter checks in the changed functions to avoid dereferencing of invalid pointers

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@286 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-05 09:28:20 +00:00
uniederer
d9284beee7 - Removed obsolete folder
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@285 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-04 14:14:17 +00:00
uniederer
332c16dac7 - Adding Roger Millischers work on the java side making libusb 1.0 run
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@284 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-04 13:58:33 +00:00
uniederer
dccd241266 - Version info updated
- removed unnecessary defines

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@283 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-04 13:51:40 +00:00
uniederer
1deb3c6291 - Corrected Include-Path for Eclipse Code Analysis
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@282 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-04 12:03:52 +00:00
uniederer
cc65dbfa74 - Binding to Libusb 1.0
- Adding version information to the library

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@281 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-03-30 12:08:45 +00:00
uniederer
2f5eb043e5 Typo corrected
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@280 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-03-16 15:13:40 +00:00
uniederer
ce4ef62456 - Corrected wrong package name in test directory
- Moved demo classes from the test tree to the application tree

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@279 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-03-16 14:56:59 +00:00
uniederer
957a4e193a - Changed package names of the test modules according to the new naming convention
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@278 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-03-16 13:09:13 +00:00
uniederer
5ef50110e7 - Changed the project name according to the new naming convention
- Changed package names according to the new naming convention


git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@277 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-03-16 12:17:47 +00:00
spandi
8b297fd01e version increased due to modifications in rev 273
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@275 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2009-05-17 19:45:22 +00:00
spandi
7b6e027f77 use only one version property for Windows and Unix-like systems
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@274 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2009-05-17 19:37:40 +00:00
spandi
519dac0002 busName added to be able to distinguish multiple instances of the same device on Linux
getRegisteredDevice fixed
documentation updates and other minor improvements

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@273 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2009-05-15 19:04:59 +00:00
spandi
ab05c5b054 project file updated
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@272 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2009-05-15 14:42:17 +00:00
spandi
712b5205fe null pointer exception when calling setManufacturer with filename fixed
java doc updates
new test for many read/write operations

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@271 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2008-12-20 09:25:05 +00:00
spandi
fae4615b79 memory leak in JNI write functions fixed
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@270 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2008-12-20 08:44:46 +00:00
spandi
7c6ebbe8fa dispose JFrame on close instead of exit, System.exit removed
thanks to Dima for the patch

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@269 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2008-06-22 21:29:59 +00:00
spandi
c9e90b2b64 new parameter added to be able to open a specific device based on the filename if there are multiple devices with the same vendor/product id
procedure added to get Usb_Bus object from USB class

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@268 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2008-06-08 14:35:18 +00:00
spandi
ff313eafa5 version incremented
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@267 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2008-02-18 20:42:22 +00:00
spandi
3fc955f9fd use the address of the device structure for device selection in usb_open instead of the device number
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@266 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2008-02-10 22:36:59 +00:00
spandi
23f1164d44 comment cleanup
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@265 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2008-02-06 21:31:36 +00:00
spandi
4c25d9fed0 Allow 0 size control messages
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@264 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2008-02-06 20:38:24 +00:00
spandi
83de75f223 libusb-win32 dll and driver removed
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@263 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-09-24 20:05:46 +00:00
spandi
b6d82b5754 support for 64 bit os (thanks to Jonas)
dummy root bus added to UsbView
tests updated

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@259 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-09-03 19:09:49 +00:00
spandi
a08d70e123 documentation updated
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@258 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-08-28 19:10:38 +00:00
spandi
c75f649ece typo fix
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@257 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-08-17 16:24:16 +00:00
spandi
920bb89f8b javadoc update
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@256 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-08-15 17:49:32 +00:00
spandi
36e03ecbb8 device handle check fixed (check for 0 and not <0 as this may be a valid address)
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@255 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-08-15 17:46:33 +00:00
spandi
27bedb75c4 properties definition moved to have standard values assigned
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@254 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-08-11 17:00:37 +00:00
spandi
2a13255fd0 support for system specific error numbers
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@253 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-08-11 15:02:40 +00:00
spandi
8dc3f8c515 device handle check fixed (check for 0 and not <0 as this may be a valid address)
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@252 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-08-11 12:54:13 +00:00
spandi
7fb6e148ed test class added which replicates the code from testlibusb.c
new test class for MX500 mouse
allow test with only read operations and interrupt and/or bulk transfers

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@251 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-08-11 12:42:19 +00:00
spandi
391d56910f always return 0 in usb_open instead of -1, -2 as this may be valid addresses -> set shared library specific error strings to get a precise error cause
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@250 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-08-11 12:37:58 +00:00
spandi
47b3e28aee third include path option added in linux target to work with jdk 6
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@249 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-04-19 20:41:40 +00:00
spandi
f0d9b57029 second include path option added in linux target
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@248 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-04-19 19:37:02 +00:00
spandi
5157352d25 build target for mac added (thanks to mike)
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@246 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-04-09 12:40:19 +00:00
spandi
8be58d4b78 - LibusbWin changed to LibusbJava in error messages
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@245 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-02-20 19:26:59 +00:00
spandi
11f8d93094 - print extra descriptors as hex array
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@244 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-02-19 19:22:46 +00:00
spandi
0f627b66c6 - support for extra descriptor added
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@243 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-02-14 21:57:42 +00:00
spandi
188aaf27f8 - project url updated
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@241 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-02-14 19:15:11 +00:00
spandi
8c35efc3ee - directory demos added to svn:ignore
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@240 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-02-05 17:23:43 +00:00
spandi
ada3e09480 - version increased to 0.4.2
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@239 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-02-05 17:11:15 +00:00