1. LibUSB Wrapper
- Posted by Icy_Viking Apr 01, 2023
- 636 views
Hello all,
This isn't a April Fool's joke, I assure you. I have made a wrapper for LibUSB. I was wondering if anyone would be interested in it. Greg's FFI library has made it much more feasible to make a wrapper for LibUSB. *wink* There's a lot of structs in it, lol.
2. Re: LibUSB Wrapper
- Posted by axtens_bruce Apr 02, 2023
- 579 views
While I can't make immediate use of it, may I respectfully request that a link to it be put on the 'downloads' tab. Include with it all the other libraries. This would make it helpful for new users as they find their feet with Euphoria.
-Bruce
4. Re: LibUSB Wrapper
- Posted by Icy_Viking Apr 02, 2023
- 545 views
Here's the repo: https://github.com/gAndy50/EuLibUSB
I don't have any examples right now as I couldn't find any real world examples to make a Euphoria version for. The wrapper is complete though.
All my wrappers/libraries can be found on my Github.
5. Re: LibUSB Wrapper
- Posted by katsmeow Apr 02, 2023
- 550 views
Your .e tests for WINDOWS , LINUX , FREEBSD but not APPLE or anything else. This could cause the test for usb = -1 to not fail (you initialised it to zero) and the program run on to crash. I set vars to fail and get the code to "fix" the value so it is acceptable to run.
I was looking for a feature list, a reason to use the library, or a list of requirements, i didn't find one.
Kat
6. Re: LibUSB Wrapper
- Posted by Icy_Viking Apr 02, 2023
- 533 views
Your .e tests for WINDOWS , LINUX , FREEBSD but not APPLE or anything else. This could cause the test for usb = -1 to not fail (you initialised it to zero) and the program run on to crash. I set vars to fail and get the code to "fix" the value so it is acceptable to run.
I was looking for a feature list, a reason to use the library, or a list of requirements, i didn't find one.
Kat
I'll add a check for Apple OS devices. LibUSB is a library for sending data to and from USB devices.
EDIT: The check for OSX is now in the code.