Forum > Other OS
[BUG REPORT] libusb's function libusb_get_version() Doesn't work
(1/1)
gasensor:
libusb's function libusb_get_version() Doesn't work
in /fpcsrc/packages/libusb/src/libusb.pp line1138:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- function libusb_get_version():libusb_version;LIBUSB_CALL;external libusb1;
"libusb_version" should be "plibusb_version"
The return value should be a pointer rather than a structure value.
https://gitlab.com/freepascal.org/fpc/source/-/issues/40829
Libusb does not have an example project, which is difficult for beginners to use.
Zvoni:
Agreed.
https://libusb.sourceforge.io/api-1.0/group__libusb__misc.html#ga61d07b01404fdea080cd16c1ed8be93d
--- Quote ---const struct libusb_version * libusb_get_version (void)
Returns a pointer to const struct libusb_version with the version (major, minor, micro, nano and rc) of the running library.
--- End quote ---
Navigation
[0] Message Index