mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 16:09:31 +02:00
* From double to triple indirection for the get_device_list function. Reported by Jurassic Pork on forum.
(cherry picked from commit 018593270b
)
This commit is contained in:
parent
49c96f4629
commit
ae468b132b
@ -768,6 +768,7 @@ type
|
||||
end;
|
||||
|
||||
plibusb_device=^libusb_device;
|
||||
pplibusb_device=^plibusb_device;
|
||||
libusb_device = record
|
||||
{undefined structure}
|
||||
end;
|
||||
@ -1143,7 +1144,7 @@ function libusb_error_name(errcode:integer):pansichar;LIBUSB_CALL;external libus
|
||||
function libusb_setlocale(const locale:pansichar):integer;LIBUSB_CALL;external libusb1;
|
||||
|
||||
function libusb_strerror(errcode:libusb_error):pansichar;LIBUSB_CALL;external libusb1;
|
||||
function libusb_get_device_list(ctx:plibusb_context;var list:plibusb_device):ssize_t;LIBUSB_CALL;external libusb1;
|
||||
function libusb_get_device_list(ctx:plibusb_context;var list:pplibusb_device):ssize_t;LIBUSB_CALL;external libusb1;
|
||||
procedure libusb_free_device_list(list:plibusb_device;unref_devices:integer);LIBUSB_CALL;external libusb1;
|
||||
function libusb_ref_device(dev:plibusb_device):plibusb_device;LIBUSB_CALL;external libusb1;
|
||||
procedure libusb_unref_device(dev:plibusb_device);LIBUSB_CALL;external libusb1;
|
||||
|
Loading…
Reference in New Issue
Block a user